Skip to content

Instantly share code, notes, and snippets.

@Tho85

Tho85/Gemfile

Created May 20, 2011
Embed
What would you like to do?
libvncclient-ruby-test
gem 'libvncclient-ruby', :require => 'libvnc', :git => 'git@github.com:zweitag/libvncclient-ruby.git'
require "bundler/setup"
require "libvnc"
client = LibVNC::Client.new
client.connect ":1", :password => '123456'
5.times do |i|
puts "Run #{i}"
client.screenshot "out#{i}.rgba"
GC.start
end
client.cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment