Sign in to follow this  
Followers 0
ZanaxNL

> How to: The macro only works the window you like?

16 posts in this topic

Hello,

I'm really looking on every website for the code to make the macro/bot/autoit only work in the window/client I want.

Like i say

Send ["[Hello]"

Than he most only say this in Notepad. so when I do something else on the computer he still saying that on Notepad.

I really search this code for months. but no succes. So please somebody. Can u help me !?

Thank a lot : (.

I heared of someone that is maybe C++ script.

Thanks,

ZanaxNL

;)

Share this post


Link to post
Share on other sites



I would recommend using control send to notepad. There is an example in the help file

ControlSend("[CLASS:Notepad]", "", "Edit1", "This is a line of text in the notepad window")

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ok, thanks.

Can u make maybe a little example with notepad? ( < ControlSend )

So i can see how it works.

Let say he most Send ("{Hello}")

Thanks!

Znaxnl

Edited by ZanaxNL

Share this post


Link to post
Share on other sites

Uhhmmm...

I asked a example of ControlSend. (!!!)

How that works...

thanks anyways but i need to know that.

ZanaxNL

Share this post


Link to post
Share on other sites

There is an example for (almost?) all functions in the helpfile. The one for controlsend is even for notepad!

Share this post


Link to post
Share on other sites

Omg. found it. Thank u so much ! Onichan !

Only thing. its for a game. with different resolutions (windowed game) so if i set the title until the resolution he will find the window also?

*sorry this sentence is bad xD

Thanks thanks thanks!

ZanaxNL

Share this post


Link to post
Share on other sites

Read this first.

Share this post


Link to post
Share on other sites

Resolutions doesn't make a difference, unless you are saying you have multiple windows and are trying to control each window differently using the resolutions. Then I am unsure how you would go about that.

Share this post


Link to post
Share on other sites

Ok, but the title give me a problem.

The title =

LastChaos - Aeria Games & Entertainment (Window 800x600)

When i do this:

If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then ControlSend ("LastChaos", "", "Edit1", ("{TAB}"),0)

Then nothing happening in the game.

So what title most stand there instead of LastChaos : (

Last problem then its fixed : D

;)

Thanks

ZanaxNL

Share this post


Link to post
Share on other sites

Sorry i don;t understand that.

Can u please give a scirpt or code?

thanks

Share this post


Link to post
Share on other sites

There are examples on the function documentation on this site and in the install directory for AutoIt.

That aside, this person is scripting to automate a multiplayer game...

Share this post


Link to post
Share on other sites

Aha. but anyways. When i try it with Untiteld ( >Notepad ) it work, when i try other window it doesnt work anymore. so what now : (?

Share this post


Link to post
Share on other sites

The game features multiplayer and they do not allow automation. That means you can't discuss this here

Terms of Service

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