I guess 1 - press key; 0 - release key; 2 - press&release key.Raymond wrote:@Aezay
This function:
SendVKey(VKey: int; State: int);
From the examples I know the second parameter can be 0, 1, 2. What do they stand for?

Moderators: Hacker, petermad, Stefan2, white
I'm working in Win98se. Into a DOS window I try this but not work :Command Line Parameteres:
TCScript.exe %filename% Loads the file into the script editor.
TCScript.exe /run %filename% Will run the script file and then quit.
I could add the command FindWindow (you properly know that one). I'll also see what I can think of, for a PushButton function.VadiMGP wrote:Wow! Very powerful language! But what do you think about extending it's power by some special commands for dialog box handling?So it will be possible to write less harmful scripts like following
VadiMGP wrote:I guess 1 - press key; 0 - release key; 2 - press&release key.
Thanks VadiMGP for answering questions while I sleptVadiMGP wrote:You dont need to type percent signs. Just "Tcscript.exe MakeDir.tcs".
Try setting the command to D:\Totalcmd\tool\TC Script\TCScript.exe and the paramters to /run FindMusic.tcsRaymond wrote:Sometimes it works well, but sometimes only ScriptEdit main window pops up with no file loaded.
I didn't mean just finding a window. I especially wrote IfDialogPresent as statement instead of function because i thought about some kind of "window scope" or "window context", so PushButton function related to this window. Yes, it's possible to define PushButton with additional parameter (i.e. HWND) but in this case the language will be much more complicated for non-programmers.Aezay wrote:I could add the command FindWindow (you properly know that one). I'll also see what I can think of, for a PushButton function.