Faleira Posted October 18, 2005 Share Posted October 18, 2005 how would i make a simple gui that shows the coords of where ur mouse is, like in au3info? (i'm haven't really messed around all that much with the GUI yet, sorry if this is a stupid question) [quote]If whenever you feel small, useless, offended, depressed, and just generally upset always remember......you were once the fastest and most vicious sperm out of hundreds of millions![/quote] Link to comment Share on other sites More sharing options...
Valuater Posted October 18, 2005 Share Posted October 18, 2005 straight from help $pos = MouseGetPos() MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) 8) Link to comment Share on other sites More sharing options...
Faleira Posted October 18, 2005 Author Share Posted October 18, 2005 well, ya, but thats just a msg box, and will only give my current co-ords, i want it so that it changes as u move ur mouse ^^. [quote]If whenever you feel small, useless, offended, depressed, and just generally upset always remember......you were once the fastest and most vicious sperm out of hundreds of millions![/quote] Link to comment Share on other sites More sharing options...
Valuater Posted October 18, 2005 Share Posted October 18, 2005 (edited) this will do the trick expandcollapse popup; Press Esc to terminate script, Pause/Break to "pause" Global $Paused, $T = 0 HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{F9}", "ShowMouse") ;;;; Body of program would go here;;;; While 1 If $T = 1 Then $pos = MouseGetPos() ToolTip($pos[0] & "," & $pos[1]) EndIf Sleep(10) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMouse() If $T = 0 Then $T = 1 Return EndIf If $T = 1 Then ToolTip("") $T = 0 Return EndIf EndFunc 8) Edited October 18, 2005 by Valuater Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now