Check if classnn is active (controlgettext alternative)

Get help with using AutoHotkey and its commands and hotkeys
Posts: 12
Joined: 19 Jul 2018, 10:01

Check if classnn is active (controlgettext alternative)

15 Aug 2018, 07:34

Hi there!

This is my very first contribution to this forum. At my job, I use a very poor proprietary software daily, to do many repetitive tasks. Unfortunately, I couldn't manage to make it work with controlgettext, controlclick, controlgetfocus, postmessage, sendmessage. I managed to find a way that works. I use controlgetpos and check the coordinates:

Code: Select all

1:: ; make coordinates blank, run controlgetpos, if classnn is active, x is not blank
x :=
y :=
SetTitleMatchMode, 2
CoordMode, Mouse, Window
CoordMode, Pixel, Window
CoordMode, Caret, Window
CoordMode, Menu, Window
ControlGetPos, x, y, w, h, YOURCLASSNN, YOURTITLE, , , ,;
If x
MsgBox YOURCLASSNN is active!
MsgBox YOURCLASSNN isn't active!
Hopefully this will be useful to somebody! Try this if you can't get other things to work!!!
:dance: :dance: :dance:

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], cedric3d, Google [Bot], Nickyeo and 60 guests