$scriptdir or $mircdir or move all files in the path ... \AppData\Roaming\mIRC that are created during the 'mIRC installation? That is the question!
I have a problem during the 'execution of my script, and I noticed from the posts of the forum on the network that there are many who have this problem.
If the script is loaded into a mirc folder that contains all the files including mirc.ini and works well.
If you own the original location of installation of mIRC has the problem of the location of the file is created twice as a duplicate of the folder that the script in
C:\ProgramFiles(x86)\mIRC is replicated in \AppData\Roaming\mIRC\myscript
Problem is with the operation of dcx.dll and path of the file .Ico and .Cur
As regards the dcx.dll:
If loaded in C:\ProgramFiles(x86)\mIRC returns the 'error on the wrong path.
Like other dlls, if done in \AppData\Roaming\mIRC\ myscript is loaded correctly (the 'alias that calls the dll uses $scriptdir as an identifier of the route)
With regard to the location of icons and cursors, if present in the path C:\ProgramFiles(x86)\mIRC\theme\ico load correctly.
If you load from the path ... \AppData\Roaming\mIRC does not work because the directory requires various privileges and other reasons known ...
Basically I need to run my script in a modified folder that contains all the files in a single folder that does not have the name ... \AppData\Roaming\ mIRC, where I can use both the 'identifier $scriptdir and even $mircdir.
How do I solve this problem in order to take advantage of my script plug-in for users who install mIRC from setup.exe?
Here the script that has the problem if installed in the original mIRC ---> mIRC GUI 8
http://www.hawkee.com/scripts/29301671/