Sign in to follow this  
Followers 0
Spiritthirst

Help?

8 posts in this topic

Hi everyone.. as you can see I am new to this

Just wondering if anyone can help me make a script

Keypress W 10 times

Keypress s once

Repeat over and over again

Share this post


Link to post
Share on other sites



Sigh it doesn't work in the game

How doesn't it work?

Does it not do anything at all inside the game?

Do you need the keypresses to last a particular length of time or something?

It might be a good idea to use WinActivate

Share this post


Link to post
Share on other sites

How doesn't it work?

Does it not do anything at all inside the game?

Do you need the keypresses to last a particular length of time or something?

It might be a good idea to use WinActivate

Oh..yea

How to use winactivate?

Share this post


Link to post
Share on other sites

Oh..yea

How to use winactivate?

Type WinActivate into your ScitE editor, highlight it, and press F1 <_<

^^ the help file included with AutoIt will answer all your questions a lot quicker than the forums!

Just make sure you put it on top of your other code...

Share this post


Link to post
Share on other sites

Type WinActivate into your ScitE editor, highlight it, and press F1 <_<

^^ the help file included with AutoIt will answer all your questions a lot quicker than the forums!

Just make sure you put it on top of your other code...

Um..

WinActivate("The game")

Opt("SendKeyDelay", 100)

While 1

For $i = 1 To 20

Send("{3}")

Next

Send("{6}")

Sleep(100)

WEnd

Like this? Somehow it still do nothing in the game

Share this post


Link to post
Share on other sites

That works just fine for me in notepad... it types out loads of 3's, then a 6, then 3's....

How are you running your script?

Try compiling it to a .exe, and then double click the .exe to start the program

What game is it, and what are you trying to do exactly?

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