| View previous topic :: View next topic |
| Author |
Message |
Mario Guest
|
Posted: Sat Dec 11, 2004 10:00 pm Post subject: Enable / Disable window |
|
|
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
|
Posted: Sun Dec 12, 2004 12:30 am Post subject: |
|
|
| Quote: | | enable and disable a window |
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Sun Dec 12, 2004 2:11 am Post subject: |
|
|
| 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 |
|
 |
Mario Guest
|
Posted: Sun Dec 12, 2004 9:06 am Post subject: Enable / Disable window |
|
|
| 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
|
Posted: Sun Dec 12, 2004 4:23 pm Post subject: |
|
|
| Thanks for the info. Since this seems easy to implement, it should be in the next version. |
|
| Back to top |
|
 |
mario_a
Joined: 12 Dec 2004 Posts: 51
|
Posted: Sun Dec 12, 2004 5:12 pm Post subject: |
|
|
Good to hear that
Thanks ! |
|
| Back to top |
|
 |
|