Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MoveWindow - don't alter one of the variables
#1
Hi Gintaras,
When using MoveWindow x y cx cy, how do I give new values for some but not all the coordinates. Say I want to adjust x, y and cx but not cy? If I put in a 0 in that spot, it is coming out as a height of zero.
S
#2
Can use GetWinXY to get current coordinates then alter.


Macro Macro2
Code:
Copy      Help
int x y cx cy

GetWinXY win("Quick Macros -") x y cx cy

x+100; y+100; cx+100
;;x=100; y=100; cx=100

MoveWindow win("Quick Macros -") x y cx cy 1


Forum Jump:


Users browsing this thread: 1 Guest(s)