AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Enable / Disable window

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Mario
Guest





PostPosted: Sat Dec 11, 2004 10:00 pm    Post subject: Enable / Disable window Reply with quote

Hi,

Is there a way to enable and disable a window in AutoHotkey ? Looked up the docs but couldn't find anything.

Thanks,
Mario
Back to top
BoBo
Guest





PostPosted: Sun Dec 12, 2004 12:30 am    Post subject: Reply with quote

Quote:
enable and disable a window


Question
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sun Dec 12, 2004 2:11 am    Post subject: Reply with quote

Do you mean make it so that none of the controls inside the window are functional? If so, it might be possible to add a "WinSet" command to do that if the OS allows one app to call SetWindowLong() against another app.
Back to top
View user's profile Send private message Send e-mail
Mario
Guest





PostPosted: Sun Dec 12, 2004 9:06 am    Post subject: Enable / Disable window Reply with quote

Quote:
Do you mean make it so that none of the controls inside the window are functional?


Yes. Specifically, I'm talking about what happens to a window when the EnableWindow API is called on it, so that the window does not receive input such as mouse clicks and key presses. This is applicable to top level windows containg child controls, as well as to individual child controls. When a top - level window is enabled / disabled, all its child controls are implicitly enabled / disabled.

Quote:
If so, it might be possible to add a "WinSet" command to do that if the OS allows one app to call SetWindowLong() against another app.


It would be great if you could add this to WinSet. In fact, I looked up WinSet in the docs, and was expecting it to already have this functionality.

It would be nice to have ON / OFF / TOGGLE values, similar to that of the 'AlwaysOnTop' attribute.

Finally, I'm not sure that SetWindowLong will work on Windows 95/98/Me, because the docs say this :

Code:
Windows 95/98/Me: The SetWindowLong function may fail if the window specified by the hWnd parameter does not belong to the same process as the calling thread.


Thanks for your time,
Mario
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sun Dec 12, 2004 4:23 pm    Post subject: Reply with quote

Thanks for the info. Since this seems easy to implement, it should be in the next version.
Back to top
View user's profile Send private message Send e-mail
mario_a



Joined: 12 Dec 2004
Posts: 51

PostPosted: Sun Dec 12, 2004 5:12 pm    Post subject: Reply with quote

Good to hear that Very Happy
Thanks !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group