Ormus Posted November 21, 2021 Posted November 21, 2021 expandcollapse popup#RequireAdmin HotKeySet("{UP}", "startScript") HotKeySet("{DOWN}", "endScript") Opt("PixelCoordMode", 0) Opt("MouseCoordMode", 0) Global $Paused Global $Checksum Func startScript() $Paused = NOT $Paused While $Paused Qme() Sleep(2500) WEnd EndFunc Func Qme() $checksum = PixelChecksum(1347, 0, 1919, 228) While $checksum = PixelChecksum(1347, 0, 1919, 228) Sleep(100) WEnd Queue() EndFunc Func Queue() MouseClick("right", 1899, 1035, 1, 0) Sleep(random(1000, 1500)) MouseClick("left", 1782, 982, 1, 0) Sleep(random(1000, 1500)) MouseClick("right", 1899, 1035, 1, 0) Sleep(random(1000, 1500)) MouseClick("left", 1809, 1053, 1, 0) Sleep(random(1000, 1500)) Send("{8}") Sleep(2500) EndFunc Func endScript() Exit(0) EndFunc While 1 Sleep(2500) WEnd Hi. I am having difficulties with this script. I want it to execute Queue() once after something changed in $checksum = PixelChecksum(1347, 0, 1919, 228) then go back to look again. My problem is that is keeps executing Queue() seemingly randomly? Thanks.
Developers Jos Posted November 21, 2021 Developers Posted November 21, 2021 21 minutes ago, Ormus said: My problem is that is keeps executing Queue() seemingly randomly? So, did you check whether the checksum actually changed, which I assume is the issue? What program are you trying to automate as testing for a checksum like this isn't perse the best approach? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Ormus Posted November 21, 2021 Author Posted November 21, 2021 I don't see how the checksum could change.. This script is for a game that will automatically queue me into a battleground from another PC.. so I do not need to walk back and fourth between them. So when I write a message to other PCs in-game character it will queue me. Nothing in the checksum area has changed from what I can tell, I have it starring into a wall that doesn't change.
Developers Jos Posted November 21, 2021 Developers Posted November 21, 2021 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts