AutoHotkey Community

It is currently May 25th, 2012, 10:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: B's 2nd.
PostPosted: February 7th, 2005, 6:22 pm 
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 :arrow: INVISIBLE :twisted:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2005, 8:21 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Maybe I'm missing something... but how is this different from running nomousy.exe with the "-ib" option?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2005, 9:13 pm 
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. :lol:

Chris can delete it, or setup another Forum Section: "The hall of shame"
1st entry B's 2nd. :lol:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2005, 9:28 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Lol, sorry. :lol: 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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2005, 2:15 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
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)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Aravind, bbwht and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group