XE hotkeys and context menu

Discussion and questions - donor version.
Message
Author
User avatar
AEN007
Posts: 122
Joined: 05.09.2009, 16:52

Re: XE hotkeys and context menu

#16 Post by AEN007 » 06.01.2013, 20:20

FrCXE 6.01 introduced F&avorites - which nullifies Alt-A as a hotkey.
(I only/just noticed today that FrCXE 6.09 is available to us "let them eat cake" users ...)
Maybe FrCXE could allow setting/removing main menu hotkeys?

FrCXE 6.01 also changed the FrCXE "class" from TFcFormMain to
FreeCommanderXE.SingleInst.1
That meant I had to change 100+ instances of TFcFormMain to
FreeCommanderXE.SingleInst.1
in my AHK scripts ...
which thanks to NP++ is not that big of a deal
but I am wondering how the class name actually affects FrCXE functioning?
Changing the class name involves not a minor user adjustment ...

User avatar
BGM
Posts: 594
Joined: 14.10.2008, 23:42
Location: Kansas City, Missouri, USA
Contact:

Re: XE hotkeys and context menu

#17 Post by BGM » 07.01.2013, 03:04

In your ahk scripts, why don't you use a variable instead of a literal string for your FCXE class? Then you just set it one time. If you need to change it, you only change it in one place.

FCXE is still in BETA, which means the class name can be changed at the authour's whim, you know.
(Windows 10-1909 Professional 64bit)

User avatar
AEN007
Posts: 122
Joined: 05.09.2009, 16:52

Re: XE hotkeys and context menu

#18 Post by AEN007 » 07.01.2013, 09:35

7Januar2013
Because some AHK formatting/functionality does not work with variables

Code: Select all

IfWinExist, ahk_class %FrCXE%
has to stand alone
structure like»

Code: Select all

If WinActive("2xExplorer Z1", "Bar") or WinActive("FreeComm ahk_class FreeCommanderXE.SingleInst.1") or WinActive("Total Command ahk_class TTOTAL_CMD") or WinActive("xplorer² ahk_class ATL:ExplorerFrame")
cannot be variablized ...

I am wondering how the class name actually affects FrCXE functioning?

User avatar
BGM
Posts: 594
Joined: 14.10.2008, 23:42
Location: Kansas City, Missouri, USA
Contact:

Re: XE hotkeys and context menu

#19 Post by BGM » 07.01.2013, 15:49

Which ahk are you using? I don't know about the regular version, but at least in autohotkey_L, the only variable that has to be in a literal string (that I know of) is an #include.


Why won't this work?:
fcxeClass := "FreeComm ahk_class FreeCommanderXE.SingleInst.1"
2xEClass := "2xExplorer Z1"
tcClass := "Total Command ahk_class TTOTAL_CMD"
xypClass := "xplorer² ahk_class ATL:ExplorerFrame"

If WinActive(2xEClass, "Bar") or WinActive(fcxeClass) or WinActive(tcClass) or WinActive(xypClass)
(Windows 10-1909 Professional 64bit)

User avatar
AEN007
Posts: 122
Joined: 05.09.2009, 16:52

Re: XE hotkeys and context menu

#20 Post by AEN007 » 09.01.2013, 18:16

9Januar2013
I don't use AHK_L ...
have not had / don't have time to deal my/any AHK scripts that might not run properly under AHK_L ...

I've never (not yet) seen / come across anything like your example in the AHK docs ...
but I'll certainly check it out ... as soon as I have time ...

User avatar
BGM
Posts: 594
Joined: 14.10.2008, 23:42
Location: Kansas City, Missouri, USA
Contact:

Re: XE hotkeys and context menu

#21 Post by BGM » 09.01.2013, 18:21

Since AHK is a bit off-topic here, if you need any help, please PM (via this forum) me instead of reposting to the thread.
(Windows 10-1909 Professional 64bit)

User avatar
AEN007
Posts: 122
Joined: 05.09.2009, 16:52

Re: XE hotkeys and context menu

#22 Post by AEN007 » 02.02.2013, 16:32

2February2013
Greetings.
Today I started "messing around" with this issue.
There seems to be a problem with it (under AHK anyway - I don't know about AHK_L).
It seems that

Code: Select all

If WinExist(µToWTcl)
evaluates as true even if "µToWTcl" is undefined; i.e., = "" (null) ...

... so to use this under AHK would require making sure that like

Code: Select all

If WinExist(µToWTcl)
would never execute (while)/before µToWTcl is (un)/defined

Maybe someone could break these postings off to an appropriate forum/thead ...???

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests