Amfi Posted March 14, 2012 Posted March 14, 2012 Hello community! I am trying to automate some part in the game. Depend of what i found, code looks like: $S=0x4E90DF $P=ProcessExists( "GameProcess" ) WinActive( "GameWindowTitle" ) Func PB() If $L=$S Then Send( "{Q}" ) Endif Endfunc While 1 $L=PixelGetColor( 129, 593 ) Sleep(15000) Switch $P Case $P PB() EndSwitch WEnd However, Send is actually not working ( game client doesn't have any reaction on Send("{Q}") and any other keys if u try, but in other apps it works ) looks like game has an protect from these actions right? ( I saw something about this on the forum ) If so, what can i do? I didn't find ( for now anyway ) any suggestions about this. And if not, maybe i forgot to place something in the script?
water Posted March 14, 2012 Posted March 14, 2012 Welcome to AutoIt and the forum,please make sure to read the forum rules, especially the section about game automation. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Amfi Posted March 14, 2012 Author Posted March 14, 2012 Its for all games or online? I am trying do this for offline game ( and its not a bot ).
Mikeman27294 Posted March 15, 2012 Posted March 15, 2012 (edited) Yes, all games online or offline. Single player and multi player. Game automation is not to be discussed on the forum. Also, automation is classified as a bot. But welcome to the forums, make sure you take a look at those rules, hopefully we wont have any problems? Edited March 15, 2012 by Mikeman27294
Recommended Posts