Sign in to follow this  
Followers 0
pumpkin

about mouse and keyboard controls

8 posts in this topic

hi ppl, im new here and usually not a programmer, just teached myself to make bots for a game.

well here is my problem:

the game is run in a window by a minimizer. until now the bots worked by activating the game window, then sending the actions to do, like mouse movement, clicks, and skill changing through numbers.

but now, they made a new update on their gameguard, after that, although the game window is active, the actions are done behind the window on the desktop, and not affecting the game anymore.

my question now is, is there a way to for example send the actions directly to the application (game) isntead of activating it and doing directly there? or do u ppl have any idea what else i can do?

hope there is a solution available ;)

have a nice day

Share this post


Link to post
Share on other sites



update: well the problem was solved by renaming the bot in a way that their gamgaguard lets it pass now, but id still like to know if there is a way to send mouse moves clicks etc to a program while its for example minimized to tray ... any ideas? ;)

Share this post


Link to post
Share on other sites

Check out the Control commands in the helpfile.


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

hmm can give me a hint? :lmao:

im really brandnew to such things, i learned to make such bots by tried to edit others, and im willing to learn more, but dont have the logical mind yet that i need for it, so any advice would be nice ;)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Check into ControlClick, ControlSend, and ControlCommand, that should get you started. And if you haven't already, check out the AutoIt Window Info Tool, as you'll probably be needing it.

Edited by mikehunt114

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

k i checked the window info tool to get the right coords that the mouse should move to, so controlsend etc does it the way i asked for? i mwean sendnig directly to prog instead of only working when the window is enabled ..

ok enough questions for now, time to get into it, thx for the hints mike ;)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

No problem. You only need to use pixels for MouseClick() and such, if you're gonna use the Control...() commands, you use Control IDs, which you can get with AU3Info. It's all explained in the helpfile, good luck.

Edited by mikehunt114

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

hi again, i checked the control things now, but, as in the help file noted, it seems that this game is one of the progs that dont use the same kind of commands as microsoft, because inside the game i dont get any infos on that section of the window info ...

any other ways or will i have to forget this idea?

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