Jump to content

Recommended Posts

Posted

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]

Posted

:)

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]

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

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]

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...