| Re: 123 -- ralfsmith | |||
| Posted by Robert Carnegie ® , 12/09/2005, 11:14:08 | Post Reply | Top of Thread | Forum |
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Robert Carnegie <rja.carnegie@excite.com>
;
; Script Function:
; Move the Fitaly on-screen keyboard close to the location
; of the text insertion point when the mouse cursor is an
; i-beam shape; that is, when the user points at editable text.
;
#SingleInstance Force
CoordMode, Caret, Screen
Loop
{
IfEqual, A_Cursor, IBeam
{
WinMove, ahk_class FitalyMainWindow, , A_CaretX, (A_CaretY + 40)
}
Sleep, 600
}
I said it was simple... planned refinements do include staying on the screen instead of halfway off, maybe making the action depend on idleness so that Fitaly doesn't wander across the screen while you're writing - and maybe merging the function with the other script which I actually use myself (which could use some work too) - if you place Fitaly on top of the Taskbar then you quickly get the Taskbar on top of Fitaly or else kicking it back on top of your application window, so...
"Fitaly to Top.ahk"
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Robert Carnegie <rja.carnegie@excite.com>
;
; Script Function:
; Set the Fitaly on-screen keyboard as top window.
;
#SingleInstance, Force
WinGet, WinTarget1, PID, ahk_class FitalyMainWindow
WinGet, WinTarget2, PID, MiniScroller
WinGet, WinTarget3, PID, ahk_class FitalyMainWindow
Loop
{
; If (Not WinExist("ahk_pid " WinTarget1) )
; Break
WinSet, Top,, ahk_pid %WinTarget1%
WinMove, ahk_pid %WinTarget1%, , 498, 558
WinSet, Top,, ahk_pid %WinTarget2%
Sleep, 2000
}
| Edit | Post Reply | Where am I? | | Original Message | Top of Thread | Current page | Author Profile |