AutoHotkey Community

It is currently May 26th, 2012, 11:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ; in a script
PostPosted: November 17th, 2008, 10:49 pm 
quick question:


i want to send this in a script using control send

Code:
javascript:function getLinks(){top.w=window.open('','getlinks','width=350,height=250'+',menubar=0'+',toolbar=0'+',status=0'+',scrollbars=1'+',resizable=1');docRef=top.w.document.open("text/html","replace"); for(var i=0;i<document.links.length;i++){link=document.links[i]; top.w.document.writeln(i+'&nbsp;'+link.href+'<br>');}};getLinks();



the problem is, it wont send beacuse it has semicolons (;) in it, which, when used in a script, doesnt include the words after the semicolon.

is there anyway to make it so it ignors the semicolon and sends everything after the semicolon?


thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 10:51 pm 
Offline

Joined: March 21st, 2005, 6:37 pm
Posts: 117
Location: Bahia, Brasil
escape-it
Code:
`;

_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 10:54 pm 
so all i do is put a ` before each semicolon and it will work?



thanks! ill try it now. :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2008, 11:12 pm 
Offline

Joined: March 21st, 2005, 6:37 pm
Posts: 117
Location: Bahia, Brasil
you welcome,
You must escape also:


Code:
`(
`)
{{}
{}}
{+}

and maybe other. if "`" not work, use "{}"
Code:
cuduro = javascript:function getLinks`(`)`[top.w=window.open`(''`,'getlinks'`,'width=350`,height=250'+'`,menubar=0'+'`,toolbar=0'+'`,status=0'+'`,scrollbars=1'+'`,resizable=1'`)`;docRef=top.w.document.open`("text/html"`,"replace"`)`; for`(var i=0`;i<document.links.length`;i++`)`[link=document.links[i]`; top.w.document.writeln`(i+'&nbsp`;'+link.href+'<br>'`)`;{}}{}}`;getLinks`(`)`;

MsgBox %cuduro%

sendinput, %cuduro%

_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group