Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grab and move a window to specific coordinates?
#2
mark10 Wrote:Hi,
Can you please tell me how to grab a window from a random location and move it to specific coordinates? (i.e. the window pops up in random locations and I need to grab it and move it to specific coordinates with a hotkey).
Thanks,
Mark

Use the window as a trigger, than put this code in that function.
Code:
Copy      Help
int hwnd=val(_command)
act hwnd
mov 25 25 hwnd

Or if you dont want the macro to do it automatically and you want to hit F8 to move that window, than use F8 as trigger, and this code
Code:
Copy      Help
int hwnd=win("Mozilla Firefox")
act hwnd
mov 25 25 hwnd


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)