 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
BoBo Guest
|
Posted: Mon Feb 07, 2005 5:22 pm Post subject: B's 2nd. |
|
|
| Code: | ;
; AutoHotkey Version: 1.0.23..0
; Language: German/English
; Platform: Win9x/NT
; Author: BoBo (visit www.autohotkey.com to get in touch)
;
; Script Function:
; Dieses Script benötigt "Nomousy" (Freeware) um ähnlich wie
; "CursorHide" (Shareware) den Mauszeiger innerhalb eines
; editierbaren Textfeldes auszublenden. Dazu wird der
; aktuelle Mauszeiger abgefragt und sobald dieser
; die Darstellung eines "I-Beam" aufweist, ausgeblendet.
; Mit verlassen des Textbereichs wird der Standard
; Mauszeiger in "Echtzeit" reaktiviert, so das ein Navigieren
; ausserhalb eines Textbereichs weiterhin möglich ist.
;
;
; This script requires "Nomousy" (Freeware). Just like
; "CursorHide" (Shareware) your mouse pointer gets hidden
; if above an edit control. Once you leave that control
; the mouse pointer will be restored in "realtime".
; - End of BoBo Fish translation -
;
;
; Downloads:
; Nomousy - http://www.apps4apps.filetap.com/nomousy.html
; AutoHotkey - http://www.autohotkey.com/download/
;
;
; Special thanks to "corrupt" who offers Nomousy for free. :o)
;
; BTW: if you wanna see your mouse pointer
; while it is hidden cause above an edit control,
; press CTRL+A (select all).
; C'est tout mon ami(e). Have phun.
;
#Persistent
SetTimer, SwitchOffMouseCursor, 2000
return
SwitchOffMouseCursor: ; Switch off mouse cursor if above an edit control eg. within Notepad
SetMouseDelay, 0
If A_Cursor = IBeam ; If mouse is detected as "IBeam" - hide it, if already hidden ignore it
If IB <> Hidden
{
Run, nomousy.exe /hide -ib
IB = Hidden
}
Else
If A_Cursor <> IBeam ; If mouse is detected as "NON-IBeam" switch off its "magic cap"
{
Run, nomousy.exe
IB =
}
OnExit, ActivateMouse
Return
ActivateMouse: ; If script will exit restore the mouse pointer and position it at the center of the screen
RunWait, nomousy.exe
CenterX = %A_Screenwidth%
CenterY = %A_ScreenHeight%
CenterX /= 2
CenterY /= 2
MouseMove, %CenterX%,%CenterY%
ExitApp
Return |
You don't have to push the mouse away while surfing text on the web ... it gets INVISIBLE  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 2951 Location: Minnesota
|
Posted: Mon Feb 07, 2005 7:21 pm Post subject: |
|
|
| Maybe I'm missing something... but how is this different from running nomousy.exe with the "-ib" option? |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Mon Feb 07, 2005 8:13 pm Post subject: |
|
|
| Quote: | | Maybe I'm missing something... but how is this different from running nomousy.exe with the "-ib" option? | Cause mine is "doppelt gemoppelt hält besser" aka "Hell, I'm such a fool".
Well, before I leave - to commit suicide...
I've coded that before those additional Mpointer specific params were available (and there was a reason why I've requested those from Mr. Nomousy aka corrupt).
But everything is fine. I've been advised some time ago that to be "bobo" means - being kinda nuts. Well, now I've proved it right.
Chris can delete it, or setup another Forum Section: "The hall of shame"
1st entry B's 2nd.  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 2951 Location: Minnesota
|
Posted: Mon Feb 07, 2005 8:28 pm Post subject: |
|
|
Lol, sorry. At first I thought it would check if the control under the mouse was an edit. That would be kinda hard to do, though, as it probably wouldn't work for all text-type controls. Hiding the IBeam is probably the easiest way for someone wanting functionality like this.
Btw, it's not entirely useless... using this, you can set a delay before the mouse is hidden (so quick mouse-overs on your way to something else don't make you lose your way). |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2485
|
Posted: Tue Feb 08, 2005 1:15 am Post subject: |
|
|
Great example for anyone using version 1.3 (if the -ib flag is removed) .
Note: Use of any selective hiding flags will automatically enable /hide. (nomousy.exe /hide -ib = nomousy.exe -ib) |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|