scrip doesn't work

Ask gaming related questions (AHK v1.1 and older)
hunter1
Posts: 4
Joined: 24 Feb 2018, 23:01

scrip doesn't work

04 Jan 2022, 22:17

Hi All,

I'm new, i had a scrip, before run OK on a app (like a game) in Win7, 64 . Now run the same app but w update version and w win10 64, so the scrip doesn't work
scrip like this::

Code: Select all

 f7::
MouseClick, left,  1914,  350
Sleep, 500

MouseClick, left, 1787, 706
Sleep, 500

WinWait, Component Library Grid, 
IfWinNotActive, Component Library Grid, , WinActivate, Component Library Grid, 
WinWaitActive, Component Library Grid, 
MouseClick, left,  738,  8
Sleep, 300

MouseClick, left,  1735,  281
Sleep, 300
Send, c{ENTER}

Sleep, 300

MouseMove, 922, 476
Sleep, 300
return
[Mod edit: [code][/code] tags added. Topic has been moved.]
--------------------------
Can you let me know why? and how to fix, pls give me a example.

Thanks All
User avatar
boiler
Posts: 17193
Joined: 21 Dec 2014, 02:44

Re: scrip doesn't work

05 Jan 2022, 00:23

This line:

Code: Select all

IfWinNotActive, Component Library Grid, , WinActivate, Component Library Grid,
…should be two lines:

Code: Select all

IfWinNotActive, Component Library Grid
	WinActivate, Component Library Grid

By the way, the “Scripts and Functions” sub-forum is for sharing complete and working scripts with other users, not to ask questions about your scripts. This should have been posted in the “Ask For Help” sub-forum.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 24 guests