Jump to content

[HELP!] AutoIT wont work on XP


Recommended Posts

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

Seems you missed to read the forum rules on your way in. Game automation of any kind is not permitted here. 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...