Jump to content
Sign in to follow this  

GUISetState, @SW_LOCK question

Recommended Posts

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...

Share this post

Link to post
Share on other sites

Documentation reference:

GUISetState ( [flag [, winhandle]] )

Success: Returns 1.

Failure: Returns 0.

Only one window can be locked with @SW_LOCK and it is always the last one referenced.

The @SW_LOCK and @SW_UNLOCK flags are very nice options to make special gui transitions possible.

The fact that only one window can be locked at any given time is, or should not be a big limitation.

My question:

Is there a way to determent if a window is locked or not, or

if the GUISetState(@SW_LOCK,...) command did or did not locked the target window.

(other than doing something like a pixel scan of course.)

I tried using the return code on GUISetState(@SW_LOCK,...) ,while a other window was already locked, but that always returned 1.

(probably indicating that the target window handle was valid and the command was accepted by the system.)

If there is no way to determent the lock/unlock state of a window,

the @SW_LOCK commend is kind of reduced to being a somewhat trivial 'might work/might also not work' command.

Hope there is a way around this.


here's what this is built from, hence the limitations.


SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...