One workaround would be to use ruby to start an iexplore process first.
class IEProcess
def self.start
startup_info = [68].pack('lx64')
process_info = [0, 0, 0, 0].pack('llll')
# TODO: make this portable
startup_command = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
result = Win32API.new('kernel32.dll', 'CreateProcess', 'pplllllppp',
'l').
call(
nil,
startup_command,
0, 0, 1, 0, 0, '.', startup_info, process_info)
# TODO print the error code, or better yet a text message
raise "Failed to start IEXPLORE." if result == 0
process_id = process_info.unpack('llll')[2]
puts "Process ID: #{process_id}"
self.new process_id
end
end
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general