UQOII Posted March 8, 2008 Posted March 8, 2008 Hi, Is it possible like the start menu in left corner that if its activate en you click some where else the start menu is hide? thanx [center]uqoii.nl[/center]
UQOII Posted March 8, 2008 Author Posted March 8, 2008 It already does this.you dont get it if my gui is active and i click somewhere else then the gui must hide with this code:GUISetState(@SW_HIDE,$gui)this is the same effect as the start menu in your left corner i hope you get it now [center]uqoii.nl[/center]
martin Posted March 8, 2008 Posted March 8, 2008 (edited) you dont get it if my gui is active and i click somewhere else then the gui must hide with this code:GUISetState(@SW_HIDE,$gui)this is the same effect as the start menu in your left corner i hope you get it now Maybe something in your idle loop you could have If not WinActive($gui) and not BitAnd(GuiGetState($gui),$SW_HIDE) then GuiSetState($gui,$SW_HIDE)GuiSetState($SW_HIDE,$gui)EndIfEDIT: Corrected error pointed out by UQOII Edited March 9, 2008 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
UQOII Posted March 9, 2008 Author Posted March 9, 2008 Maybe something in your idle loop you could have If not WinActive($gui) and not BitAnd(GuiGetState($gui),$SW_HIDE) then GuiSetState($gui,$SW_HIDE)EndIfThanx it works!but there where some error's this is it:If not WinActive($gui) and not BitAnd(GuiSetState($gui),@SW_HIDE) thenGuiSetState(@SW_HIDE,$gui)EndIf [center]uqoii.nl[/center]
martin Posted March 9, 2008 Posted March 9, 2008 Thanx it works!but there where some error's this is it:If not WinActive($gui) and not BitAnd(GuiSetState($gui),@SW_HIDE) thenGuiSetState(@SW_HIDE,$gui)EndIfAh yes, I often get that one round the wrong way. I'll correct my post. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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