Page 2 of 2

Re: Rubygems

Posted: Wed Jan 11, 2012 10:13 pm
by DSP
Wrapping up into a FlowStone Project:

Code: Select all

require "Win32API"

def event i,v
   getForegroundWindow = Win32API.new('user32', 'GetForegroundWindow', 'V', 'L')
   window_handle = getForegroundWindow.Call()
   getWindowText = Win32API.new('user32', 'GetWindowText', 'LP', 'I')
   title_buffer = ' ' * 512
   getWindowText.Call(window_handle, title_buffer)
    output 0,title_buffer
end


As you say works without the buffer? Maybe it's a Ruby thing as you don't have to define the size of the variable?

Re: Rubygems

Posted: Thu Jan 12, 2012 1:14 pm
by sal
thank you,
i did already try do change the PATH and my mistake was about my ruby version compiled with minigw, with the mswin version i can use some gems and i'm having problems with some other gems(the ones i would use) such as the sqlite3 and the mysql ones.

For example trying to require sqlite3 from irb it works, but inside flowstone ruby module it doesn't.