sikulinewrc 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OWFmY2U4Njk3MGI3MGViYzhhYjQ3MWRkZjlkYjVhZWM3MmJjNjdlMw==
5
- data.tar.gz: !binary |-
6
- NmE3NGJjZjk4OTIxMzMyNDQyMDk1Mjg5ZDVlZDkzYThmNWI4MGYzMw==
2
+ SHA1:
3
+ metadata.gz: c2094f40871fb9d3cd40d10f56bbbf3cc42e9120
4
+ data.tar.gz: 814deaf85cfceea8fac90a81c17ce33ccb8f8e9b
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzU0YmY5ZjQ2NDM4ZTI3MTJkNTVjNzlhNmZlNmZmNWMyZWNjMjFmZmFkMGY5
10
- N2RiMTQzZWZkMTJlMTBlYTJjYWEwZWUxZGUyNTVlN2U3NGQ1NWIzM2E3NDJk
11
- NWFlMWI4N2I2YTRmYzQ4NDM5YmFmMzljNjE4NWY2NjQzMmFlMGY=
12
- data.tar.gz: !binary |-
13
- NmIzOTA4Y2UyN2U3OGFhMGFmYzkwZDk0OTBkMWNjOGE3OTA3M2MwNGRjMjdi
14
- NzE2MzYzMDkzYTRmMTc4YmUyNjM5M2M2ZjkyY2I0MmUwYjBhODQ0Njg2N2Yx
15
- ZTI5OTA5ZWViMTJkZDQ5ZDZlZjhkMmFiNzk5ZDNkMTBhZTRjYzM=
6
+ metadata.gz: 1036cdfcb1ad4068b1c167f02bbe356ba1b43285b851d2dba9e91d877d9b79073317ca699a57a5c14ee5bbe0213801aa84353d5793fdf87ba82495a1b4876b55
7
+ data.tar.gz: 439fd691f8454ba4cdf382d210724a7bad2f42125346af596f7dc7641e06bc6ad8f1d40421b8fd27cad7c72820704bf23c25663941e97ef79d30e3aeb86f8aa8
data/README.md CHANGED
@@ -30,6 +30,9 @@ Or install it yourself as:
30
30
  rs.wait "D:\\field.png"
31
31
  rs.find "D:\\field.png"
32
32
  rs.set_min_similarity 0.9
33
+ rs.double_click "D:\\field.png"
34
+ rs.right_click "D:\\field.png"
35
+ rs.click_location(35, 101) # click an target fixed position on screen
33
36
 
34
37
  ## Contributing
35
38
 
@@ -0,0 +1,4 @@
1
+ from sikuli.Sikuli import Screen, Location
2
+ scr = Screen()
3
+ scr.wait(psc, int(timeout))
4
+ scr.click(Location(int(xoffset), int(yoffset)))
@@ -0,0 +1,4 @@
1
+ from sikuli.Sikuli import Screen
2
+ scr = Screen()
3
+ scr.wait(psc, int(timeout))
4
+ scr.doubleClick(psc)
@@ -0,0 +1,3 @@
1
+ from sikuli.Sikuli import Screen
2
+ scr = Screen()
3
+ scr.exists(psc, int(timeout))
@@ -28,6 +28,10 @@ module Sikulinewrc
28
28
  execute_command(@serv, "click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) }
29
29
  end
30
30
 
31
+ def double_click(psc, timeout = 30)
32
+ execute_command(@serv, "double_click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) }
33
+ end
34
+
31
35
  def right_click(psc, timeout = 30)
32
36
  execute_command(@serv, "right_click", :psc => psc, :timeout => timeout) { |xml_dump| process_result(xml_dump, psc) }
33
37
  end
@@ -48,6 +52,10 @@ module Sikulinewrc
48
52
  execute_command(@serv, "drag_drop", :psc => psc, :xoffset => xoffset, :yoffset => yoffset)
49
53
  end
50
54
 
55
+ def click_location(xoffset, yoffset)
56
+ execute_command(@serv, "click_location", :xoffset => xoffset, :yoffset => yoffset)
57
+ end
58
+
51
59
  def send_alt_combkey(prskey)
52
60
  execute_command(@serv, "send_alt_combkey", :prskey => prskey)
53
61
  end
@@ -55,6 +63,10 @@ module Sikulinewrc
55
63
  def send_ctrl_combkey(prskey)
56
64
  execute_command(@serv, "send_ctrl_combkey", :prskey => prskey)
57
65
  end
66
+
67
+ def exists(psc, timeout = 30)
68
+ execute_command(@serv, "exists", :psc => psc, :timeout => timeout)
69
+ end
58
70
 
59
71
  private
60
72
 
@@ -1,3 +1,3 @@
1
1
  module Sikulinewrc
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.description = %q{Allows you to call sikuli remote server.}
11
11
  gem.summary = %q{Ruby wrapped for sikuli remote server client api}
12
12
  gem.homepage = "http://github.com/powerkx/sikulinewrc"
13
- gem.licenses = ['POWERKX']
13
+
14
14
  gem.files = FileList['lib/**/*', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
15
15
  gem.name = "sikulinewrc"
16
16
  gem.require_paths = ["lib"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sikulinewrc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - powerkx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-01 00:00:00.000000000 Z
11
+ date: 2016-07-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Allows you to call sikuli remote server.
14
14
  email:
@@ -25,7 +25,10 @@ files:
25
25
  - lib/sikulinewrc/command.rb
26
26
  - lib/sikulinewrc/commands/app_focus
27
27
  - lib/sikulinewrc/commands/click
28
+ - lib/sikulinewrc/commands/click_location
29
+ - lib/sikulinewrc/commands/double_click
28
30
  - lib/sikulinewrc/commands/drag_drop
31
+ - lib/sikulinewrc/commands/exists
29
32
  - lib/sikulinewrc/commands/find
30
33
  - lib/sikulinewrc/commands/page_down
31
34
  - lib/sikulinewrc/commands/right_click
@@ -39,8 +42,7 @@ files:
39
42
  - lib/sikulinewrc/version.rb
40
43
  - sikulinewrc.gemspec
41
44
  homepage: http://github.com/powerkx/sikulinewrc
42
- licenses:
43
- - POWERKX
45
+ licenses: []
44
46
  metadata: {}
45
47
  post_install_message:
46
48
  rdoc_options: []
@@ -48,17 +50,17 @@ require_paths:
48
50
  - lib
49
51
  required_ruby_version: !ruby/object:Gem::Requirement
50
52
  requirements:
51
- - - ! '>='
53
+ - - ">="
52
54
  - !ruby/object:Gem::Version
53
55
  version: '0'
54
56
  required_rubygems_version: !ruby/object:Gem::Requirement
55
57
  requirements:
56
- - - ! '>='
58
+ - - ">="
57
59
  - !ruby/object:Gem::Version
58
60
  version: '0'
59
61
  requirements: []
60
62
  rubyforge_project:
61
- rubygems_version: 2.4.1
63
+ rubygems_version: 2.4.5.1
62
64
  signing_key:
63
65
  specification_version: 4
64
66
  summary: Ruby wrapped for sikuli remote server client api