Sign in to follow this  
Followers 0
UQOII

Litle question

6 posts in this topic

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]

Share this post


Link to post
Share on other sites



:)

It already does this.

Share this post


Link to post
Share on other sites

:)

It already does this.

you dont get it :D

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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 :D

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)

EndIf

EDIT: Corrected error pointed out by UQOII

Edited 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.

Share this post


Link to post
Share on other sites

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)

EndIf

Thanx it works!

but there where some error's :)

this is it:

If not WinActive($gui) and not BitAnd(GuiSetState($gui),@SW_HIDE) then

GuiSetState(@SW_HIDE,$gui)

EndIf


[center]uqoii.nl[/center]

Share this post


Link to post
Share on other sites

Thanx it works!

but there where some error's :)

this is it:

If not WinActive($gui) and not BitAnd(GuiSetState($gui),@SW_HIDE) then

GuiSetState(@SW_HIDE,$gui)

EndIf

Ah 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.

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  
Followers 0