xdojava 1.0.6.pre → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/xdojava.class +0 -0
  2. data/lib/xdojava.java +15 -9
  3. metadata +12 -15
data/lib/xdojava.class CHANGED
Binary file
data/lib/xdojava.java CHANGED
@@ -4,15 +4,11 @@
4
4
  // Requires Oracle Java SE 7u7
5
5
  // http://www.oracle.com/technetwork/java/javase/downloads/index.html
6
6
  //
7
- // Windows: Set default java as 1.7 in Control Panel | Java
8
- // Mac OSx: Set default java as 1.7 in Java Preferences
9
- // Linux: Set default java as 1.7 using $ update-alternatives --config java
10
- //
11
- // Compiling from ./java/src/ :
12
- // javac xdojava.java -d ../bin
7
+ // Compilation:
8
+ // javac xdojava.java
13
9
  //
14
10
  // Execution:
15
- // java -classpath <application root>/java/bin xdojava <options>
11
+ // java xdojava <options>
16
12
  //
17
13
  //******************************************************************************
18
14
 
@@ -70,8 +66,6 @@ public class xdojava
70
66
  public xdojava() throws AWTException
71
67
  {
72
68
  robot = new Robot();
73
- robot.setAutoDelay(40);
74
- robot.setAutoWaitForIdle(true);
75
69
  }
76
70
 
77
71
  private void ActivateWindow(String windowTitle)
@@ -116,6 +110,18 @@ public class xdojava
116
110
  robot.keyPress(tempByt);
117
111
  robot.keyRelease(tempByt);
118
112
  }
113
+ else if( tempByt == 46 )
114
+ {
115
+ robot.keyPress(KeyEvent.VK_PERIOD);
116
+ robot.keyRelease(KeyEvent.VK_PERIOD);
117
+ }
118
+ else if( tempByt == 64 )
119
+ {
120
+ robot.keyPress(KeyEvent.VK_SHIFT);
121
+ robot.keyPress(KeyEvent.VK_AT);
122
+ robot.keyRelease(KeyEvent.VK_AT);
123
+ robot.keyRelease(KeyEvent.VK_SHIFT);
124
+ }
119
125
  else if( tempByt >= 48 && tempByt <= 57 )
120
126
  {
121
127
  robot.keyPress(tempByt);
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdojava
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915980
5
- prerelease: 6
4
+ hash: 25
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 6
10
- - pre
11
- version: 1.0.6.pre
9
+ - 7
10
+ version: 1.0.7
12
11
  platform: ruby
13
12
  authors:
14
13
  - rgunter
@@ -16,11 +15,11 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2012-09-17 00:00:00 Z
18
+ date: 2012-09-20 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
- description:
23
- email:
21
+ description: basic cross-platform keystroke emulation ala xdo
22
+ email: roygunter@gmail.com
24
23
  executables: []
25
24
 
26
25
  extensions: []
@@ -31,7 +30,7 @@ files:
31
30
  - lib/xdojava.class
32
31
  - lib/xdojava.java
33
32
  - lib/xdojava.rb
34
- homepage:
33
+ homepage: ""
35
34
  licenses: []
36
35
 
37
36
  post_install_message:
@@ -51,14 +50,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
50
  required_rubygems_version: !ruby/object:Gem::Requirement
52
51
  none: false
53
52
  requirements:
54
- - - ">"
53
+ - - ">="
55
54
  - !ruby/object:Gem::Version
56
- hash: 25
55
+ hash: 3
57
56
  segments:
58
- - 1
59
- - 3
60
- - 1
61
- version: 1.3.1
57
+ - 0
58
+ version: "0"
62
59
  requirements: []
63
60
 
64
61
  rubyforge_project: