AutoHotkey Community

It is currently May 27th, 2012, 12:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: July 27th, 2011, 9:21 pm 
Offline

Joined: March 2nd, 2007, 7:25 am
Posts: 57
Location: Germany
(AHK_L)
in the label that is executed after a click on a menu , I can't access the last found window.
This example should find the AHK Help file window but it doesn't if you click the menu:
Code:
IfWinExist , AutoHotkey
{

  Menu, testmenu, add, test, menuClicked
  Menu, testmenu, show

}

menuClicked:
WinGetTitle, OutputVar
msgbox, % OutputVar
return


Why is that?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2011, 4:04 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Quote:
Each thread retains its own value of the "last found" window, meaning that if the current thread is interrupted by another, ...
http://www.autohotkey.net/~Lexikos/Auto ... Window.htm

The current thread is defined as the flow of execution invoked by the most recent event; examples include hotkeys, SetTimer subroutines, custom menu items, and GUI events.
http://www.autohotkey.net/~Lexikos/Auto ... hreads.htm


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad, jrav, MSN [Bot] and 19 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