Jump to content

Recommended Posts

Posted

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

  Quote

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

;)

Posted

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")

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
Posted

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

Posted

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.

Posted

Ok, but the title give me a problem.

The title =

  Quote

LastChaos - Aeria Games & Entertainment (Window 800x600)

When i do this:

  Quote

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

Posted

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...

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...