ChngVrbl plug-in: Difference between revisions
m (Adding new author and category links.) |
m (Removed from plug-in category) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 8: | Line 8: | ||
== Description == | == Description == | ||
'''Version:''' 16/Jul/2004. | |||
The change variable plugin was designed for changing variables outside of the script. It will change any variable listed in the header file although only some of them need to be changed using the DLL like $PLUGINSDIR. StrCpy is able to change most of the others without a problem. To read more about this plugin and why I made it go [http://forums.winamp.com/showthread.php?s=&threadid=179738&highlight=%24pluginsdir here]. | The change variable plugin was designed for changing variables outside of the script. It will change any variable listed in the header file although only some of them need to be changed using the DLL like $PLUGINSDIR. StrCpy is able to change most of the others without a problem. To read more about this plugin and why I made it go [http://forums.winamp.com/showthread.php?s=&threadid=179738&highlight=%24pluginsdir here]. | ||
Just be sure to use CallInstDLL on the change variable plugin before using any other plugins or you'll end up with some files going to a separate folder. | |||
== Example == | == Example == | ||
Line 15: | Line 19: | ||
File /oname=$0\chngvrbl.dll "${NSISDIR}\Plugins\chngvrbl.dll" | File /oname=$0\chngvrbl.dll "${NSISDIR}\Plugins\chngvrbl.dll" | ||
Push $0 | Push $0 | ||
Push 25 ; $ | Push 25 ; $TEMP | ||
CallInstDLL "$0\chngvrbl.dll" changeVariable | CallInstDLL "$0\chngvrbl.dll" changeVariable | ||
Delete "$0\chngvrbl.dll" | Delete "$0\chngvrbl.dll" | ||
Line 22: | Line 26: | ||
-scully13 | -scully13 | ||
[[Category: | [[Category:Deprecated]] |
Latest revision as of 17:50, 25 August 2021
Author: scully13 (talk, contrib) |
Links
Chngvrbl.zip (5 KB)
Chngvrbl.zip (5 KB) (Mirror #1)
The zip file contains the DLL, the VC++ 6.0 source code and an example NSIS script for using the DLL. The script has an example of using the DLL to change the $PLUGINSDIR variable.
Description
Version: 16/Jul/2004.
The change variable plugin was designed for changing variables outside of the script. It will change any variable listed in the header file although only some of them need to be changed using the DLL like $PLUGINSDIR. StrCpy is able to change most of the others without a problem. To read more about this plugin and why I made it go here.
Just be sure to use CallInstDLL on the change variable plugin before using any other plugins or you'll end up with some files going to a separate folder.
Example
SetOutPath $0 File /oname=$0\chngvrbl.dll "${NSISDIR}\Plugins\chngvrbl.dll" Push $0 Push 25 ; $TEMP CallInstDLL "$0\chngvrbl.dll" changeVariable Delete "$0\chngvrbl.dll"
-scully13