| View previous topic :: View next topic |
| Author |
Message |
sullx Cheater
Reputation: 0
Joined: 03 Jan 2013 Posts: 37
|
Posted: Thu Jan 03, 2013 7:10 pm Post subject: Driving Cheat Engine 6.2 with AutoIt |
|
|
I am using autoitx3.dll/win32ole to drive my computer (mouse clicks, key presses, etc). But as soon as I activate the Cheat Engine window, all of the AutoIt commands stop executing.
My motivation is that I have a huge list of memory addresses and I want to do something with each of them in Cheat Engine. Since CE doesn't have any command line interface (as far as I know), an easy solution is to just code up a small autoit script to loop through the list and CE.
It appears the Cheat Engine is blocking this type of automation (a lot like many games block automation tools). Can anyone make a suggestion as to how I can get this to work?
Thanks!
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25987 Location: The netherlands
|
Posted: Thu Jan 03, 2013 7:28 pm Post subject: |
|
|
Cheat engine doesn't have a command prompt, but you can make it execute a script and terminate itself, without it ever being shown.
Write your script using lua and ce's functions to modify tables, files, addresses, opening processes, editing memory, etc...
Then when it's working properly (tested it) backup your plaintext .ct file with the lua script, and then save the table using cheat engine with the extention ".cetrainer" (You must backup as .cetrainers can not be reopened for editing)
If you pass a .cetrainer as a command to the cheat engine .exe (or just launch it from the shell, ce registers the .cetrainer extension ) it will execute the script without showing the gui (unless you tell the script to make a gui an show that)
I'm not really actively blocking it, have you tried the 32-bit ce ? (Perhaps autoit sees that the 64-bit version of ce will completely crap out if anything gets hooked)
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
sullx Cheater
Reputation: 0
Joined: 03 Jan 2013 Posts: 37
|
Posted: Thu Jan 03, 2013 7:38 pm Post subject: |
|
|
Ok, thanks for the reply. I will look in to using a lua script. But, currently I am doing a bunch of debugging and would like to use AutoIt to drive some repetitive task in CE. Is there anyway to get it to work? Any idea why it's blocking it?
Thanks
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25987 Location: The netherlands
|
Posted: Thu Jan 03, 2013 7:50 pm Post subject: |
|
|
Perhaps you're not running autoit as admin.
Since cheat engine runs as admin the only other programs that can touch cheat engine are those that run as admin as well
Also, a lot of repetitive tasks can be done with lua scripts. And alternatively, the gui can be accessed from lua as well as a last resort
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
sullx Cheater
Reputation: 0
Joined: 03 Jan 2013 Posts: 37
|
Posted: Thu Jan 03, 2013 9:59 pm Post subject: |
|
|
| Yes that did it regarding AutoIt. Sorry to have not tried that. But I am happy to know about Lua as it is certainly more robust.
|
|
| Back to top |
|
 |
|