Sign in to follow this  
Followers 0
sagar

how to "send" keys in DOS in hidden mod

4 posts in this topic

#1 ·  Posted (edited)

hi friends i need help again.

i need help in following command line.

Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)

actuly i want send key srokes in hidden mod in MSDOS.

is there any other way to send key in DOS hidden mon plz tell.

thank u in advance. :)

Edited by sagar

Share this post


Link to post
Share on other sites



hi friends i need help again.

i need help in following command line.

Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)

actuly i want send key srokes in hidden mod in MSDOS.

is there any other way to send key in DOS hidden mon plz tell.

thank u in advance. :)

Look in _RunDOS()..?

Share this post


Link to post
Share on other sites

please give full script ......i m new.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

please give full script ......i m new.

there are several ways to do that...., if you dont want the results e.g. you want to start a website you can use _RunDOS(). You can also use StdinWrite() and StdoutRead() to get the reasult.... there is also another way to do that using something like this:

Run(@ComSpec & " /c ipconfig > "& @tempdir &'\temp.txt', "", @SW_HIDE)
$rd = FileOpen(@tempdir &'\temp.txt', 0)
$rp = FileRead($rd)
msgbox(0, '', $rp)
FileClose($rd)
Exit

(look in the helpfile for examples)

Edited by Gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0