Problem with checkbox and WinActive

Ask gaming related questions (AHK v1.1 and older)
User avatar
Wed
Posts: 1
Joined: 29 Aug 2018, 20:05

Problem with checkbox and WinActive

30 Aug 2018, 11:10

Hello, i made a small GUI for QoL, it contains 4 macros that I use in a game.

The GUI is kinda simple and I want to use it as toggle, here's an example:

Image

These checkboxes toggle a var, later on the same script i made a small check like:

Code: Select all

if movetobp = 1
NumLock::moveToBp()
moveToBp()...
However, i'd like to know why I can't check like:

Code: Select all

if WinActive("ahk_class GameName") && movetobp =1
It isn't working, same if I just declare #IfWinActive GameName, at first lines.

Can any1 help me? Thanks!
Super Kryston

Re: Problem with checkbox and WinActive

09 Sep 2018, 21:17

Maybe just dont use winactivate but maybe you can using a loop but can i ask you how you make the checkbox toggle a variable
Thanks if you help me
User avatar
SuperKryston
Posts: 10
Joined: 06 Sep 2018, 17:19

Re: Problem with checkbox and WinActive

09 Sep 2018, 21:19

Maybe just dont use winactivate but maybe you can using a loop but can i ask you how you make the checkbox toggle a variable
Thanks if you help me
User avatar
SuperKryston
Posts: 10
Joined: 06 Sep 2018, 17:19

Re: Problem with checkbox and WinActive

11 Sep 2018, 07:41

Maybe its your checkbox
Check if this code helps:
https://autohotkey.com/boards/viewtopic.php?f=5&t=55485

I had that problem and someone helped me solve it i just need to map it from there

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Xeokis and 75 guests