Rubygems

For general discussion related FlowStone
DSP
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Rubygems

Post 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?
Attachments
Ruby Get Window Title.fsm
Show the Title of a Selected Window
(466 Bytes) Downloaded 1280 times
sal
Posts: 42
Joined: Thu Aug 19, 2010 4:56 pm

Re: Rubygems

Post 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.
Attachments
sqlite3fail.jpg
sqlite3fail.jpg (34.5 KiB) Viewed 10195 times
sqlite3.jpg
sqlite3.jpg (17.63 KiB) Viewed 10195 times
Post Reply