Sign in to follow this  
Followers 0
lordicast

Key Sending

3 posts in this topic

Ok first off this isnt a BOT or a key logging post!!!

I like to use w,a,s,d for moving around in a game problem is the game doesnt have a change key config. It only a lets you move with up,down,left,right.

so I try this with mixed results.

HotKeySet('{esc}','End')
HotKeySet('{w}','up')
HotKeySet('{s}','down')
HotKeySet('{a}','left')
HotKeySet('{d}','right')

;Exit 
Func End()
    Exit
EndFunc

While 1
    Sleep(10)
WEnd

;-- Directionals
func up()
    send('{up}')
EndFunc
func down()
    send('{down}')
EndFunc
func left()
    send('{left}')
EndFunc
func right()
    send('{right}')
EndFunc

it only works when I hold it down any thoughts?


[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites



You could try having a longer key down delay so the game has more time to notice the key being pressed.

Opt("SendKeyDowDelay", 100)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Do something along the lines of

While 1
    If _IsPressed(57) Then
        While _IsPressed(57)
            Send("{UP}")
        WEnd
    EndIf
WEnd
Edited by Minikori

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

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