AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[confused]Use RUN to execute JavaScript

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ttzm



Joined: 17 Feb 2008
Posts: 17
Location: CHINA

PostPosted: Tue Feb 26, 2008 1:57 pm    Post subject: [confused]Use RUN to execute JavaScript Reply with quote

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
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Tue Feb 26, 2008 8:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
boubou
Guest





PostPosted: Tue Feb 26, 2008 10:17 pm    Post subject: Reply with quote

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

PostPosted: Wed Feb 27, 2008 1:16 am    Post subject: Reply with quote

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. Confused

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
View user's profile Send private message
ttzm



Joined: 17 Feb 2008
Posts: 17
Location: CHINA

PostPosted: Wed Feb 27, 2008 6:46 am    Post subject: Reply with quote

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~! Smile
Back to top
View user's profile Send private message Visit poster's website
boubou
Guest





PostPosted: Wed Feb 27, 2008 9:17 pm    Post subject: Reply with quote

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

PostPosted: Thu Feb 28, 2008 4:57 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group