Jump to content
Sign in to follow this  
qwertylol

this didn't work out

Recommended Posts

qwertylol

$how_long = 5000

MsgBox ( 0, "ready?", "say never" )

walk_this_long ($how_long)


Func walk_this_long ($how_long)
    
    AutoItSetOption ( "SendKeyDownDelay" ,$how_long )
    Send ("+w")
    AutoItSetOption ( "SendKeyDownDelay" ,5 )
    EndFunc

This actually doesn't hold down both shift and w for 5 seconds.

Share this post


Link to post
Share on other sites
qwertylol

I thought it would regard it as doing these two at the same time "+w"

but apparently au3 decide to do "+" 2seconds and then "w" three seconds @_@

Share this post


Link to post
Share on other sites
the_lord_mephy

Send("{SHIFTDOWN}")

AutoitSetoption("SendKeyDownDelay", 5000)

Send("w")

Autoitsetoption("Sendkeydowndelay", 5)

Send("{SHIFTUP}")


My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

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  

×