OnTheFly Posted February 6, 2008 Posted February 6, 2008 (edited) $pos = MouseGetPos() $f = FileOpen("mousepos.txt",2) $l = "x=" & $pos[0] & ", y=" & $pos[1] FileWrite($f,$l) FileClose($f) I want the script to write something like "x=10, y=569" to the file mousepos.txt. But it doesn't. I get no error. Neither i get a file.. What am i doing wrong? Edited February 6, 2008 by OnTheFly
NELyon Posted February 6, 2008 Posted February 6, 2008 $pos = MouseGetPos() FileWrite("Mousepos.txt", "x = "&$pos[0] & "y=" & $pos[1]) Does that work?
OnTheFly Posted February 6, 2008 Author Posted February 6, 2008 $pos = MouseGetPos() FileWrite("Mousepos.txt", "x = "&$pos[0] & "y=" & $pos[1]) Does that work? No, it doesn't :/
NELyon Posted February 6, 2008 Posted February 6, 2008 Do you have permission to write to that directory? Try running the script with admin privileges.
OnTheFly Posted February 6, 2008 Author Posted February 6, 2008 (edited) Do you have permission to write to that directory? Try running the script with admin privileges.I am admin. Or, what do you mean?Hmm.. It works when i write to another dir. So, problem solved Edited February 6, 2008 by OnTheFly
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