I am sure i am missing something here

Moderators: Hacker, petermad, Stefan2, white
Code: Select all
sendWM_COPYDATA('C'|('D'<<8),strcat(strcat(strcpy(t= malloc(strlen(argv[i+1])+strlen(argv[i+2])+2),argv[i+1]),"\r"),argv[i+2]),CharUpper(argv[i]+2));
Code: Select all
[User]
menu1=Load tabs
cmd1=opentabs
param1=C:\TOTALCMD\Tabs.tab
Code: Select all
PostMessage 1075, 701, , , ahk_class TTOTAL_CMD
Confirmed, you are right, even with double %.param1 doesn't work if %Commander_Path% is used.
Code: Select all
[User]
menu1=Load tabs
cmd1=OpenTabs %COMMANDER_PATH%\Tabs.tab
param1=<empty>
The only way to have %commander_path% interpreted with opentab is to use a user command :m^2 wrote:Thank you for the answer. Let me suggest it as a future upgrade.ghisler(Author) wrote:Sorry, currently these cannot be used from the outside except for the described em_xyz command method.
Code: Select all
[em_Lbar]
button=
cmd=OPENBAR
param=%A
Code: Select all
args barname
local bbThing = binary.from_ascii(?"em_lbar %commander_path%\bars"++barname++".bar")
local TC_CD = 0x4443
local TC_EM = 0x4D45
local TC_CM = 0x4D43
local TCHandle = win.handle("c=TTOTAL_CMD")
bbThing.sendcopydata( TCHandle,TC_EM))