View Full Version : Lich and Rubygems
Renian
02-19-2008, 04:42 PM
Does anyone know if it is possible to use Rubygems with Lich? I want to use the win32-sound gem so that I don't have to force open Windows Media Player whenever I want it to play a sound.
I tried including an actual ruby script (.rb file) which includes the gem in it to play it from there, but that certainly didn't work.
Shaelun
02-24-2008, 11:37 PM
Any pure Ruby script can be run by Lich, but if the gem includes a compiled binary file (.dll or .so file), it probably won't be compatible.
Renian
02-25-2008, 02:37 AM
Hm. That's probably the problem then. I tried to have the lich script itself include the rubygem, but ended up having to use the SYSTEM command to open up a separate ruby script. It works--but it opens up a window to play the sound. That makes me sad.
Shaelun
02-25-2008, 09:23 PM
If you used the one-click Ruby installer, you have two executables: ruby.exe and rubyw.exe -- ruby.exe will open a console window, rubyw.exe will not. So if your command is
system("ruby someScript.rb")
or something, change it to "rubyw" instead.
Renian
02-25-2008, 10:18 PM
omg <3
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.