Class: SageoneNaUtils::XdoJava
- Inherits:
-
Object
- Object
- SageoneNaUtils::XdoJava
- Defined in:
- lib/xdojava.rb
Constant Summary collapse
- @@classpath =
(Bundler.load.specs.find{|s| s.name == "xdojava" }).gem_dir.concat("/lib")
Class Method Summary collapse
- .tab ⇒ Object
- .tab_back ⇒ Object
-
.type_keys(type_this) ⇒ Object
Types a character sequence, but without any special chars.
Class Method Details
.tab ⇒ Object
13 14 15 16 |
# File 'lib/xdojava.rb', line 13 def self.tab command_line = 'java -classpath ' + @@classpath + ' xdojava {TAB}' system(command_line) end |
.tab_back ⇒ Object
18 19 20 21 |
# File 'lib/xdojava.rb', line 18 def self.tab_back command_line = 'java -classpath ' + @@classpath + ' xdojava {SHIFT_TAB}' system(command_line) end |
.type_keys(type_this) ⇒ Object
Types a character sequence, but without any special chars.
7 8 9 10 11 |
# File 'lib/xdojava.rb', line 7 def self.type_keys(type_this) command_line = 'java -classpath ' + @@classpath + ' xdojava ' + type_this system(command_line) sleep(0.5) end |