Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need a macro to click the close button of any window
#1
I need a macro to move the mouse pointer over the close button of any window and click on it. It should be a macro working with any window.
I would prefer to use this macro instead of clo or AF4.
#2
Code:
Copy      Help
Acc a=acc("Close" "PUSHBUTTON" win() "" "" 0x1001)
a.Mouse(1) ;;or a.DoDefaultAction


Forum Jump:


Users browsing this thread: 1 Guest(s)