| Re: Fitaly put where you want it... nearly there, discuss? -- Robert Carnegie | |||
| Posted by Robert Carnegie ® , 01/19/2006, 16:56:27 | Post Reply | Top of Thread | Forum |
Arising from that, here's a prototype script for AutoHotkey that moves Fitaly to just below the /text/ cursor by looping, counting idle time, and testing the /pointer/ cursor for I-beam. That's kind of what the other onedid, but faster. There's a feature in AHk that repeatedly testing the pointer cursor interferes with double-click/tap. The Beep lines, which you'll notice, are totally optional ;-)
CoordMode, Caret, Screen
LastTimeIdle = 0
TestNotRun = 1
Loop
{
IfGreater, A_TimeIdlePhysical, 80
{
If (TestNotRun)
{
IfEqual, A_Cursor, IBeam
{
SoundBeep 1046, 50
WinMove, ahk_class FitalyMainWindow, , A_CaretX, (A_CaretY + 40)
}
Else
{
SoundBeep 740, 50
}
TestNotRun = 0
}
}
Else
TestNotRun = 1
Sleep, 20
}
Here's a version which directly catches the tap as left (primary) mouse button, and moves Fitaly. Side effect is that you can't double-tap or drag-select, and I've been looking at worse in getting there.
#SingleInstance Force
LButton::
{
Sleep, 100
MouseClick, Left,,,,,,
IfEqual, A_Cursor, IBeam
{
SoundBeep 1046, 50
WinMove, ahk_class FitalyMainWindow, , A_CaretX, (A_CaretY + 40)
}
Else
{
SoundBeep 740, 50
}
Return
}
I think it could be run from any Tablet button instead, probably. We all have /some/ buttons, don't we? Maybe: Restore and move Fitaly to the text cursor, unless it's already there, in which case, minimize it. So at most you press a button twice to minimize.
I should probably mention again how to stop these... right-click the "H" icon in the system tray, and "Exit".
| Edit | Post Reply | Where am I? | | Original Message | Top of Thread | Current page | Author Profile |
|