Skip to content

Commit

Permalink
fix bug, test copy/paste, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed May 11, 2019
1 parent 4e03236 commit 8e9f56f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 3 deletions.
6 changes: 4 additions & 2 deletions self_driving_desktop/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
| delay
| sleep
| shell
| drag
| mouse
| coord_off
| coord
| mouse
| drag
| click
| btnclick
| btndown
| btnup
| scroll
| hscroll
| keypress
| keydown
| keyup
| hotkeys
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name='self-driving-desktop',
version='0.0.6',
version='0.0.7',
author='Hofstadter, Inc.',
author_email='[email protected]',
description='Desktop Automation Framework. Drive your keyboard and mouse with text files.',
Expand Down
51 changes: 51 additions & 0 deletions test/copy-paste.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
playlist "openGedit" {
hk "winleft";
sleep 0.2;
write "gedit\n";
sleep 0.3;

active "gedit";
};

playlist "closeGedit" {
focus "gedit";
delay 0.25;
hk "ctrl" "q";
kp "left";
kp "left";
kp "enter";
delay 0.025;
};

playlist "testCopyPaste" {
delay 0.25;
play "openGedit";

write "hello apple!\n";
hk "ctrl" "a";
copy_clipboard "apple";

kp "del";

write "hello world\n";
hk "ctrl" "a";
copy_clipboard "world";

kp "del";

paste_clipboard "apple";
hk "ctrl" "a";
paste_clipboard "world";

sleep 1;
play "closeGedit";
delay 0.025;
};

playlist "main" {
play "testCopyPaste";
};

delay 0.025;

play "main";

0 comments on commit 8e9f56f

Please sign in to comment.