Sign in to follow this  
Followers 0
AgentSmith15

Sendkey Problems

4 posts in this topic

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?

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  
Followers 0