Sign in to follow this  
Followers 0
Info

Need help with WinActivate

34 posts in this topic

How can that if I prees button like "$Button_1" then it will do the things I want in the window I selected...

I want something like this:

If $msg = $Button_1 Then
In Window "The window's name":
MouseClick ("Bla Bla")
Send ("Bla")

Hope you understand me and help.

Share this post


Link to post
Share on other sites



How can that if I prees button like "$Button_1" then it will do the things I want in the window I selected...

I want something like this:

If $msg = $Button_1 Then
In Window "The window's name":
MouseClick ("Bla Bla")
Send ("Bla")

Hope you understand me and help.

Do you know more about what you want to click, besides "Bla Bla"? That's not a valid control name, but...

If $msg = $Button_1 Then
     ControlClick("The window's name", "", "Bla Bla")
     Send("Bla")
EndIf

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Do you know more about what you want to click, besides "Bla Bla"? That's not a valid control name, but...

If $msg = $Button_1 Then
     ControlClick("The window's name", "", "Bla Bla")
     Send("Bla")
EndIf

:P

Not working :)

Share this post


Link to post
Share on other sites

???

I'm telling you it's not working.

Can't you help instead of spamming this thread?

Share this post


Link to post
Share on other sites

???

I'm telling you it's not working.

Can't you help instead of spamming this thread?

You can't get any help if you can't tell us what you are working with... which makes your nym pretty hilariously ironic.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Alright, it's like this:

I want to do basic things like MouseClick and Send in a game.

But the curser is only moving in the desktop, and not in the game.

What I need to do?

BTW:

NeoTroniX, I wasn't talking to you =\

Edited by Info

Share this post


Link to post
Share on other sites

Yeah >.<

Is it the reason that the command isn't working?

Share this post


Link to post
Share on other sites

try running it through VMware and interacting that way

Share this post


Link to post
Share on other sites

So is there a way to Bypass it? >.>

Share this post


Link to post
Share on other sites

So is there a way to Bypass it? >.>

I already gave a suggestion:

try running it through VMware and interacting that way

Did you try it?

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