Jump to content

Recommended Posts

Posted

Tried creating a script that uses a hotkey to grab the current mouse position then write it to a file, but all attempts failed, for some reason FileWrite and FileWriteLine werent working properly? even tried writing "BLAH" instead of the mouse positions, but that failed too...

just wondering if anyone has any ideas?

Posted

CODE

HotKeySet("{Enter}", "Write")

HotKeySet("{Escape}", "Kill")

;sets fileopen

$file = FileOpen("test.txt", 1)

;writes

Func Write()

$pos = MouseGetPos()

FileWrite($file, $pos[0] & " , " & $pos[1] & @CRLF)

EndFunc

;kills

Func Kill()

Exit

EndFunc

Posted

Ha. Word to the wise: answering support questions while too sick to leave bed because you can't find anything else to do isn't always the best idea. :P

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...