Shyke Posted July 10, 2007 Share Posted July 10, 2007 Is it possible to change the size of an already created GUI? If so, how? Link to comment Share on other sites More sharing options...
Generator Posted July 11, 2007 Share Posted July 11, 2007 (edited) Maybe... Func _Resize($w, $h, $guihwd) Local $Size = WinGetPos($guihwd) If Not $Size Then Return 0 If WinMove($guihwd, "", $Size[0], $Size[1], $w, $h) Then Return 1 Else Return 0 EndIf EndFunc ;==>_Resize Edit: Tidied Up, not tested. Edited July 11, 2007 by Generator Link to comment Share on other sites More sharing options...
Shyke Posted July 11, 2007 Author Share Posted July 11, 2007 So, the attempted change to hide my GUI while it is running did not work. Attempting GuiSetState(@SW_HIDE, $gui) does not work for the purpose I need either as it steals focus. New issue: While using @SW_HIDE, how do I keep the hidden GUI from stealing focus? Link to comment Share on other sites More sharing options...
Generator Posted July 11, 2007 Share Posted July 11, 2007 So, the attempted change to hide my GUI while it is running did not work.Attempting GuiSetState(@SW_HIDE, $gui) does not work for the purpose I need either as it steals focus.New issue: While using @SW_HIDE, how do I keep the hidden GUI from stealing focus?I don't think hidden GUI steals focus, mind giving an example? Link to comment Share on other sites More sharing options...
Shyke Posted July 11, 2007 Author Share Posted July 11, 2007 Just make a script that has a gui, an embedded IE window in it and then hide it but make it navigate to a new page at random. You'll quickly find that it will steal focus. 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