lib/sikulinewrc/remote_screen.rb in sikulinewrc-0.0.5 vs lib/sikulinewrc/remote_screen.rb in sikulinewrc-0.0.6

- old
+ new

@@ -26,10 +26,14 @@ def click(psc, timeout = 30) execute_command(@serv, "click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) } end + def right_click(psc, timeout = 30) + execute_command(@serv, "right_click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) } + end + def find(psc) execute_command(@serv, 'find', :psc => psc) { |xml_dump| process_result(xml_dump, psc) } end def type_in_field(psc, content) @@ -42,9 +46,17 @@ def drag_drop(psc, xoffset, yoffset) execute_command(@serv, "drag_drop", :psc => psc, :xoffset => xoffset, :yoffset => yoffset) end + def send_alt_combkey(prskey) + execute_command(@serv, "send_alt_combkey", :prskey => prskey) + end + + def send_ctrl_combkey(prskey) + execute_command(@serv, "send_ctrl_combkey", :prskey => prskey) + end + private def raise_exception(exception_message, psc) if exception_message.include? "FindFailed: can not find" raise Sikulinewrc::ImageNotFound, "The image '#{psc}' does not exist."