AutoHotkey Community

It is currently May 26th, 2012, 9:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 13th, 2008, 1:47 pm 
Offline

Joined: March 21st, 2007, 1:55 pm
Posts: 11
Location: Lyon (France)
Hi,

I would like to activate keepass from systray and I try this script:

Code:
^!F5::
DetectHiddenWindows, On
SetTitleMatchMode, 2
IfWinNotExist, ahk_class #32770
{
   return
}
WinActivate, ahk_class #32770
Send, {LButton 2}
return


Apparently the window is found if I add a MsgBox before the WinActivate but the keepass window is not restore with the double left click on the mouse left button.

Did I miss something ?

Regards.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 13th, 2008, 10:57 pm 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
Consider this example:
Code:
^!F5::
{
    DetectHiddenWindows, On
    SetTitleMatchMode, 2
    WinActivate, KeePass
}
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2008, 5:32 am 
Offline

Joined: March 21st, 2007, 1:55 pm
Posts: 11
Location: Lyon (France)
It's not working here :(.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2008, 6:54 am 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
It appears that KeePass can do this natively. Check this link out: http://keepass.info/help/base/integration.html


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2008, 8:19 am 
Offline

Joined: March 21st, 2007, 1:55 pm
Posts: 11
Location: Lyon (France)
Yes ! Thanks for the tip. But I would be happy to find why my script is not working in that case ... Perharps it's because it's a QT application ?

Anyway thank you, it save my geek life ;).


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], iBob35555VR, just me, Tilter_of_Windmills, tomoe_uehara and 70 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