Data entry pop up in custom command
Moderators: Hacker, petermad, Stefan2, white
Data entry pop up in custom command
Hi Everybody,
I use a lot of custom shortcuts in TC and recently I bumped into an issue:
I try to run a script from the toolbar which as parameter would get an ID (most probably the one number that's on my clipboard) typed in.
Apparently I don't find where could I do a data read window for these scripts.
Each ID is unique and only getting accessed once never again, also hundreds of those IDs are getting generated each week and I only need 3-5 and that's it, so hardcoding the IDs is not an option.
Current setup:
command -> C:\Python27\Phyton.exe session.py
parameter would be -> $readsessionnumberorreadclipboardbuticantmakeitwork
If you have any recommendations I could try please let me know.
Thanks a lot!
I use a lot of custom shortcuts in TC and recently I bumped into an issue:
I try to run a script from the toolbar which as parameter would get an ID (most probably the one number that's on my clipboard) typed in.
Apparently I don't find where could I do a data read window for these scripts.
Each ID is unique and only getting accessed once never again, also hundreds of those IDs are getting generated each week and I only need 3-5 and that's it, so hardcoding the IDs is not an option.
Current setup:
command -> C:\Python27\Phyton.exe session.py
parameter would be -> $readsessionnumberorreadclipboardbuticantmakeitwork
If you have any recommendations I could try please let me know.
Thanks a lot!
I think python should support reading data from clipboard so you could do it from it.
Or you can set parameter field to ? if you just want to get input dialog to paste ID manually.
Also you can try my AskParam tool.
Or you can set parameter field to ? if you just want to get input dialog to paste ID manually.
Also you can try my AskParam tool.
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Maybe using a vbscript (vbs) file?
http://www.instructables.com/id/How-to-Make-a-message-box-using-VBScript/
http://www.instructables.com/id/How-to-Make-a-message-box-using-VBScript/
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Simple batch?
Save as askparam.cmd
or askparam.vbs
Save as askparam.cmd
Code: Select all
@echo off
set /p param1="Please enter Parameter1: "
echo Running Session.py with %param1%
pause
C:\Python27\Phyton.exe session.py %param1%
Code: Select all
Dim Input
Input = InputBox("Enter parameter")
MsgBox ("You entered: " & Input)
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\Python27\Phyton.exe session.py " & Input
I think you overread MVVs post a bit too quick:hbguru wrote:thus an *.exe is not an option.
A built in command or a plugin is something I hope to locate.
Each button has a parameter field. Set this to "?".MVV wrote:Or you can set parameter field to ? if you just want to get input dialog to paste ID manually.
If you already have the ID on the clipboard, this would allow you to do Ctrl-V and the ID is there, then hit Enter.
Better then nothing with only TCs own functions.
Oh my god, how I love this piece of software!