Page 2 of 2

Re: XE hotkeys and context menu

Posted: 06.01.2013, 20:20
by AEN007
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 ...

Re: XE hotkeys and context menu

Posted: 07.01.2013, 03:04
by BGM
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.

Re: XE hotkeys and context menu

Posted: 07.01.2013, 09:35
by AEN007
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?

Re: XE hotkeys and context menu

Posted: 07.01.2013, 15:49
by BGM
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)

Re: XE hotkeys and context menu

Posted: 09.01.2013, 18:16
by AEN007
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 ...

Re: XE hotkeys and context menu

Posted: 09.01.2013, 18:21
by BGM
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.

Re: XE hotkeys and context menu

Posted: 02.02.2013, 16:32
by AEN007
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 ...???