possible bug with com objects - 22/06/03 12:53 PM
i wanted to find the path to the desktop in XP
i managed to write this, using .com:
the only problem with it is that it crashes mirc (quits) every second time i use the alias. also, when i run it once and then try to go to the remotes (by clicking the remote button) it quits mirc. if i use alt+r, the remote window opens but when i close it, mirc quits.
all help would be appreciated. i am not sure if it's a scripting bug or a mirc bug. i will test in on another computer and see what happens.
update: i tested in a diffrent mIRC on the same computer, it didn't crash... i guess it's somekind of conflict but i am not sure why and where. guess this can be locked.
i managed to write this, using .com:
Code:
alias _findmydesk { var %fmd_name = $+(mydesk,$ticks) .comopen %fmd_name WScript.Shell if ($comerr == 1) { .comclose %fmd_name echo -a Closed, error found halt } var %fmd_get = $com(%fmd_name,SpecialFolders,3,bstr,Desktop) return $com(%fmd_name).result .comclose %fmd_name }
the only problem with it is that it crashes mirc (quits) every second time i use the alias. also, when i run it once and then try to go to the remotes (by clicking the remote button) it quits mirc. if i use alt+r, the remote window opens but when i close it, mirc quits.
all help would be appreciated. i am not sure if it's a scripting bug or a mirc bug. i will test in on another computer and see what happens.
update: i tested in a diffrent mIRC on the same computer, it didn't crash... i guess it's somekind of conflict but i am not sure why and where. guess this can be locked.