~
    c3.jpg (2872 bytes)    Applications for various Applications....

Free SubDomains    

    ~     Main    -    Apps    -    Toolbox    -    Code    -    Downloads    -    Forum     ~
spcr.jpg (643 bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 


cmdret.jpg (466 bytes)CMDret - A small utility designed to retrieve output from console for use with GUI apps.

 Download (Sample AutoHotkey script included)


CMDret AHK Usage:

RunWait, CMDret.exe "AHK Window Title" "p=myfile.exe" "optional - arguments",, Hide

"AHK Window Title"
- Window Title of the AHK app that is to receive the console text

"p=myfile.exe"
- p= is required for AHK apps at this time. Replace
myfile.exe with the path/filename to be run.


"optional - arguments"
- Optional Arguments (file to open, switches, etc...)

Notes:
- The file path for p= will be converted to 8.3 format before executing
- A path/filename is not required after p= but path/filename(s) in "optional arguments" are not converted to 8.3 format.
- Single quotes may be used for paths that contain spaces in "optional - arguments"
- An Edit Control with CMD as text is currently a requirement when using this method but does not need to be visible



Generic Usage:

CMDret.exe "Window Title" "Edit Title" "Edit Class" "Window Class" "CMD to execute" "Optional - arguments"

Window Title -> Window title of app to receive text
Edit Title -> Title of control to receive text
Edit Class -> ClassName of control to receive text
Window Class -> ClassName of window
CMD to execute -> Path/Name of the file to run (will be converted to 8.3 format)
Arguments -> Optional arguments

Notes:
- Edit Title should NOT begin with p= (or P=)
- Single quotes may be used for paths that contain spaces in "Aguments"
- This syntax may be used for non-AHK apps or to send console text to a different app and/or control


.

BP - Programmer's Haven    atv2000.jpg (5598 bytes)