Jump to content
Sign in to follow this  

Need some advice on resizeing gui

Recommended Posts


I cant fiqure out how to resize my gui after entering game. Ill post the code for what I start with and what I needto change too:

Global $Form1 = GUICreate("XBOTv0.1",785, 583, 187, 113,-1 ,BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II")
Global $Edit1 = GUICtrlCreateEdit("", 0, 0, 801, 601, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II")
GUICtrlSetData(-1, "")
WinMove("XBOTv0.1", "", 0, 0)

and i need to change these once in game:

$Edit1 1 ( 0, 0, 661, 503, -1 BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II")
$Form1 1( 645, 485, 193, 125, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE),"Diablo II")

How would I go about doing this in the quickest working way? I've been trying to use Dim and ReDim. but its not working out too well, Not really sure how to use them, just been experimenting with it all to kind of help teach myself.

Share this post

Link to post
Share on other sites

not sure what you were doing with the dims?


For the main GUI

WinMove("XBOTv0.1","",645, 485, 193, 125)

for controls do this

GUICtrlSetPos($Edit1,0, 0, 661, 503)

you already have the styles that you want so need to to add more. If you did, you would use GUICtrlSetStyle

Share this post

Link to post
Share on other sites

Thank you, I had to redo the #'s but that works perfectly. Thank You again.

WinMove("XBOTv0.1","",0, 0, 648, 515)
GUICtrlSetPos($Edit1,0, 0, 650, 515)

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this