AutoHotkey Community

It is currently May 27th, 2012, 11:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: May 30th, 2010, 7:49 pm 
Offline

Joined: October 30th, 2009, 1:03 am
Posts: 26
Basically I want single instances of any unique window I have hotkeyed

Ive cobbled togeather many scripts to do two, is there a limit on ELSE or an order I need to put them in?

activate/FOCUS "X" if minimized
"else"
if FOCUSED to minimize "X"
"else"
not focused OR minimized to LAUNCH "X"

so many ways iive seen things like this done
win?title match
windows class matching
so, im hoping to find a simple/elegant EXAMPLES so that i can plug in any kind of EXE or windows explorer shortcut


Last edited by Dinguz on May 30th, 2010, 9:19 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 30th, 2010, 8:14 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
You can use "Else If condition" in the same line.
If you're getting confused, be sure to use proper identation and blocks.

A few command you may want to use:
- WinGet's MinMax
- WinRestore
- IfWin[Not]Active
- IfWin[Not]Exist
- Run

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


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], 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