Jump to content

Key Sending


Recommended Posts

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]
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...