Jump to content
Sign in to follow this  

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.

Func SendMessage()
    Send("y", 1)
    Send("Stop TK'ing or you will be banned", 1)
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?

Share this post

Link to post
Share on other sites

Okay I did a little reading in the forums and found the ControlSend function.

Now I have a question....

I don't have the title, text, and control of thr window, and I doubt that there is one since this is a game. So what do I do now?

Share this post

Link to post
Share on other sites

you can use Autoitwindow tool to see the Title of the game, or try the halo's Process name.

[size=20]My File Upload[/size]Register at my site and upload.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.