Sign in to follow this  
Followers 0
reino

Space Bar

6 posts in this topic

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!.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

very cool, thank you. The program is running, so I will see if my script works for auto space.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Your welcome :P

Edited by MrSpacely

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0