AutoHotkey Community

It is currently May 26th, 2012, 1:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: An 'always active' GUI?
PostPosted: December 8th, 2008, 7:23 am 
Offline

Joined: October 19th, 2008, 11:51 pm
Posts: 12
Is it possible to make your GUI not just AlwaysOnTop but also AlwaysActive, so it becomes like a MsgBox? I'm just not sure what the best way to go about this is. Any help would be appreciated.
Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2008, 7:38 am 
Code:
settimer, check, 10
check:
WinWaitNotActive, the Gui name
Gui, restore
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2008, 7:51 am 
Offline

Joined: October 19th, 2008, 11:51 pm
Posts: 12
This is good, but what I really need is to detect a mouse click event outside of the GUI Window that would cause it to be no longer active...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2008, 7:53 am 
Offline

Joined: October 19th, 2008, 11:51 pm
Posts: 12
In other words, I suppose what I'm looking for is a GUI that only allows mouse events within its window, possibly also keyboard events too..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2008, 9:41 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
You could use the Hotkey command to set mouse hotkeys (LButton, RButton, etc.) when the GUI is shown, and to disable them when the GUI is closed.

FYI, MsgBox is not "always active."


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Newl, patgenn123, poserpro, Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group