I am trying to create a script that checks whether a button is disabled ("greyed out"). I want it to do nothing if it's disabled and click it if it is not disabled.
This is the code as it is now:
SetTimer, CheckPrompt, 100
SjekkDRMPrompt:
IfWinExist, Hente lisens
{
ControlFocus, Play, ahk_class #32770
Send, {Enter}
}
returnI want to only run the Controlfocus and Send commands if the button ("Play") is not disabled.
How do I get around this?
All help appreciated!




