DonationCoder.com Software > Coding Snacks
Window Tags
lanux128:
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:
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
skrommel:
:) 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
Rover:
: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!"
Rover:
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
--- End quote ---
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.
--- End quote ---
I'm going to stick w/ the Skrommel solution as it is what I was looking for. 8)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version