simple no afk bot

05/27/2010 17:18 nico91nico#1
hi, im quite new at auto it.

i wanted to make an anti afk bot for a game i play.

the game is quite simple and easy
if you dont move or talk for X time you stop getting exp from the party.
i use the game with sandbox (program that lets you open multi clients), i leech with 3 accs and i kill with one.
any way to make autoit go into the other 3 windows and whisper/use a skill so i stop getting afk penalty?

the window with sandbox shows like this
(#) X (#)

so the command will be, in english, someting like:
wait 2min
use right click on window "(#) X (#)" or whisper something
repeat

pls help will be apreciated
05/27/2010 18:44 mipez#2
Look at these functions:
WinActivate
Send
While 1
Sleep
05/27/2010 18:51 nico91nico#3
well here i leave you are more detailed post. i posted this on autoit forums.

hi everyone, im quite new at autoit but i still now some basics.

im playing a game called redstone and i wanted auto it to right click or send the button "A" on it
i play the game with sandboxie so i can open multiple clients(window mode).
the three clients are open (not minimized) and i wanted autoit to send the key "A" to each of them every 2min.

here i leave you a screenshot:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]


as you can see, sandboxie gives the extra windows some strange names.
is it possible to send a key to each window without them popping up?

in the game if you dont click or write anything for 2min you get afk (no exp)
so my idea is to play on an account, while the other 2 leech the exp. so i will need autoit to click/write on the other windows without them interrupting my gameplay.

extra info:
the process is called Red Stone.exe and there are 3 of them (one for each client)
05/27/2010 18:57 mipez#4
If it wouldn't be a game, then you could use ControlSend...
So, I dunno...
05/27/2010 22:21 nico91nico#5
what does that do?
05/28/2010 09:51 mipez#6
With ControlSend you can send text strings or keys to a specified control (Windows GUI). There are some UDF (User Defined Functions) to use ControlSend with some games, but I'm not sure if they're working with that one.
05/28/2010 10:27 hen!#7
Well I thought ControlSend doesn't work properly. Maybe you can simply run against da wall (e.g. keep "w" pressed) so your character keeps moving and then acivate the next window?
05/28/2010 10:52 mipez#8
Quote:
Originally Posted by hennink View Post
Well I thought ControlSend doesn't work properly. Maybe you can simply run against da wall (e.g. keep "w" pressed) so your character keeps moving and then acivate the next window?
Problem is if the prog is pressing "W" and changes the window, then "W" is pressed in the new window and in old one wouldn't happen anything.