Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MOV and triple monitors
#1
i have a dual monitor card with a third monitor hooked up to the internal card so i have three monitors with all the monitors to the left of my primary display so i have the left most position at -2304. i tried doing a mov command but it doesnt want to move it off my primary (most right) monitor. i tried to change my monitor setup but it is hardwired to use the dvi as primary only.

is there some way around this?
An old blog on QM coding and automation.

The Macro Hook
#2
Try MoveWindow.
#3
that didnt seem to work either.
am i doing this incorrectly?

Code:
Copy      Help
_i=win("SamurizeClient-Default" "TClientForm")
MoveWindow _i -1600 100 0 0 0
An old blog on QM coding and automation.

The Macro Hook
#4
Almost correctly. With MoveWindow, width and height must not be 0.

Probably the window detects it and refuses to move. Try SetWindowPos with SWP_NOSENDCHANGING:

Code:
Copy      Help
SetWindowPos hwnd 0 -1600 100 0 0 SWP_NOSIZE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOSENDCHANGING
#5
BOOM!!!
setwindowpos worked great!!!!

thanks.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)