Welcome Guest.   Make a donation to an author on the site September 19, 2014, 04:55:56 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Window Tags  (Read 9137 times)
Rover
Master of Smilies
Charter Member
***
Posts: 628



see users location on a map View Profile Give some DonationCredits to this forum member
« on: April 01, 2008, 12:25:47 PM »

This is something I could use occasionally.  I have 10 windows open, but I need/want to switch back and forth between 2 or 3 of them a lot.
Say I'm testing a PHP script and I have the server in a putty session.  The php manual page in a browser window and I'm testing the script in another browser window.  I'd like to hit a hotkey to tag each of those windows with so I can switch to them quickly.  That way if I get an email or some other app changes focus, I don't have to fight to get by alt-tab order fixed again.

So Putty is my focused window, I type Ctrl-T, 1 and tag it.  Php Manual Browser is focus I hit Ctrl-T, 2.  Testing Browser Ctrl-T, 3.  So when I want to switch to putty, I just hit Ctrl-1.  Ctrl-3 to test again.  Ctrl-1 to look at my php.log.  Ctrl-2, back to the manual.

Ctrl-Shift-1, ctrl-alt-1 or whatever makes it easy to avoid other hot key combos.

Any takers?  Is this useful?
Logged

Insert Brilliant Sig line here
mouser
First Author
Administrator
*****
Posts: 33,361



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: April 01, 2008, 02:48:18 PM »

kind of a cool idea.
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: April 01, 2008, 05:58:07 PM »

Sounds like a useful idea - also, an ALT+TAB like thing just for the tagged apps would be useful. I think the "add tag" hotkey would have to be something a bit more obscure than ctrl+t though, since that's used by many apps for "open a new tab" smiley
Logged

- carpe noctem
justice
Supporting Member
**
Posts: 1,888



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: April 01, 2008, 07:20:31 PM »

whoever takes this up should have a good look at recent RTS video games such as sins of a solar empire and implement more interface productivity features smiley
Logged

Armando
Charter Member
***
Posts: 2,674



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: April 01, 2008, 10:14:16 PM »

I think it's a good idea... If only it could work for duplicated windows of a same Word document....
Logged

"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
lanux128
Global Moderator
*****
Posts: 6,089



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: April 01, 2008, 10:22:16 PM »

haven't Skrommel already do something like this? because AHK has a command called GroupAdd, where one can add programs/windows into "groups" then activate them individually within this group by assigning a hotkey to the GroupActivate command. anyway going to check up on Skrommel's page.
Logged

Rover
Master of Smilies
Charter Member
***
Posts: 628



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: April 03, 2008, 07:51:51 AM »

I looked @ the skrommel page and didn't see anything like this per se.  Of course there's so much stuff there, I could've missed it.  tongue
Logged

Insert Brilliant Sig line here
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: April 03, 2008, 10:21:36 AM »

 smiley I don't remember either, but here's KeySwitch - Use hotkeys to switch windows!

 1: Press Ctrl-T to start assigning a hotkey.
 2: Press Ctrl and 0 through 9 to assign that hotkey to the active window.
 3: To swith to a window, press the assigned hotkey.

To change modifiers and hotkeys, edit the modifier= and addkey= lines below.

Skrommel

[copy or print]
;KeySwitch.ahk
; Use hotkeys to switch windows.
;  1: Press Ctrl-T to start assigning a hotkey.
;  2: Press Ctrl and 0 through 9 to assign that hotkey to the active window.
;  3: To swith to a window, press the assigned hotkey.
; To change modifiers and hotkeys, edit the modifier= and addkey= lines below.
;Skrommel @ 2008


modifier=^  ;^=Ctrl !=Alt +=Shift #=Win
addkey=^T


#SingleInstance,Force
#NoEnv

StringReplace,modifiertext,modifier,^,Ctrl-
StringReplace,modifiertext,modifiertext,!,Alt-
StringReplace,modifiertext,modifiertext,+,Shift-
StringReplace,modifiertext,modifiertext,#,Win-
StringReplace,addkeytext,addkey,^,Ctrl-
StringReplace,addkeytext,addkeytext,!,Alt-
StringReplace,addkeytext,addkeytext,+,Shift-
StringReplace,addkeytext,addkeytext,#,Win-

Loop,10
{
  key:=A_Index-1
  Hotkey,%modifier%%key%,USE
}
Hotkey,%addkey%,ADD

TOOLTIP("Press " addkeytext "`n  to assign a hotkey to the active window`n`nwww.1HourSoftware.com",10)

add=0
Return


ADD:
If add=0
{
  add=1
  TOOLTIP("Press " modifiertext "  and 0 through 9`n to assign the hotkey to the active window",0)
}
Else
{
  add=0
  ToolTip,
}
Return


USE:
StringRight,key,A_ThisHotkey,1
If add=1
{
  WinGet,winid%key%,Id,A
  add=0
  WinGetTitle,title,A
  TOOLTIP(modifiertext . key " = " title)
}
Else
{
  winid:=winid%key%
  WinActivate,Ahk_Id %winid% 
}
Return


TOOLTIP(message,timeout=4)
{
  ToolTip,%message%
  If timeout<>0
    SetTimer,TOOLTIPOFF,% timeout*1000
  Return
}


TOOLTIPOFF:
SetTimer,TOOLTIPOFF,Off
ToolTip
Return
« Last Edit: April 03, 2008, 12:40:38 PM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Rover
Master of Smilies
Charter Member
***
Posts: 628



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: April 03, 2008, 12:40:50 PM »

 Thmbsup Cool.  Skrommel Strikes Again.  Grin

Keep this up and you'll be a verb:

Boss: "Dude, did you finish that program?"

Prgrmr: "Heck yeah,  I Skrommeled that thing 2 hours ago."

Boss: "Word!"
Logged

Insert Brilliant Sig line here
Rover
Master of Smilies
Charter Member
***
Posts: 628



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #9 on: April 03, 2008, 12:49:34 PM »

For something less like what I want, I found this:
TaskSwitchXP - famous alt-tab manager

Quote
TaskSwitchXP is an advanced task management utility that picks up where the standard Windows Alt+Tab switcher leaves off. It provides the same functionality, and adds visual styles to the dialog and also enhances it by displaying thumbnail preview of the application that will be switched to

An interesting feature:
Quote
Instances Switcher

TaskSwitchXP allows you quickly to switch between multitudinous tasks of one application (e.g. Internet Explorer, or Microsoft Word). In this mode, TaskSwitchXP automatically filters all instances of the currently foreground application.

I'm going to stick w/ the Skrommel solution as it is what I was looking for.   Cool
Logged

Insert Brilliant Sig line here
dbarton
Supporting Member
**
Posts: 51

View Profile Give some DonationCredits to this forum member
« Reply #10 on: April 14, 2008, 02:33:38 AM »

smiley I don't remember either, but here's KeySwitch - Use hotkeys to switch windows!

Wow, you are good!
Logged
gussan
Charter Member
***
Posts: 24

View Profile Give some DonationCredits to this forum member
« Reply #11 on: April 20, 2008, 07:25:32 PM »

This script is very useful for me, thanks Skrommel. But could it be possible for the script to remember what program or programs are assigned to a specific hot-key, maybe using an .ini file? That feature would make your script very very usefull for me. And maybe changing modifiers and hotkeys could be made from a grahical interface. If I see those changes I would be happy to donate you a few bucks.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.046s | Server load: 0.08 ]