@panga said:
Edit : Any tips on How to use that script ? is this a ruby script ?
Edit 2 : Put that script in a ruby file and it gives me the following errors...
It's an AutoHotKey script as it has to access rather obscure mouse button presses.
You can save it to a file with an AHK extension and then download AutoHotKey from http://www.autohotkey.com/download/ to execute it.
Alternatively, I have attached a zip file that contains the AHK file and a compiled EXE in case you prefer to just virus-check and run rather than use AHK. The icon to close it once running appears as a green "H" in your system tray.
Sadly I went to work today and tried it with my Logitech mouse to find it did not work, despite it working fine for my Microsoft and 3rd-part mice at home. It seems that AHK sends an instant button-up after the button-down event of logitech mice when using the browser buttons. Because of this I created a seperate AHK and EXE file to use only if the Microsoft one doesn't work for your mouse.
Regretably, because actually releasing the button doesn't generate an event for these mice, all I can do is get the forward/back button clicks to toggle between turning pan mode on and off in Sketchup. This isn't anywhere near as nice as the Microsoft mouse version (where holding either button and moving the mouse pans until you release it) but it's better than nothing.
I hope you manage to get it working for you - let me know if you have any more issues and I'll see what I can do.
AutoHotKey SketchUp Macros & Compiled EXEs