@onidarbe said:
Seems I need to use Win32API.
most probably... for the Notepad++ side of things.
I understand more what your doing now...
I have a similar setup that uses 'Applescript' and 'Unix' to let me work in 'dev-mode', I struggled to get it to work for many versions.
I'm very happy with it now, and it is possibly portable, if you want to have a look I'll PM you a copy...
It now functions on a very simple premies.
Let SU do the SU bits and only do what it can't with other tools...
when you use Sketchup.plugins_disabled = true => 'only' the standard Sketchup.find_support_file("Plugins") are disabled.
'Ruby Console' can be opened from any other other loaded path.
I have two different 'loader files'
One is in "../Plugins/My_Folder/my_file", it has a cmd that toggles Sketchup.plugins_disabled = true : Sketchup.plugins_disabled = false
Then, I use the "Tools" folder to hold a small ruby that basically... [sudo code]
my_file = ( Sketchup.find_support_file("my_file.rb", "Tools") ).sub( "Tools", "Plugins")
if Sketchup.plugins_disabled? && FileTest.readable?( my_file )
"Sketchup.send_action 'showRubyPanel;'"
load(my_file)
else
ignore_me
end
john