Jump to content
Sign in to follow this  
SofaKingWeTardEd

ControlSend

Recommended Posts

SofaKingWeTardEd

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?

Share this post


Link to post
Share on other sites
FireLordZi

I could be of further assistance if I had some code to read. Describing the problem is not much

to work with...

:D


While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites
SofaKingWeTardEd

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

Share this post


Link to post
Share on other sites
Nevin

It closes instantly because there's nothing for it to do. The rest of the code consists of functions that have to be called.

Share this post


Link to post
Share on other sites
FreeFry

Correct me if I'm wrong, but this does send keys/text to a msn game?

Share this post


Link to post
Share on other sites
SofaKingWeTardEd

Correct me if I'm wrong, but this does send keys/text to a msn game?

Nope, this sends keys to Game that is minimized.

Share this post


Link to post
Share on other sites
FreeFry

oh, ok.. hmm then I'm out of guesses..

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  

×