Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
remove not working
Forums
Active Threads
Search
Who's Online
Help
Print Thread
remove not working
#
128028
19/08/05
11:23 PM
F
FromTheSun
FromTheSun
F
in a script i create a file, and then want to remove it when i close mirc using /remove
but
Code:
on:exit { /remove %filename }
doesnt work
when i type "//remove %filename" it's working perfectly
Is there any workaround?
Copy Link to Clipboard
Re: remove not working
#
128029
19/08/05
11:28 PM
Joined:
Dec 2002
Posts: 1,245
California, doooood
M
MikeChat
Hoopy frood
MikeChat
Hoopy frood
M
Joined:
Dec 2002
Posts: 1,245
California, doooood
the problem is the way you typed the event part, just a little fix
on:exit
{
/remove %filename
}
it should be
on *:exit:remove %filename
Copy Link to Clipboard
Re: remove not working
#
128030
19/08/05
11:32 PM
F
FromTheSun
FromTheSun
F
Code:
on *:EXIT: { unset %variable2 remove pic $+ %variable1 $+ .bmp }
That's what it is now, variable 2 gets removed, while the picture won't get deleted
Copy Link to Clipboard
Re: remove not working
#
128031
20/08/05
12:54 AM
Joined:
Dec 2002
Posts: 3,534
Kent, England
S
SladeKraven
Hoopy frood
SladeKraven
Hoopy frood
S
Joined:
Dec 2002
Posts: 3,534
Kent, England
Try doing the following:
//echo -a $isfile($+(pic,%variable1,.bmp)) if it returns $false the file doesn't exist.
//echo -a $var(%variable1) if it returns 0 the variable doesn't exist.
-Andy
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage