Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse position recorded instead of command
#2
Use dialog "Find accessible object".
Drag and drop the Drag image. Drop on the switch button. Click Test. Click OK. It should add 2 lines of code. Then add code to click the button.
Full code:
Code:
Copy      Help
int w=win("Settings" "ApplicationFrameWindow")
Acc a.Find(w "PUSHBUTTON" "copyq.exe" "class=Windows.UI.Core.CoreWindow" 0x1005)
if a.State&STATE_SYSTEM_CHECKED=0
,a.Mouse(1) ;;click

Change some strings if need, for example "Settings" maybe depends on language.


Messages In This Thread
RE: Mouse position recorded instead of command - by Gintaras - 03-07-2020, 10:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)