V
V
Vadim Pirx2016-02-04 12:13:15
HTML
Vadim Pirx, 2016-02-04 12:13:15

How to run notepad from html page and pass my string?

I wrote this code, it gives errors. what's wrong?

<html>
<SCRIPT LANGUAGE="VBScript">
  sub prog
        Set WshShell = CreateObject("WScript.Shell")
         WshShell.Run ("notepad", 1, True)
     WshShell.SendKeys "&i.value"
    End sub
</script>
<body>
<input type=text name=i value="">
<input type=submit name=submit onClick=prog>
<body>
</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Pirx, 2016-02-05
@pirxon

I'm already learning Autoit, a powerful thing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question