Edelweise1337 Posted November 4, 2016 Share Posted November 4, 2016 Hi. I have coded a simple script to perform mouse click actions for a game called Diablo II. Here's the script: Opt("WinTitleMatchMode", 2) $pos = WinGetPos("Diablo II") HotKeySet("{U}", "getItDone") Func getItDone() WinWaitActive("Diablo II") MouseClick("left", $pos[0] + 721, $pos[1] + 58) Sleep(100) MouseClick("right", $pos[0] + 704, $pos[1] + 68) Sleep(100) MouseClick("left", $pos[0] + 238, $pos[1] + 76) Sleep(100) MouseClick("left", $pos[0] + 182, $pos[1] + 420) EndFunc When I try to run the script, it is starting for 1 second and closes immediately. I have tried other scripts and it's the same. My pc specs are: Windows XP SP3 AMD Sempron(tm) Processor 3400+ 1.81 Ghz 2GB Ram I have tried to downgrade autoit version to 3.3.8.0, but it doesnt work either. What's wrong guys ? Help, please! Link to comment Share on other sites More sharing options...
water Posted November 4, 2016 Share Posted November 4, 2016 Seems you missed to read the forum rules on your way in. Game automation of any kind is not permitted here. meoit 1 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts