PowerPro
PowerPro lets you take control of how you use Windows 95/98/NT/2000/XP. Run commands and configure your system any way you want. It also provides a powerful scripting interface. PowerPro support and new downloads is now managed by the https://groups.io/g/powerpro group discution and file repository.
How does it work?
In order to make use of the following scripts you have to
- install PowerPro;
- follow the steps described in the single recipes;
Plugins
In order to get a plugin working with PowerPro you have to
- download the plugin (a good source for plugins is the Plugin Archive on www.pcrei.com)
- follow the installing instructions provided by the plugin (mostly it is sufficient to copy the plugin DLL to the plugins subdir in the PowerPro installation directory and copy to plugin INI file to the PowerPro installation directory)
KeyTrap plugin
While PowerPro itself provides the full facilities for keytraps, there is also an plugin for this purpose. The KeyTrap plugin offers a few advantages compared to the native keytrap support of PowerPro (see the document why use keytrap.txt, which is part of the plugin). KeyTrap is part of the Plugin Archive.
Useful Scripts and Recipes
- PowerPro: Always copy / move in Queue
- Local Menu. Call button bar dependent on current path. More detail
- Duplicate File. Create up to 99 files with equal contents. More detail
- Add/change comments (descript.ion) for many files at once. More detail
- Load sequentially all Lister plugins to quick view a file. More detail
- Configuration Manager. Perform many operations with wincmd.ini and other configuration files: backup/restore configuration, allow "smart" saving of different configurations, load new instances of Total Commander with different settings, copy section from one file to another, etc. More detail
- Load predefined custom view with one click. More detail
- Three scripts with the same function: assign creation/modification date/time of one file to another. Single file: More detail; Many files (same names, target-to-source panels): More detail; General case - Save to/restore from file: More detail
- Perform typical search operations: find files according to saved search; find file with name from clipboard; find text from clipboard; find in archives; find file with specific size. More detail
- Save source panel tabs to the temporary file. Load them from file when necessary. More detail
- Move current tab to target panel irrespective of its lock state. More detail
- Close All Tabs in source panel irrespective of their lock state. More detail
- TabTools. Tab functions not provided by Total Commander: list all tabs in both panels with lock states, active tab indication in both panels, paths and/or captions; check path validity and close tabs pointing to invalid paths; automatically give comprehensive captions to tabs (4 modes); close source panel tabs duplicating target panel tabs; close any tab with one click (even if locked); highlight any tabs, close all tabs. More detail
- Load specific button bar. More detail
- Merge two existing button bars into one new bar. More detail
- Convert Total Commander button to Windows shortcut (.lnk) and vice versa. More detail
- Copy selected file names to clip with different options: path, name, extension in any combination. Replace backslash with any string. Add any string before/after each file name. More detail
- Move up/down in directory structure order. More detail
- Move files from subdirectories to parent directory (optionally with renaming). More detail
- Descrease excessive depth level. More detail
- Copy selected files to many targets. More detail
- Mark current tab with color. Screenshot More detail
SendCopyData to TC
You can get some informations from Total Commander GA, call user/internal commands EM, Change Direcory CD, interact with virtual panel VP. To get the information about this feature search about WM_COPYDATA or copydata in the forum each TC version is also updating history.txt the TC Change viewer tool helps to digg into it.
For GA querry, you have to create a command list "HookCopyData" and add a left call as .TC@onCopyData( Arg(1) , Arg(2) , Arg(3) ).
function _autoinit_
static TC_CD = 0x4443
static TC_EM = 0x4D45
static TC_VP = 0x5056
static TC_GA = 0x4147 ;; Get Info from TC in ASCII ;
static _tcp_lock=0
static _tcRep=""
static _tcHan=0
static _tcDw=0
static ppro = win.handle("n=\(pproprocessname)")
endFunction
function GA( what )
local TC_han = win.handle("c=TTOTAL_CMD")
_tcp_lock = 50
win.sendcopydata(TC_HAN,TC_GA, what ,ppro)
for ( _tcp_lock > 0 )
wait.for(50)
_tcp_lock = _tcp_lock -1
endfor
quit(_tcRep)
endfunction
;;;; Fuction is called by hookcopydata list with
;; .TC@onCopyData( Arg(1) , Arg(2) , Arg(3) )
;;; Arg(1) Normaly 'RA' 16722 (Receive ascii Mode)
;;; Arg(2) WParam normally Handle of TC
;;; Arg(3) Reponse String
Function onCopyData( repDWord,repWparam, repStr )
_tcHan = repWParam
_tcDW = repDWord
_tcRep = repStr
_tcp_lock = 0
EndFunction
Function CD(fold,where,dest)
local TC_han = win.handle("c=TTOTAL_CMD")
local tcString = fold ++ "\r"++dest++"\x02"
if ( where ) do
tcString ++= where
else
tcString ++= "S"
endif
TC_han.sendcopydata(TC_CD, tcString, 0, "\x02")
endfunction
Function EM(cmd)
local tcString=cmd
local TC_han = win.handle("c=TTOTAL_CMD")
TC_han.sendcopydata(TC_EM, tcString, 0)
endfunction
Function VP(cmd)
local tcString=cmd
local TC_han = win.handle("c=TTOTAL_CMD")
TC_han.sendcopydata(TC_VP, tcString, 0)
endfunction
function cm( number )
local TC_han = win.handle("c=TTOTAL_CMD")
win.sendmessage(TC_han,0x433,number,0)
endfunction
External links
Site providing collected plugins for Powerpro (powerpro.pcrei.com)
PowerPro Scripts for Total Commander (English)
PowerPro Scripts for Total Commander (English)
Back to Scripting utilities