Skip to content

Instantly share code, notes, and snippets.

@Tho85
Created May 20, 2011 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tho85/982567 to your computer and use it in GitHub Desktop.
Save Tho85/982567 to your computer and use it in GitHub Desktop.
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