Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
mycroft-core
skills-skill-autogui.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skills-skill-autogui.patch of Package mycroft-core
diff --git skill-autogui/__init__.py skill-autogui.new/__init__.py index c5d7f27..45dc363 100644 --- skill-autogui/__init__.py +++ skill-autogui.new/__init__.py @@ -91,34 +91,34 @@ class AutoguiSkill(MycroftSkill): self.register_intent(paste_intent, self.handle_paste_intent) def handle_type_intent(self, message): - self.speak_dialog("typing") - text = message.data.get('Text') + self.speak_dialog("typing") + text = message.data.get('Text') pyautogui.typewrite(text, interval=0.05) def handle_mouse_absolute_intent(self, message): - self.speak('moving mouse now') - #X = message.data.get('X') - #Y = message.data.get('Y') + self.speak('moving mouse now') + #X = message.data.get('X') + #Y = message.data.get('Y') #pyautogui.moveTo(X, Y) def handle_mouse_scroll_down_intent(self, message): self.speak('scrolling down now') scroll = message.data.get('Scroll') scroll_down = int(scroll) * -1 - pyautogui.scroll(scroll_down) + pyautogui.scroll(scroll_down) def handle_mouse_scroll_up_intent(self, message): self.speak('scrolling up now') scroll = message.data.get('Scroll') scroll_up = int(scroll) - pyautogui.scroll(scroll_up) + pyautogui.scroll(scroll_up) def handle_mouse_scroll_right_intent(self, message): if platform.system().lower().startswith('lin'): self.speak('scrolling right now') scroll = message.data.get('Scroll') scroll_right = int(scroll) - pyautogui.hscroll(scroll_right) + pyautogui.hscroll(scroll_right) else: self.speak('Sorry, I cannot scroll right on your current operating system') @@ -171,7 +171,6 @@ class AutoguiSkill(MycroftSkill): self.speak("deleting") pyautogui.keyDown("delete") pyautogui.keyUp("delete") - def stop(self): pass
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor