Jump to content

Sendkey Problems


Recommended Posts

I'm trying to get Autoit to work with Halo, but things are not going to good :P

I know my script is correct but it doesn't do anything.

I can't directly send to a window because there is none, at least I think there isn't....

opt("SendKeyDelay", 10); Alters the the length of the brief pause in between sent keystrokes.
opt("SendKeyDownDelay", 5); Alters the length of time a key is held down before released during a keystroke.

HotKeySet("{NUMPAD0}", "SendMessage")

While 1
    Sleep(100);The sleep loop is too keep Autoit running.
WEnd

Func SendMessage()
    Send("y", 1)
    Send("Stop TK'ing or you will be banned", 1)
    Send("{ENTER}")
EndFunc  ;==>SendMessage

The key "y" is to open a chatbox, the rest you can understand. I tested the script with notepad and everything works, but with Halo it doesn't even open the chat box?

So can anyone help me debug this problem, or have any suggestions on what I am doing wrong?

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...