-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from glitchassassin/develop
v0.5.0
- Loading branch information
Showing
14 changed files
with
3,162 additions
and
2,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
""" Custom exceptions for Sikuli script """ | ||
|
||
class FindFailed(Exception): | ||
def __init__(self,*args,**kwargs): | ||
Exception.__init__(self,*args,**kwargs) | ||
""" Exception: Unable to find the searched item """ | ||
def __init__(self, *args, **kwargs): | ||
Exception.__init__(self, *args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,70 @@ | ||
class Button(): | ||
LEFT = 0 | ||
CENTER = 1 | ||
RIGHT = 2 | ||
LEFT = 0 | ||
CENTER = 1 | ||
RIGHT = 2 | ||
|
||
class Key(): | ||
""" Key codes for PlatformManager.TypeKeys() function. Can be entered directly or concatenated with an existing string. """ | ||
ENTER = "{ENTER}" | ||
ESC = "{ESC}" | ||
BACKSPACE = "{BACKSPACE}" | ||
DELETE = "{DELETE}" | ||
F1 = "{F1}" | ||
F2 = "{F2}" | ||
F3 = "{F3}" | ||
F4 = "{F4}" | ||
F5 = "{F5}" | ||
F6 = "{F6}" | ||
F7 = "{F7}" | ||
F8 = "{F8}" | ||
F9 = "{F9}" | ||
F10 = "{F10}" | ||
F11 = "{F11}" | ||
F12 = "{F12}" | ||
F13 = "{F13}" | ||
F14 = "{F14}" | ||
F15 = "{F15}" | ||
F16 = "{F16}" | ||
HOME = "{HOME}" | ||
END = "{END}" | ||
LEFT = "{LEFT}" | ||
RIGHT = "{RIGHT}" | ||
DOWN = "{DOWN}" | ||
UP = "{UP}" | ||
PAGE_DOWN = "{PAGE_DOWN}" | ||
PAGE_UP = "{PAGE_UP}" | ||
TAB = "{TAB}" | ||
CAPS_LOCK = "{CAPS_LOCK}" | ||
NUM_LOCK = "{NUM_LOCK}" | ||
SCROLL_LOCK = "{SCROLL_LOCK}" | ||
INSERT = "{INSERT}" | ||
SPACE = "{SPACE}" | ||
PRINTSCREEN = "{PRTSC}" | ||
ALT = "{ALT}" | ||
CMD = "{CMD}" | ||
CONTROL = "{CTRL}" | ||
META = "{META}" | ||
SHIFT = "{SHIFT}" | ||
WIN = "{WIN}" | ||
PAUSE = "{PAUSE}" | ||
NUM_0 = "{NUM_0}" | ||
NUM_1 = "{NUM_1}" | ||
NUM_2 = "{NUM_2}" | ||
NUM_3 = "{NUM_3}" | ||
NUM_4 = "{NUM_4}" | ||
NUM_5 = "{NUM_5}" | ||
NUM_6 = "{NUM_6}" | ||
NUM_7 = "{NUM_7}" | ||
NUM_8 = "{NUM_8}" | ||
NUM_9 = "{NUM_9}" | ||
""" Key codes for PlatformManager.TypeKeys() function. | ||
Can be entered directly or concatenated with an existing string. """ | ||
ENTER = "{ENTER}" | ||
ESC = "{ESC}" | ||
BACKSPACE = "{BACKSPACE}" | ||
DELETE = "{DELETE}" | ||
F1 = "{F1}" | ||
F2 = "{F2}" | ||
F3 = "{F3}" | ||
F4 = "{F4}" | ||
F5 = "{F5}" | ||
F6 = "{F6}" | ||
F7 = "{F7}" | ||
F8 = "{F8}" | ||
F9 = "{F9}" | ||
F10 = "{F10}" | ||
F11 = "{F11}" | ||
F12 = "{F12}" | ||
F13 = "{F13}" | ||
F14 = "{F14}" | ||
F15 = "{F15}" | ||
F16 = "{F16}" | ||
HOME = "{HOME}" | ||
END = "{END}" | ||
LEFT = "{LEFT}" | ||
RIGHT = "{RIGHT}" | ||
DOWN = "{DOWN}" | ||
UP = "{UP}" | ||
PAGE_DOWN = "{PGDN}" | ||
PAGE_UP = "{PGUP}" | ||
TAB = "{TAB}" | ||
CAPS_LOCK = "{CAPS_LOCK}" | ||
NUM_LOCK = "{NUM_LOCK}" | ||
SCROLL_LOCK = "{SCROLL_LOCK}" | ||
INSERT = "{INSERT}" | ||
SPACE = "{SPACE}" | ||
PRINTSCREEN = "{PRTSC}" | ||
ALT = "{ALT}" | ||
CMD = "{CMD}" | ||
CONTROL = "{CTRL}" | ||
META = "{META}" | ||
SHIFT = "{SHIFT}" | ||
WIN = "{WIN}" | ||
PAUSE = "{PAUSE}" | ||
NUM_0 = "{NUM_0}" | ||
NUM_1 = "{NUM_1}" | ||
NUM_2 = "{NUM_2}" | ||
NUM_3 = "{NUM_3}" | ||
NUM_4 = "{NUM_4}" | ||
NUM_5 = "{NUM_5}" | ||
NUM_6 = "{NUM_6}" | ||
NUM_7 = "{NUM_7}" | ||
NUM_8 = "{NUM_8}" | ||
NUM_9 = "{NUM_9}" | ||
|
||
class KeyModifier(): | ||
""" Key modifiers precede either a single key [e.g., ^v] or a set of characters within parentheses [e.g., +(hello)] """ | ||
CTRL = "^" | ||
SHIFT = "+" | ||
ALT = "%" | ||
META = "@" | ||
CMD = "@" | ||
WIN = "@" | ||
""" Key modifiers precede either a single key [e.g., ^v] or a set of characters within parentheses [e.g., +(hello)] """ | ||
CTRL = "{CTRL}" | ||
SHIFT = "{SHIFT}" | ||
ALT = "{ALT}" | ||
META = "{WIN}" | ||
CMD = "{WIN}" | ||
WIN = "{WIN}" |
Oops, something went wrong.