script bug need help

Ask gaming related questions (AHK v1.1 and older)
vitorcastro
Posts: 47
Joined: 18 Apr 2021, 19:09

script bug need help

15 May 2021, 18:52

Code: Select all

wTitle = MEmu
Loop {
 WinWait, %wTitle%
 SetTimer, MEmu, 100

 WinWaitClose
 SetTimer, MEmu, Off

}
Memu:

PixelSearch,,, 257, 43, 257, 43, 0x11118c, 100
If !ErrorLevel ; Skip if pixel was found
 Return
SetKeyDelay, 100
ControlSend,, {F1 2}, %wTitle%
Return

esc::exitapp
F5::Pause ; press F1 to play/pause
[Mod edit: [code][/code] tags added.]

its works with the title game but when i change fo anything else an error occurs why?
vitorcastro
Posts: 47
Joined: 18 Apr 2021, 19:09

Re: script bug need help

15 May 2021, 18:53

im traying to change to that name LDPPlayer but wont works when i open script says line error at the changed location name
User avatar
mikeyww
Posts: 26888
Joined: 09 Sep 2014, 18:38

Re: script bug need help

15 May 2021, 21:07

Instead of posting the working script, you could post the other one.
vitorcastro
Posts: 47
Joined: 18 Apr 2021, 19:09

Re: script bug need help

16 May 2021, 00:16

that one im using i just want to rename the process window but wont let me do it
User avatar
mikeyww
Posts: 26888
Joined: 09 Sep 2014, 18:38

Re: script bug need help

16 May 2021, 08:39

You are describing a script with an error, but you have not shown the script. I am at a loss. Perhaps others will know what to do at this point.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 139 guests