J. Foltz Ruby Toolbar and SU8 (not working ?)
-
Hi,
I don't know if anyone else encounter this error, but after installing Jim's Ruby Toolbar (an essential tool to me), I got this error:Error; #<TypeError; wrong argument type Win32API (expected Class)> C;/PROGRA~1/Google/GO24A4~1/Plugins/fr_rubytoolbar.rb;22;in `initialize' C;/PROGRA~1/Google/GO24A4~1/Plugins/fr_rubytoolbar.rb;22;in `new'
This happens when clicking on the left-most icon to open the Console window.
Win32API.so is in the Plugins folder as usual.
The "guilty" line seems to be this one: Win32API.new("user32.dll", "FindWindow", ['P','P'], 'N') in the self.findWindow method of the class.
The second icon (to clear the console window) doesn't work too. Other icons work as expected.Jim ? Happy new year BTW
-
You're running a French SU? Might be that it fails because it's searching for window title names in English - or something?
-
Yes I'm using a french version of SU.
Do you know what's the english name for the console window (I supposed "Ruby Console", then tried it but no luck).
Apparently "user32.dll" or "FindWindow" isn't a valid class anymore for the Win32API.new constructor.
Maybe Jim will help on this, since I'm not familiar with win32api stuff
The most annoying problem is that when the console gets full, it slows down SU so much that you have to exit SU and restart... -
@didier bur said:
Do you know what's the english name for the console window (I supposed "Ruby Console", then tried it but no luck).
Yes, that's the English name.
@didier bur said:
Apparently "user32.dll" or "FindWindow" isn't a valid class anymore for the Win32API.new constructor.
It works for me. "user32.dll" and "FindWindow" are just strings passed to Win32API.new so it can find the correct DLL function.
@didier bur said:
The most annoying problem is that when the console gets full, it slows down SU so much that you have to exit SU and restart...
Yes - I've been using a snippet similar to the one found in this plugin - extremely useful. I just type
cls
to cler the screen. Should have been built into SU.Your error reports 'fr_rubytoolbar.rb' - where did you get that version? Maybe something is different in the one I got. When I looked at Jim's plugin it seemed to have code for handling French. But it only contained "rubytoolbar.rb".
In the version I have thefindWindow
starts at line 29.It's an odd error you have gotten. I don't see why it would not work. At least not if we have the same version. I've never come across such error while working with Win32API.
-
I very rarely use the windows version of SU, but recall recent conflict between Win32API.so (in jim's folder) and win32api.so (in SketchyPhysics3)
can't remember the details or if it was a Mac using Parallels issue, but there was a conflict that affected RubyToolbars...
john
-
Didier: could it be a version conflict? http://forums.sketchucation.com/viewtopic.php?f=323&t=33955
Do you use the one that ships with Jim's plugin or a version you get elsewhere? -
My version of Win32api.so is 20547 bytes, and works with su 7.1, not with su8.
I've found a very old one that was working with su5 and 6, that is only 7168 bytes, and it works with su8 !
Attached below, just in case (must be tested with other plugins that requires it).@Thomthom: fr_rubytoolbar.rb is just a translation of the menus and tooltips, no changes made to the code itself.
See this thread to get the old version that's working for me on SU7 and 8:
http://forums.sketchucation.com/viewtopic.php?f=323&t=33955&p=298650#p298650
Advertisement