mIRC Home    About    Download    Register    News    Help

Topic Options
#107394 - 09/01/05 07:47 PM Problems with { and }
bog__ Offline
Ameglian cow

Registered: 02/12/04
Posts: 40
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?


Edited by bog__ (09/01/05 07:47 PM)

Top
#107395 - 09/01/05 07:50 PM Re: Problems with { and }
Danthemandoo Offline
Fjord artisan

Registered: 04/03/04
Posts: 457
Loc: Behind you
replace { with $chr(123) and } with $chr(125)

Top
#107396 - 09/01/05 07:50 PM Re: Problems with { and }
Iori Offline
Hoopy frood

Registered: 30/08/03
Posts: 1831
You can use $() -it's the same as $eval()

  • write -i Login.htm function send() $({,0)

Top
#107397 - 09/01/05 07:51 PM Re: Problems with { and }
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
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>
_________________________
New username: hixxy

Top
#107398 - 09/01/05 07:54 PM Re: Problems with { and }
bog__ Offline
Ameglian cow

Registered: 02/12/04
Posts: 40
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

Top
#107399 - 09/01/05 07:55 PM Re: Problems with { and }
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
There have been two methods of doing what you want posted.
_________________________
New username: hixxy

Top
#107400 - 09/01/05 07:55 PM Re: Problems with { and }
bog__ Offline
Ameglian cow

Registered: 02/12/04
Posts: 40
sh** you are fast thanks grin

Top