Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Window Size and Position
#1
Hi, I need to specify the size and position of a window. 

I have seen a post about specifying the window position but not on how to specify it's size.

Al, is there a way to specify the exact window position (instead of top-left, bottom-right, etc)?

Thank you.

I did some more searching and found a post by Gintaras that helped.  Here's the solution I used.

spe 10
int w
run "$windows$\explorer.exe" ".\" "" "" 0x2800 win("" "CabinetWClass") w
siz 1000 800 w
mov 2907 6 w

Thanks Gintaras.
#2
I usually use mov+. you can find help file searching "mov" and I think it is necessary to wait window appears.
 
Code:
Copy      Help
int w
run("$windows$\explorer.exe" ".\" "" "")

rep
   wait 0.1
   w=win("" "CabinetWClass" "explorer")
   if(w) 
      mov+ 2907 6 1000 800 w
      break


Forum Jump:


Users browsing this thread: 1 Guest(s)