mIRC Home    About    Download    Register    News    Help

Print Thread
Problems with { and } #107394 09/01/05 07:47 PM
Joined: Dec 2004
Posts: 40
B
bog__ Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Dec 2004
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?

Last edited by bog__; 09/01/05 07:47 PM.
Re: Problems with { and } #107395 09/01/05 07:50 PM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
replace { with $chr(123) and } with $chr(125)

Re: Problems with { and } #107396 09/01/05 07:50 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You can use $() -it's the same as $eval()

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

Re: Problems with { and } #107397 09/01/05 07:51 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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
Re: Problems with { and } #107398 09/01/05 07:54 PM
Joined: Dec 2004
Posts: 40
B
bog__ Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Dec 2004
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

Re: Problems with { and } #107399 09/01/05 07:55 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
There have been two methods of doing what you want posted.


New username: hixxy
Re: Problems with { and } #107400 09/01/05 07:55 PM
Joined: Dec 2004
Posts: 40
B
bog__ Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Dec 2004
Posts: 40
sh** you are fast thanks grin