Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restore window
#1
Hi there! First of all... GREAT PROGRAM.
Secondly, I am completely new to this. I have gotten my macro to work, after much trial and error, but I can't seem to get it to restore my previous window I was working on.
I have the macro automated to click on a specific place in a window after a certain period of time, on an infinite loop. BUT, when it clicks in the window, it stays there, and I can't get it to go back to the window I was working on. Is there any way to do this? Thanks in advance! (p.s. obviously, the window i am working on will be different at different times, so I need a general goback to the current window)
#2
Code:
Copy      Help
;before click
int h=win ;;get foreground window handle
POINT p; xm p ;;get mouse position
;...
;click

lef 10 10 "+Shell_TrayWnd"
1
;...
;after click

act h; err
mou p.x p.y
#3
thank you very much. that is exactly what I was looking for. Also, thank you for the prompt reply Big Grin
Jotek


Forum Jump:


Users browsing this thread: 1 Guest(s)