[req] newbie ask for a script like "Quick Switch" in Listary

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
anyone
Posts: 10
Joined: 24 Feb 2014, 05:50

[req] newbie ask for a script like "Quick Switch" in Listary

04 Dec 2015, 06:42

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.
User avatar
Exaskryz
Posts: 2882
Joined: 17 Oct 2015, 20:28

Re: [req] newbie ask for a script like "Quick Switch" in Listary

04 Dec 2015, 09:01

I think it's like this:

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
Untested though. I took the first several lines from a script I already wrote, but I may have missed a necessary step.
anyone
Posts: 10
Joined: 24 Feb 2014, 05:50

Re: [req] newbie ask for a script like "Quick Switch" in Listary

05 Dec 2015, 04:28

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.
GEV
Posts: 1002
Joined: 25 Feb 2014, 00:50

Re: [req] newbie ask for a script like "Quick Switch" in Listary

05 Dec 2015, 07:24

Create a group of the windows the script should only work
using

Code: Select all

GroupAdd, GroupName, WinTitle[, WinText, Label, ExcludeTitle, ExcludeText]
or

Code: Select all

GroupAdd, GroupName, ahk_class WinClass[, WinText, Label,, ExcludeText]
or

Code: Select all

GroupAdd, GroupName, WinTitle ahk_class WinClass[, WinText, Label, ExcludeTitle, ExcludeText]
and

Code: Select all

IfWinActive, ahk_group GroupName
or

Code: Select all

#IfWinActive, ahk_group GroupName

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 119 guests