TC Script Editor: SendText( "c:\windows" );

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

TC Script Editor: SendText( "c:\windows" );

Post by *SanskritFritz »

This script does not do the trick I wanted to:

Code: Select all

SendCmd( cm_editpath );
SendText( "c:\windows" );
The ":" is not being sent. Can i only send alphanumeric text, the ":" character can only be sent with the SendVKey command?
The "\" opens the windows start menu!!
(careful, when testing the script, on my XP it did all kinds of weird things, like opening the windows start menu, and starting something from there!)
I switched to Linux, bye and thanks for all the fish!
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

SendText is kind of bugged, what it does is to send virtual keys, but as you're feeding it ASCII keys, it kind of goes wrong because they dont have the same index. I just need to put it through an ASCII -> Virtual Key converter. If I'm not mistaken, theres an API funtion for this, but i cant remeber its name.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Thanks for your help. So how would you solve the problem now? My goal is to switch to a folder without using Ctrl-D or similar.
I switched to Linux, bye and thanks for all the fish!
Post Reply