reino Posted December 19, 2005 Share Posted December 19, 2005 I am a noob at this, and would like to know how to auto press the space bar? I would like to press the space bar at a random time, like every 40 or 50 seconds press the space bar at random. Sometimes it would do it at 40 seconds, another time it could do it at 50 seconds. I appreciate your help in advance!. Link to comment Share on other sites More sharing options...
reino Posted December 19, 2005 Author Share Posted December 19, 2005 Line 1 (File "C:\Documents and Settings\Cody\Desktop\spacejump.au3"): ÿþH ^ ERROR Error: Unable to parse line. that is the error im getting for this script: HotKeySet("{PAUSE}", "EndScript") While 1 Send("{SPACE}") Sleep(Int(Random(110000, 130000))) WEnd ; Function to exit script Func EndScript() Exit EndFunc Link to comment Share on other sites More sharing options...
MrSpacely Posted December 19, 2005 Share Posted December 19, 2005 It seems you saved your au3 file as unicode you need to save it as ansi (ansi is just plain text) You can set the coding when you save the file. (at the bottom of the save as dialog) I assume you use notepad because that sometimes saves as unicode Link to comment Share on other sites More sharing options...
reino Posted December 19, 2005 Author Share Posted December 19, 2005 very cool, thank you. The program is running, so I will see if my script works for auto space. Link to comment Share on other sites More sharing options...
reino Posted December 19, 2005 Author Share Posted December 19, 2005 it works, thx Link to comment Share on other sites More sharing options...
MrSpacely Posted December 19, 2005 Share Posted December 19, 2005 (edited) Your welcome Edited December 19, 2005 by MrSpacely 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