Class: FingerPoken::Target::VNC::VNCClient
- Inherits:
-
EventMachine::Connection
- Object
- EventMachine::Connection
- FingerPoken::Target::VNC::VNCClient
- Includes:
- EventMachine::Protocols::VNC::Client
- Defined in:
- lib/fingerpoken/vnc.rb
Overview
def keypress
Instance Method Summary collapse
-
#initialize(target) ⇒ VNCClient
constructor
A new instance of VNCClient.
- #ready ⇒ Object
Constructor Details
#initialize(target) ⇒ VNCClient
Returns a new instance of VNCClient.
129 130 131 |
# File 'lib/fingerpoken/vnc.rb', line 129 def initialize(target) @target = target end |
Instance Method Details
#ready ⇒ Object
133 134 135 136 137 138 139 140 |
# File 'lib/fingerpoken/vnc.rb', line 133 def ready @target.screen_x = @screen_width @target.screen_y = @screen_height @target. = 0 @target.x = (@screen_width / 2).to_i @target.y = (@screen_height / 2).to_i @target.ready() end |