codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to write into the STDIN?  JohnLongHorn97 at 12:30 on Saturday, October 21, 2006
 

Hello everyone,

I would like to write a script that will read several ascii characters directly into the STDIN, so it will be like I pressed these values in my keyboard, in another window.

for exemple, I will insert the ascii value of "tab" into the STDIN, and the focus will be changed in another window (let's say control panel..).

I thought I could simply write into the STDIN, but I haven't made it.
Here what I tried to do:

open (STDIN);

# The function chr() is doing the action of an ASCII value.
print STDIN "chr(9)";
system("start control panel");
close(STDIN);

I will be happy to read a solution...

thanks!









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Extract first numeric string
•  Exporting reports to an excel using a template from ASP
•  Hiii!!!Problem with JTable Coloring
•  Re: Checking Multiple Forms on a Sngle Page
•  Address Book Problem
•  How to open files other then virtual folder..
•  please help incompatibility with IE 7
•  DIV Alignment When Text Size Is Changed
•  Why does my menu have specks?


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006