| View previous topic :: View next topic |
| Author |
Message |
ttzm
Joined: 17 Feb 2008 Posts: 17 Location: CHINA
|
Posted: Tue Feb 26, 2008 1:57 pm Post subject: [confused]Use RUN to execute JavaScript |
|
|
| Code: | run,javascript:document.write("<form action=https://reg.163.com/logins.jsp?
url=http://murs.163.com/coremail/fcg/ntesdoor2?lightweight=1& method=post name=s><input type=hidden
name=username value=***><input type=hidden name=password value=***></form><script
language=javascript>document.s.submit()</script>") |
"***" in the Codes is my WebMail's Account, use "*" to replaced~!
It didn't work,get the following picture:
And i checked running events,picture below:
I think run commander didn't execute JavaScript to end, Just finished to "username val"... |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Tue Feb 26, 2008 8:31 pm Post subject: |
|
|
I would not expect to be able to run javascript using the run command. Do you have a reference AHK script that you are basing your code on? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
boubou Guest
|
Posted: Tue Feb 26, 2008 10:17 pm Post subject: |
|
|
I seen something in the forum I don't remember where.
Did you made a search ? |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2737 Location: Australia, Qld
|
Posted: Wed Feb 27, 2008 1:16 am Post subject: |
|
|
| Code: | | run,javascript:alert("foo") | If I run this on Vista, it does actually launch Internet Explorer, but gives a very strange error message. It's probably the same as what ttzm got:
| Quote: | Internet Explorer cannot download .
Unspecified error |
If I run it on XP, Internet Explorer launches and instantly closes, without doing anything.
Here's a workaround:
| Code: | FileDelete, ~script.html
FileAppend, <script>alert("foo")</script>, ~script.html
Run, ~script.html |
(Basically just use FileAppend instead of javascript:document.write().) |
|
| Back to top |
|
 |
ttzm
Joined: 17 Feb 2008 Posts: 17 Location: CHINA
|
Posted: Wed Feb 27, 2008 6:46 am Post subject: |
|
|
TO:engunneer
check the RUN commander in the HELP,there is "run,mailto:..."
TO:boubou
Sorry,there is too many,exceed 600...
so...
TO:lexiKos
At the First, I know this method. But a little complicated, hehe.
So I did above method ,I thought i could work out...so...
Anyway~! Thanks the same~!  |
|
| Back to top |
|
 |
boubou Guest
|
Posted: Wed Feb 27, 2008 9:17 pm Post subject: |
|
|
| May be you can find what you want here from the washboard message. |
|
| Back to top |
|
 |
ttzm
Joined: 17 Feb 2008 Posts: 17 Location: CHINA
|
Posted: Thu Feb 28, 2008 4:57 am Post subject: |
|
|
To:boubou
I was tired to work on this ...
The washboard's messages i didn't get .
Thanks very much~!
The JavaScript can use in the IE address bar.
But now i Will use the Temporary HTML file to run , Just Like lexiKos's IDEA~ |
|
| Back to top |
|
 |
|