Hey!
I was completly suprised that the IDE included a
complete scripting language after using it more than two years. :lol:
I was wondering how I could execute a script when the Code::Blocks IDE
quits? Executing script on startup is clear as it's documented on manuals.
I'm planing to use
ImDisk to mount RAM Disk when the IDE starts. But as i said, I need to backup the disk contents and unmount the volume when the IDE quits.
I'm not asking how to use the ImDisk tool, but rather help for writing plugin script for the IDE to use the tool. C++ goes okay but squirrel doesn't.
Editor commands...Scriptplugin template:
class RAMDiskMount extends cbScriptPlugin
{
// mandatory to setup the plugin's info
constructor()
{
info.name = _T("Mount RAM DISK");
info.title = _T("Mount RAM DISK");
::Log(_T("Mounted 512MiB RAM DISK"));
}
// how do I run something on "unregisterplugin"?
}
// this call actually registers the script plugin with Code::Blocks
RegisterPlugin(RAMDiskMount());
Btw. compiling using ramdisk is ridiculously fast. :wink:
PS: sorry for typos, I'm not perfect on english.
-Registeration Captcha is funny. : D