Gif Posted July 6, 2007 Posted July 6, 2007 (edited) when i press a button i want another gui to be shown and while its there i want the main gui to be disabled so i just use this: GUISetState(@SW_DISABLE, $GUI) GUISetState(@SW_SHOW, $FuncGui)oÝ÷ ٩ݶ§§¶Ø^~*ì¶ÞzvçZÛazÇ¢wa×^Ê"ºÇ+ºÚ"µÍÕRTÙ]Ý]JÕ×ÒQK ÌÍÑ[ÑÝZJBÕRTÙ]Ý]JÕ×ÑSPK ÌÍÑÕRJBBÕRTÙ]Ý]JÕ×ÔTÕÔK ÌÍÑÕRJ is there a more elegant way to enable the $GUI and keep it restored? cause for a split second the $GUI minimizes and restores... PS: even if i use @SW_restore before enable i have the same result Edited July 6, 2007 by c4nm7
Monamo Posted July 6, 2007 Posted July 6, 2007 (edited) Have you thought about using WinSetTrans on your main GUI?To work around the resize visibility, I'd suggest trying to:Set main GUI to 0 transparency levelSW_Hide the main GUI (to then remove the taskbar item)Enable your function GUI, do its tasks, and get rid of the function GUISW_Show the main GUISet main GUI back to 255 transparency levelJust my quick 2 cents, though there may already be another method.Edit addition:... or instead of SW_RESTORE, using SW_SHOW? GUISetState(@SW_SHOW, $GUI) I haven't run across the min/restore issue on my stuff because I just use HIDE/SHOW. Edited July 6, 2007 by Monamo - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]
lod3n Posted July 6, 2007 Posted July 6, 2007 WinActivate($FuncGui) ? [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
Gif Posted July 6, 2007 Author Posted July 6, 2007 (edited) Have you thought about using WinSetTrans on your main GUI?To work around the resize visibility, I'd suggest trying to:Set main GUI to 0 transparency levelSW_Hide the main GUI (to then remove the taskbar item)Enable your function GUI, do its tasks, and get rid of the function GUISW_Show the main GUISet main GUI back to 255 transparency levelJust my quick 2 cents, though there may already be another method.Edit addition:... or instead of SW_RESTORE, using SW_SHOW? GUISetState(@SW_SHOW, $GUI) I haven't run across the min/restore issue on my stuff because I just use HIDE/SHOW.yes i tried @SW_SHOW to and it doesnt work properly as for the transparency , i ve thought of itbut i dnt want the $GUI invisible...WinActivate($FuncGui) ?the window gets blank for a sec if i use this.. Edited July 6, 2007 by c4nm7
Monamo Posted July 6, 2007 Posted July 6, 2007 ...but i dnt want the $GUI invisible...That'll teach me not to read the example so quickly. :"> I was looking at the show/hides on $FuncGui and attributing them to $GUI in my head... - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]
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