mIRC Home    About    Download    Register    News    Help

Print Thread
#136468 28/11/05 12:02 PM
Joined: May 2005
Posts: 5
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: May 2005
Posts: 5
Is it possible to call a Windows API function from within mIRC?

#136469 28/11/05 12:16 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
with the help of a mIRC DLL yes.

mIRC calls DLL calls API function with any params you want from the mIRC -> DLL interface

you will have to do some string conversion from your mIRC data that you send to the DLL which is all in one string and your API call inside the DLL.

for help on creating DLLs in mIRC, you can look at various scripting sites, they all have a tutorial lying in somewhere.

#136470 28/11/05 12:25 PM
Joined: May 2005
Posts: 5
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: May 2005
Posts: 5
Yeah, I figured I could do it making my own DLL and calling that. I guess I was more curious if there was already something out there along the lines of Windows rundll.exe, basically a DLL for mIRC already made that could pass my request along and return the information. The function I want to call is GetFileVersionInfo().

#136471 28/11/05 12:35 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
If it's just this function you want, you may find this snippet useful.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#136472 28/11/05 12:40 PM
Joined: May 2005
Posts: 5
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: May 2005
Posts: 5
That seems to be exactly what I was looking for. Thank you, kind Sir.


Link Copied to Clipboard