mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
I noticed identifiers do not work in the on EXIT event in mIRC, I'm not sure if it's supposed to be like this.

on *:EXIT: {
; doesn't work. However, it works if I replace the scriptdir with the actual directory, e.g C:\Documents......

dll Test.dll Save $scriptdirTest.txt
}


//dll Test.dll Save $scriptdirTest.txt (this works from the command line - editbox)

Last edited by pouncer; 05/02/06 02:31 PM.
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Cannot reproduce here, $scriptdir works fine in "on EXIT". mIRC 6.16.


Saturn, QuakeNet staff
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Works fine, try this to see for yourself:
Code:
on *:exit: return $input(Script directory: $scriptdir,o)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
Hmm that works for me. so i think it must be the dll unloading on the exit event? but i have this in the dll..

Code:
	//********* LoadDll


	void WINAPI LoadDll(LOADINFO *li) { 
		li->mKeep = TRUE;
	} 

	
	//********* UnloadDll


	int WINAPI UnloadDll(int timeout) {
		if (!timeout) return 1;

		return 0;
	}


:S

or maybe the problem is that mIRC's dll command does not work on the EXIT event

Last edited by pouncer; 05/02/06 03:06 PM.

Link Copied to Clipboard