rhknights Posted August 12, 2006 Posted August 12, 2006 Hi, I'm new to this, would like to know how to create a program to let me press a button and I can get the mouse position.. Have the code written, but it end before I could do anything.. HotkeySet("{F8}","Debug") ;---------------------------- Func Debug() $pos = MouseGetPos() MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) EndFunc How can I make it a resident program??
Helge Posted August 12, 2006 Posted August 12, 2006 HotkeySet("{F8}","Debug") While 1 Sleep(10) WEnd ;---------------------------- Func Debug() $pos = MouseGetPos() MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) EndFunc
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