Jump to content
Sign in to follow this  
kaino

Simple script help...

Recommended Posts

kaino

Hello, I just got this program and need to know how to do these simple functions can someone please help me, here is what I want to do.

send w

wait 3 seconds

send r

wait 3 seconds

hold v

wait 10 seconds

release v

wait 2 seconds

send r

wait 3 seconds

send 7

wait 2 seconds

send n

wait 10 seconds

loop back to the beginning

I know that all these functions are repetitive and you only really have to answer is,

How to send a key

How to wait x amount of time

How to hold down a key

How to release a key from being held

loop to the beginning

If I could get some help with this it would really be appreciated. Thank you!

Share this post


Link to post
Share on other sites
kaino

Okay, here is what I got, I have tested it in notepad and it appears to work right, except how do I shut it down without ctrl-alt-del task manager? I mean like hitting esc or something to exit script completely not just the loop.

$a = 1

while $a = 1

send("{w}")

sleep(3000)

send("{r}")

sleep(3000)

send("{v down}")

sleep(10000)

send("{v up}")

sleep(3000)

send("{r}")

sleep(3000)

send("{7}")

sleep(3000)

send("{n}")

sleep(150000)

WEnd

Edited by kaino

Share this post


Link to post
Share on other sites
Canasian

create a exit button ^_^

HotKeySet("{ESC}", "Close")

Func Close()
Exit
EndFunc

that should work ;)

Edited by Canasian

Share this post


Link to post
Share on other sites
kaino

Thx m8 that works perfect!

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  

×