I would like to have a Autohotkey script can do the same thing as "quick switch" function in Listary.
details: http://www.listary.com/quick-switch
anyone can help? Thanks.
[req] newbie ask for a script like "Quick Switch" in Listary
Re: [req] newbie ask for a script like "Quick Switch" in Listary
I think it's like this:
Untested though. I took the first several lines from a script I already wrote, but I may have missed a necessary step.
Code: Select all
^g::
ControlGetText, TW, ToolbarWindow323, ahk_class CabinetWClass
address:=SubStr(TW,10)
initial_ad:=SubStr(address,2,2)
If (initial_ad != ":\") ; then Explorer lists it as one of the library directories such as Music or Pictures
address:="C:\Users\%A_UserName%\" . address
Send ^l
Sleep 50
SendInput %address%
return
Re: [req] newbie ask for a script like "Quick Switch" in Listary
Thanks, this works, but it works all the place when I press ^g, is there any way this can only works in "open" "save" "import" "export".... etc dialog?
I tried #ifwinactive, but won't work. seems the window class is a changing numbers.
I tried #ifwinactive, but won't work. seems the window class is a changing numbers.
Re: [req] newbie ask for a script like "Quick Switch" in Listary
Create a group of the windows the script should only work
using
or
or
and
or
using
Code: Select all
GroupAdd, GroupName, WinTitle[, WinText, Label, ExcludeTitle, ExcludeText]
Code: Select all
GroupAdd, GroupName, ahk_class WinClass[, WinText, Label,, ExcludeText]
Code: Select all
GroupAdd, GroupName, WinTitle ahk_class WinClass[, WinText, Label, ExcludeTitle, ExcludeText]
Code: Select all
IfWinActive, ahk_group GroupName
Code: Select all
#IfWinActive, ahk_group GroupName
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 119 guests