ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

help recompiling notepad++ plugin

<< < (2/3) > >>

blackcat:
it suppose to save the plugin settings to ini file when you quit notepad++ but it doesnt, at least for me. So everytime i run notepad++ it will load default option for that plugin..  :down:



p.s: hope i'll get a recompiled dll in post #6  :-[

ChalkTrauma:
That is really strange because globally it defaults to false:

#77

--- Code: C++ ---bool bEnableAutoCopySelection = false;  // Use auto copy selected text?
Try putting the attached MultiClipboard.ini in the plugins/Config/ directory where notepad++ is installed and see if that allows you to change the setting, that way you can stay in sync with the releases and not need a recompile when you upgrade, if it doesn't work I'll post the compiled plugin with your changes..

blackcat:
sorry doesnt work either even after putting the ini in plugin config folder. :o when i open notepad++, i see all the 3 options in multiclipboard are still checked..i couldn't figure out what could posibly be the culprit..it seems the plugin ignore the config file.

im using notepad++ 4.7.5 btw. that plugin is really useful but having option 'autocopy selected text' left enabled is annoying because when you do text searches, it will copy found texts that the program highlight

ChalkTrauma:
Strange.. I am running 4.7.5 also.. I'll make the change and upload it here..

ChalkTrauma:
Ok.. looking at the source, wouldn't it make more sense to change the boolean variable, just changing the check won't change functionality, it probably would make more sense to change this line:

#299

--- Code: C++ ---bEnableAutoCopySelection = (::GetPrivateProfileInt(PLUGIN_NAME, AUTO_COPY_SELECTION, (UINT)bEnableAutoCopySelection, iniFilePath) == 1);
to


--- Code: C++ ---bEnableAutoCopySelection= (::GetPrivateProfileInt(PLUGIN_NAME, AUTO_COPY_SELECTION, 0, iniFilePath) == 1);
If that does not work, then I would assume the value is being read in from some ini file because internally it is false and the check should follow the boolean.

of course we could just force it's hand to:


--- Code: C++ ---bEnableAutoCopySelection= 0;
Only thing is I hate plugging a problem like this where something odd is going on that could crop up in other places.. what do you think?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version