Jump to content

ControlSend


Recommended Posts

RAWWRRR! :3

Got a question:

While using ControlSend() Function, I have trouble with my keyboard? I mean, I have all the ID, Window Name & Text etc. And it works a charm.

But!

When i'm on MSN it ruin's all my messages :s Sometimes it will delete it all, and sometimes make random ASCII characters. :D

All it does it Send Ctrl+X (^x) and then half a second later press Ctrl+S (^s). But it's really hard to speak on MSN... :P

Is there any way around this?

Link to comment
Share on other sites

Well, it's very, very, very basic. I'm still trying to learn, so you'll have to forgive me. :D

After using AutoIt's Window Info, it doesn't give no Text nor ID x_x

That's about it :P

For some reason, without the first line (While 1; Sleep(1); WEnd) the program opens and closes in a instant! :S

; HotKey
HotKeySet ("{PAUSE}","Begin")
HotKeySet ("{ESC}","ExitP")

; Code

While 1
    Sleep (1)
    WEnd

Func Begin()
    While 1
ControlSend ("GameName","","","^x",0)
Sleep (1000)
ControlSend ("GameName","","","^s",0)
    WEnd
EndFunc

Func ExitP()
Exit
EndFunc
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...