Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick macro behaviour using the accesible object property
#2
Use STATE_SYSTEM_UNAVAILABLE flag. Even better, use DoDefaultAction instead of Mouse(1). If still does not work, insert some delay, eg 0.2, after a.Mouse or a.DoDefaultAction.

Example with QM Options dialog, Security tab, QM 2.1.8:
Code:
Copy      Help
act "Options"
spe

Acc a=acc("Mouse buttons" "CHECKBUTTON" "Options" "Button" "" 0x1001)
;a.Mouse(1)
a.DoDefaultAction

Acc a2=acc("Mouse drag" "CHECKBUTTON" "Options" "Button" "" 0x1001)
if(a2.State&STATE_SYSTEM_UNAVAILABLE) out "disabled"; else out "enabled"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)