[WDX] Autorun Plugin: Run commands/set envvars on TC start
Moderators: Hacker, petermad, Stefan2, white
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
Unfortunately, none of these options work.
regards
dmocha
dmocha
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
Prefixed by "ShellExec"!
Code: Select all
ShellExec TASKKILL.EXE /IM program.exe /T /F
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
2dmocha, Gral, don't be lazy to use the help.
Overquoting is evil! 👎
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
Actually, I don't use Autorun plugin.
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
Do you think it makes sense to help without knowledge of the subject?

P. S.: For me, this is the №1 plugin!

Overquoting is evil! 👎
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
ShellExec method should works anyway, isn't it?
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
Believe me, before I posted a question here on the forum for the first time, I tried to use the information about ProcessTerminate, but all attempts to create a line failed, maybe I was doing something wrong.
I did it differently and it works. I am passing this on to other interested parties, not everyone can read the help file skillfully (unfortunately it didn't help me).
I did it differently and it works. I am passing this on to other interested parties, not everyone can read the help file skillfully (unfortunately it didn't help me).
Code: Select all
ShellExec /EV /SW_HIDE '%COMSPEC%' '/c taskkill /F /IM TotalMouseEX.exe'
regards
dmocha
dmocha
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
It's impractical to use a console utility, calling an extra process when it can be done by a function built into a child plugin.
Have you loaded the appropriate library for calling the function?
Code: Select all
LoadLibrary Plugins\Autorun_Process.dll
Pragma AutorunFinalizeSection
ProcessTerminate /A /W TotalMouseEX.exe
Overquoting is evil! 👎
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
You're right, I didn't load the library.Fla$her wrote: 2023-11-07, 00:50 UTC Have you loaded the appropriate library for calling the function?Code: Select all
LoadLibrary Plugins\Autorun_Process.dll Pragma AutorunFinalizeSection ProcessTerminate /A /W TotalMouseEX.exe
I corrected the cfg file, it works as it should, thanks
regards
dmocha
dmocha
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
Code: Select all
MsgBox "HI" "TEST"
LoadLibrary Plugins\Autorun_Sysinfo.dll
LoadLibrary %COMMANDER_PATH%\Plugins\WFX\VirtualPanel\VirtualPanel.wfx
SetEnv /A zzzz %SYSINFO_OSVERSION%
Autorun_Sysinfo.dll work
SetEnv work
VirtualPanel.wfx not work
Drag file over locked folder VirtualPanel locked not work before it is focused.
Why?
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
If you run 64bit TC, you have to load wfx64 version.Hurdet wrote: 2024-04-28, 08:44 UTC MsgBox "HI" "TEST" LoadLibrary Plugins\Autorun_Sysinfo.dll LoadLibrary %COMMANDER_PATH%\Plugins\WFX\VirtualPanel\VirtualPanel.wfx SetEnv /A zzzz %SYSINFO_OSVERSION%
what you can also do is to use a command that switch to locked virtual folder to activate it and go to previous folder after...
--- Edited
This kind of autorun.cfg could work for you:
Code: Select all
CommandExec /CD:S "\\\VirtualPanel"
SendCommand cm_GoToPreviousDir
Pragma AutorunFinalizeSection
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
If you run 64bit TC, you have to load wfx64 version.
For simplicity plugin using and using single config file in different TC versions, for 64-bit verions implicit loading used (similarly to TC plugins). For that 64-bit version of plugin should have «dll64» extension. In configuration «dll» extension using.
Example (on MoveButton): record in configuration «LoadLibrary Plugins\Autorun_MoveButton.dll». Under 32-bit version will be loaded Autorun_MoveButton.dll, under 64-bit version — Autorun_MoveButton.dll64.
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
You've misinterpreted the reference material. LoadLibrary refers exclusively to child plugins or libraries for which the programming part described on the Appendix > For developers page is implemented. No other TC plugins or libraries can be loaded in this way.
Last edited by Fla$her on 2024-04-29, 08:25 UTC, edited 1 time in total.
Overquoting is evil! 👎
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
I suspected this thanks for the confirmation
Re: [WDX] Autorun Plugin: Run commands/set envvars on TC start
2Hurdet
Although the wfx plugin folder can be renamed in the settings as you like.
Pragma AutorunFinalizeSection is added only to avoid accidentally inserting suggested commands after it, i.e. the directive itself is optional.
There is a space by default.CommandExec /CD:S "\\\Virtual_Panel"
Code: Select all
CommandExec /CD:S '\\\Virtual Panel'
Pragma AutorunFinalizeSection is added only to avoid accidentally inserting suggested commands after it, i.e. the directive itself is optional.
Overquoting is evil! 👎