1 | static void openWindowsStartMenu() {
|
2 | BufferedImage img = loadImage2("#1005785");
|
3 | int state = openWindowsStartMenu_menuState(); |
4 | if (state == 0) fail("Where is the start menu!?");
|
5 | if (state != 3) {
|
6 | int x = img.getWidth()/2, y = screenHeight()-img.getHeight()/2; |
7 | if (state == 1) {
|
8 | moveMouseTo(x, y); |
9 | sleepSeconds(0.2); |
10 | state = openWindowsStartMenu_menuState(); |
11 | } |
12 | if (state != 2) fail("Can't open start menu!");
|
13 | mouseClick(x, y); |
14 | long timeout = now() + 3000; |
15 | while (state != 3 && now() < timeout) {
|
16 | sleepSeconds(0.1); |
17 | state = openWindowsStartMenu_menuState(); |
18 | } |
19 | if (state != 3) fail("Bohoo, start menu doesn't open");
|
20 | } |
21 | print("Start menu should be open!! :-))");
|
22 | } |
23 | |
24 | static int openWindowsStartMenu_menuState() {
|
25 | bottomLeftCornerIs_similarity = 0.98f; |
26 | ret checkBottomLeftCorner("#1005785 #1005786 #1005790");
|
27 | } |
Began life as a copy of #1005792
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005795 |
| Snippet name: | openWindowsStartMenu |
| Eternal ID of this version: | #1005795/1 |
| Text MD5: | d46cec774a410c4e79e450585a2f67a2 |
| Author: | stefan |
| Category: | javax / ocr |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-09 02:27:28 |
| Source code size: | 915 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 681 / 725 |
| Referenced in: | [show references] |