mIRC Homepage
Posted By: bog__ Problems with { and } - 09/01/05 07:47 PM
Code:
    //write -i Login.htm <head> 
    //write -i Login.htm <script> 
    //write -i Login.htm function send()[color:red]{ [/color] 
    //write -i Login.htm document.forms['Form'].submit(); 
    //write -i Login.htm [color:red]} [/color] 
    //write -i Login.htm </script> 
    //write -i Login.htm </head> 
    //write -i Login.htm <body onload="send();"> 
    //write -i Login.htm </body>
 


So i need to write to the htm file }{ this singes, but mine problem is that mirc recognize this commands and he isnt adding this singes to the htm file. is theare some way to solve this?
Posted By: Danthemandoo Re: Problems with { and } - 09/01/05 07:50 PM
replace { with $chr(123) and } with $chr(125)
Posted By: Iori Re: Problems with { and } - 09/01/05 07:50 PM
You can use $() -it's the same as $eval()

  • write -i Login.htm function send() $({,0)
Posted By: tidy_trax Re: Problems with { and } - 09/01/05 07:51 PM
Code:
  write -i Login.htm <script> 
  write -i Login.htm function send() [color:red]$([/color]{[color:red],)[/color] 
  write -i Login.htm document.forms['Form'].submit(); 
  write -i Login.htm [color:red]$([/color]}[color:red],)[/color]
  write -i Login.htm </script> 
  write -i Login.htm </head> 
  write -i Login.htm <body onload="send();"> 
  write -i Login.htm </body>
Posted By: bog__ Re: Problems with { and } - 09/01/05 07:54 PM
Never minde

insted of this
//write -i Login.htm function send(){
//write -i Login.htm document.forms['Form'].submit();
//write -i Login.htm }

i used one line

//write -i Login.htm function send(){document.forms['Form'].submit();}

but im still interested, is there a way for this to be add }{ to the txt or htm document
Posted By: tidy_trax Re: Problems with { and } - 09/01/05 07:55 PM
There have been two methods of doing what you want posted.
Posted By: bog__ Re: Problems with { and } - 09/01/05 07:55 PM
sh** you are fast thanks grin
© mIRC Discussion Forums