Skip to content
GuarDDog v. 5

A Program Filed Added When Trying to Write

A TG007 community discussion started by comfortingsoul.

Discussion 4 posts
Page 1 of 1
Open
Topic #6378 · 4 published posts · 923 views

I added an OnStart.mrc which I believe is in other scripts which in mine creates an @Join, @Part, @Knocks and @Kicks windows. I added a write command to write the same info to a notepad and the code I used is as follows:

 

write c:\Program Files\GuarDDog5\gklog.txt Joined $fulldate $msn.decode($nick) $+ * $+ ! $+ * $+ $address

 

(the @part window would write to part.txt etc. etc and I have the notepads in the script directory)

 

I am not a scripter but I can do some little things and I apologize for my ignorance as this is probably an easy fix.

 

What is happening is it is writing to a file named programs which it puts in my c drive and creates problems when restarting. I get an error message when this file is there saying there is a file already named progams rename to programs1.

 

I don't know what is wrong and again I apologize for my stupidity

 

Can someone help me fingure this out. I did see a post about changing things to files but I am not sure that applies here or not.

 

It records to the window but not to the notepad I want it to

can you paste the whole code here so that i can see what it actually does.

can you paste the whole code here so that i can see what it actually does.

 

on *:START:{

window @Join

.titlebar @Join <<<< §òldìer >>>>

.echo @Join 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Join 1,1.

.echo @Join 1,1.8,8_4,4.8,8.1,8[=> Displays Nickname And GateKeeper Of Those Who Join Room <=]8,8.4,4.8,8_

.echo @Join 1,1.

.echo @Join 3[=> Displayed In Following Format: Date, Time, Nick & GateKeeper <=]

.echo @Join

window @Kicks

.titlebar @Kicks <<<< §òldìer >>>>

.echo @Kicks 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Kicks 1,1.

.echo @Kicks 1,1.8,8_4,4.8,8.1,8[=> Displays All Nicks And Gates Of Kickers and Kicked <=]8,8.4,4.8,8_

.echo @Kicks 1,1.

.echo @Kicks 7[=> Displayed In Following Format: Time, Date, Kicked Nick, Kicked By Nick, & GateKeeper <=]

.echo @Kicks

window @Part

.titlebar @Part <<<< §òldìer >>>>

.echo @Part 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Part 1,1.

.echo @Part 1,1.8,8_4,4.8,8.1,8[=> Displays Nickname And GateKeeper Of Those Who Depart Room <=]8,8_4,4.8,8.1,8

.echo @Part 1,1.

.echo @Part 7[=> Displayed In Following Format: Date, Time, Nick & GateKeeper <=]

.echo @Part

window @Knocks

.titlebar @Knocks <<<< §òldìer >>>>

.echo @Knocks 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Knocks 1,1.

.echo @Knocks 1,1.8,8_4,4.8,8.1,8[=> Displays Knocks Too Room <=]8,8_4,4.8,8.1,8

.echo @Knocks 1,1.

.echo @Knocks 8[=> Displayed In Following Format: Decoded(Nick), Unicode(Nick), GateKeeper <=]

.echo @Knocks

on *:JOIN:* {

window @Join

echo @Join 0,12Joined: ( $+ $fulldate $+ ) $msn.decode($nick) $+ 7 $+ ! $+ 15 $+ $address

;write c:\Program Files\GuarDDog5\gklog.txt Joined $fulldate $msn.decode($nick) $+ * $+ ! $+ * $+ $address

halt

}

on *:KICK:* {

window @Kicks

if ($me !isin $nick) {

echo @Kicks 4[15 $time 4] 4[15 $msn.ifdecode $knick $address($knick,1) 4]

echo @Kicks 1,1[ $time ]4 4[15 Kicked On $fulldate 4]

echo @Kicks 1,1[ $time ]4 4[15 By $msn.ifdecode $nick $address($nick,1) 4]

;write c:\Program Files\GuarDDog5\kick.txt $fulldate $msn.ifdecode $knick $address($knick,1) Kicked By $msn.ifdecode $nick $address($nick,1)

return

}

elseif ($me isin $nick) {

}

echo @Kicks 15[15 $time 15] 15[4 You Kicked 15]

echo @Kicks 1,1[ $time ]4 15[4 $msn.ifdecode $knick $address($knick,1) 15]

echo @Kicks 1,1[ $time ]4 15[4 $+ $fulldate $+ 15]

;write c:\Program Files\GuarDDog5\kick.txt $fulldate You Kicked $msn.ifdecode $knick $address($knick,1)

halt

}

 

Here is the whole code up to the writing of the onjoin and kicks logging to the notepad. The "parts" and "knocks" r the same thing for the write command so i didnt include those to keep it

short. The write commands are iggied right now since they are not working right because this file called Programs that it created was messing up my email A\V protection. My GD5 Folder is in my program files folder in my c drive and it has all the latest updates. Someone suggested using $scriptdir\gklog.txt which i did try but that didn't work. It's almost like it is not reading "Program Files" as a folder but creating a file named Programs and logging the info there.

on *:START:{

window @Join

.titlebar @Join <<<< §òldìer >>>>

.echo @Join 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Join 1,1.

.echo @Join 1,1.8,8_4,4.8,8.1,8[=> Displays Nickname And GateKeeper Of Those Who Join Room <=]8,8.4,4.8,8_

.echo @Join 1,1.

.echo @Join 3[=> Displayed In Following Format: Date, Time, Nick & GateKeeper <=]

.echo @Join

window @Kicks

.titlebar @Kicks <<<< §òldìer >>>>

.echo @Kicks 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Kicks 1,1.

.echo @Kicks 1,1.8,8_4,4.8,8.1,8[=> Displays All Nicks And Gates Of Kickers and Kicked <=]8,8.4,4.8,8_

.echo @Kicks 1,1.

.echo @Kicks 7[=> Displayed In Following Format: Time, Date, Kicked Nick, Kicked By Nick, & GateKeeper <=]

.echo @Kicks

window @Part

.titlebar @Part <<<< §òldìer >>>>

.echo @Part 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Part 1,1.

.echo @Part 1,1.8,8_4,4.8,8.1,8[=> Displays Nickname And GateKeeper Of Those Who Depart Room <=]8,8_4,4.8,8.1,8

.echo @Part 1,1.

.echo @Part 7[=> Displayed In Following Format: Date, Time, Nick & GateKeeper <=]

.echo @Part

window @Knocks

.titlebar @Knocks <<<< §òldìer >>>>

.echo @Knocks 1,1.4,4_8,8.4,4____.0,4<<<< §òldìer >>>>4,4____.8,8.4,4_

.echo @Knocks 1,1.

.echo @Knocks 1,1.8,8_4,4.8,8.1,8[=> Displays Knocks Too Room <=]8,8_4,4.8,8.1,8

.echo @Knocks 1,1.

.echo @Knocks 8[=> Displayed In Following Format: Decoded(Nick), Unicode(Nick), GateKeeper <=]

.echo @Knocks

on *:JOIN:* {

window @Join

echo @Join 0,12Joined: ( $+ $fulldate $+ ) $msn.decode($nick) $+ 7 $+ ! $+ 15 $+ $address

;write c:\Program Files\GuarDDog5\gklog.txt Joined $fulldate $msn.decode($nick) $+ * $+ ! $+ * $+ $address

halt

}

on *:KICK:* {

window @Kicks

if ($me !isin $nick) {

echo @Kicks 4[15 $time 4] 4[15 $msn.ifdecode $knick $address($knick,1) 4]

echo @Kicks 1,1[ $time ]4 4[15 Kicked On $fulldate 4]

echo @Kicks 1,1[ $time ]4 4[15 By $msn.ifdecode $nick $address($nick,1) 4]

;write c:\Program Files\GuarDDog5\kick.txt $fulldate $msn.ifdecode $knick $address($knick,1) Kicked By $msn.ifdecode $nick $address($nick,1)

return

}

elseif ($me isin $nick) {

}

echo @Kicks 15[15 $time 15] 15[4 You Kicked 15]

echo @Kicks 1,1[ $time ]4 15[4 $msn.ifdecode $knick $address($knick,1) 15]

echo @Kicks 1,1[ $time ]4 15[4 $+ $fulldate $+ 15]

;write c:\Program Files\GuarDDog5\kick.txt $fulldate You Kicked $msn.ifdecode $knick $address($knick,1)

halt

}

 

Here is the whole code up to the writing of the onjoin and kicks logging to the notepad. The "parts" and "knocks" r the same thing for the write command so i didnt include those to keep it

short. The write commands are iggied right now since they are not working right because this file called Programs that it created was messing up my email A\V protection. My GD5 Folder is in my program files folder in my c drive and it has all the latest updates. Someone suggested using $scriptdir\gklog.txt which i did try but that didn't work. It's almost like it is not reading "Program Files" as a folder but creating a file named Programs and logging the info there.

 

 

WOOOOOHOOOOOOOO never mind I got it working I am all set and thank you to those who sent messages trying to help I appreciate it