Aceguy Posted August 28, 2006 Share Posted August 28, 2006 Hello, im a sorta noob to this.... but just need a few ideas to get me started. My idea is that i would like to move and resive a (Solid Box) and to return the top left position and the size of the box, width and height. i just dont know where to start....... Please could you point me in the right direction. Ace.... [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Aceguy Posted August 28, 2006 Author Share Posted August 28, 2006 p.s. would like to move it with the mouse. and the box to have no close/minimize handles.? [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Paulie Posted August 28, 2006 Share Posted August 28, 2006 Hello, im a sorta noob to this.... but just need a few ideas to get me started. My idea is that i would like to move and resive a (Solid Box) and to return the top left position and the size of the box, width and height. i just dont know where to start....... Please could you point me in the right direction. Ace....GUI in the helpfile can create you a box use the style $WS_POPUP looks like a splash box Link to comment Share on other sites More sharing options...
Valuater Posted August 28, 2006 Share Posted August 28, 2006 ???? Run("notepad.exe") sleep(1000) WinMove("Untitled -", "", 0, 0, 200, 200) 8) Link to comment Share on other sites More sharing options...
Aceguy Posted August 28, 2006 Author Share Posted August 28, 2006 ok, errrrm, need more help with $WS_POPUP please [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Aceguy Posted August 28, 2006 Author Share Posted August 28, 2006 This what i have. #include <GUIConstants.au3> $mypopup=GUICreate("my popup", 100,30,300,300,BitAND($WS_CAPTION,$WS_POPUP)) GUISetState() sleep(3000) [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Aceguy Posted August 28, 2006 Author Share Posted August 28, 2006 its growing.... #include <GUIConstants.au3> $xpos=150 $ypos=150 $mypopup=GUICreate("my popup "&$xpos&" "&$ypos, $xpos,$ypos,300,300,BitAND($WS_CAPTION,$WS_POPUPWINDOW)) GUISetState() while 1 GUISetState() sleep(100) WEnd [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
amanda089 Posted August 28, 2006 Share Posted August 28, 2006 I believe it should be BitOR for the gui styles and ex styles, not BitAND Link to comment Share on other sites More sharing options...
Paulie Posted August 28, 2006 Share Posted August 28, 2006 its growing....You can take the 'GuiSetState()' Out of the while loop too Link to comment Share on other sites More sharing options...
Aceguy Posted August 28, 2006 Author Share Posted August 28, 2006 Yep spot on amada, TY. #include <GUIConstants.au3> $xpos=150 $ypos=150 $mypopup=GUICreate("my popup", $xpos,$ypos,300,300,Bitor($WS_CAPTION,$WS_POPUPWINDOW,$WS_SIZEBOX)) $but=GUICtrlCreateButton("Pushme",20,20,50,50) GUISetState() while 1 $msg = GUIGetMsg() Select case $msg = $but $size = WinGetPos("my popup") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3]) EndSelect WEnd However, hanvet yet figured out how to make the co-ordinates update while dragging, any ideas please. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Paulie Posted August 28, 2006 Share Posted August 28, 2006 (edited) Yep spot on amada, TY. (Snip) However, hanvet yet figured out how to make the co-ordinates update while dragging, any ideas please.you're close Cant display things in a msgbox though, because it pauses the script #include <GUIConstants.au3> $xpos=150 $ypos=150 $mypopup=GUICreate("my popup", $xpos,$ypos,300,300,Bitor($WS_CAPTION,$WS_POPUPWINDOW,$WS_SIZEBOX)) $but=GUICtrlCreateButton("Pushme",20,20,50,50) GUISetState() while 1 $size = WinGetPos("my popup") $msg = GUIGetMsg() ToolTip($size[0] & ", " & $size[1] & " - " & $size[2] & "x" & $size[3], $size[0]-10, $Size[1]-10) Select case $msg = $but $size = WinGetPos("my popup") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3]) EndSelect WEnd Edited August 28, 2006 by Paulie Link to comment Share on other sites More sharing options...
Aceguy Posted August 28, 2006 Author Share Posted August 28, 2006 Man, guy peeps are soo good.. TYVM [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Paulie Posted August 28, 2006 Share Posted August 28, 2006 TYVMNP Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now