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 

Hamachi and WinMinimize

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rtmey2000



Joined: 14 May 2007
Posts: 6

PostPosted: Wed Feb 25, 2009 3:42 pm    Post subject: Hamachi and WinMinimize Reply with quote

This is probably a really easy question

I am trying to minimize the Hamachi window after the computer restarts. My goal is clear the desktop of all of the startup apps.

I have tried both WinMinimize, and WinHide without success. I also tried the postmessage action as described on the WinMinimize documentation. Finally I have tried to select the application and MouseClick on the minimize button without success.

Any advice or suggestions would be greatly appreciated. Thanks
Back to top
View user's profile Send private message
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Wed Feb 25, 2009 6:39 pm    Post subject: Reply with quote

This worked for me.

Code:
; Miniimize for Hamachi 1.0.3.0-en.exe

f1::

WinWait, Hamachi,
IfWinNotActive, Hamachi, , WinActivate, Hamachi,
WinWaitActive, Hamachi,
WinMinimize, Hamachi,

return

F2::reload

esc::exitapp


You may want to add a settitlematchmode 3.

Also if the problem is that its not doing this at startup, consider adding some kind of padding to allow for windows to full boot up. I would do a process search for all commen processes 1st.
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
rtmey2000



Joined: 14 May 2007
Posts: 6

PostPosted: Thu Feb 26, 2009 3:23 pm    Post subject: Reply with quote

Thanks. It appears to be SetTittleMatchMode was the issue. I had used 2 (partial match). It would not function with it as two, but worked well with SetTittleMatchMode set as 3 (exact match).

Grateful for your help TheLaughingMan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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