Shyke Posted July 10, 2007 Posted July 10, 2007 Is it possible to change the size of an already created GUI? If so, how?
Generator Posted July 11, 2007 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
Shyke Posted July 11, 2007 Author 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?
Generator Posted July 11, 2007 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?
Shyke Posted July 11, 2007 Author 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.
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