Jump to content

how to "send" keys in DOS in hidden mod


sagar
 Share

Recommended Posts

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
Link to comment
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()..?
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...