topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 5:41 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Window Tags  (Read 16386 times)

Rover

  • Master of Smilies
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 632
    • View Profile
    • Donate to Member
Window Tags
« on: April 01, 2008, 12:25 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?
Insert Brilliant Sig line here

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Window Tags
« Reply #1 on: April 01, 2008, 02:48 PM »
kind of a cool idea.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Window Tags
« Reply #2 on: April 01, 2008, 05:58 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" :)
- carpe noctem

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #3 on: April 01, 2008, 07:20 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 :)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #4 on: April 01, 2008, 10:14 PM »
I think it's a good idea... If only it could work for duplicated windows of a same Word document....

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #5 on: April 01, 2008, 10:22 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.

Rover

  • Master of Smilies
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 632
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #6 on: April 03, 2008, 07: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.  :P
Insert Brilliant Sig line here

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: Window Tags
« Reply #7 on: April 03, 2008, 10:21 AM »
 :) 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

;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 PM by skrommel »

Rover

  • Master of Smilies
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 632
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #8 on: April 03, 2008, 12:40 PM »
 :Thmbsup: Cool.  Skrommel Strikes Again.  ;D

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!"
Insert Brilliant Sig line here

Rover

  • Master of Smilies
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 632
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #9 on: April 03, 2008, 12:49 PM »
For something less like what I want, I found this:
TaskSwitchXP - famous alt-tab manager

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:
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.   8)
Insert Brilliant Sig line here

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #10 on: April 14, 2008, 02:33 AM »
:) I don't remember either, but here's KeySwitch - Use hotkeys to switch windows!

Wow, you are good!

gussan

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 26
    • View Profile
    • Donate to Member
Re: Window Tags
« Reply #11 on: April 20, 2008, 07:25 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.