You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Utils/Jupyter-notebooks/Mouse.ipynb

222 lines
4.9 KiB

{
"cells": [
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
"import time\n",
"from pyOpenRPA.Robot import Mouse"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['FAILSAFE',\n",
" 'FAILSAFE_POINT',\n",
" 'FailSafeException',\n",
" 'KEYBOARD_KEYS',\n",
" 'KEY_NAMES',\n",
" 'MINIMUM_DURATION',\n",
" 'MINIMUM_SLEEP',\n",
" 'PAUSE',\n",
" 'Point',\n",
" 'Size',\n",
" 'Window',\n",
" '__builtins__',\n",
" '__cached__',\n",
" '__doc__',\n",
" '__file__',\n",
" '__loader__',\n",
" '__name__',\n",
" '__package__',\n",
" '__spec__',\n",
" 'absolute_import',\n",
" 'alert',\n",
" 'center',\n",
" 'click',\n",
" 'collections',\n",
" 'collectionsSequence',\n",
" 'confirm',\n",
" 'displayMousePosition',\n",
" 'division',\n",
" 'doubleClick',\n",
" 'drag',\n",
" 'dragRel',\n",
" 'dragTo',\n",
" 'easeInBack',\n",
" 'easeInBounce',\n",
" 'easeInCirc',\n",
" 'easeInCubic',\n",
" 'easeInElastic',\n",
" 'easeInExpo',\n",
" 'easeInOutBack',\n",
" 'easeInOutBounce',\n",
" 'easeInOutCirc',\n",
" 'easeInOutCubic',\n",
" 'easeInOutElastic',\n",
" 'easeInOutExpo',\n",
" 'easeInOutQuad',\n",
" 'easeInOutQuart',\n",
" 'easeInOutQuint',\n",
" 'easeInOutSine',\n",
" 'easeInQuad',\n",
" 'easeInQuart',\n",
" 'easeInQuint',\n",
" 'easeInSine',\n",
" 'easeOutBack',\n",
" 'easeOutBounce',\n",
" 'easeOutCirc',\n",
" 'easeOutCubic',\n",
" 'easeOutElastic',\n",
" 'easeOutExpo',\n",
" 'easeOutQuad',\n",
" 'easeOutQuart',\n",
" 'easeOutQuint',\n",
" 'easeOutSine',\n",
" 'getActiveWindow',\n",
" 'getAllTitles',\n",
" 'getAllWindows',\n",
" 'getPointOnLine',\n",
" 'getWindowsAt',\n",
" 'getWindowsWithTitle',\n",
" 'grab',\n",
" 'hotkey',\n",
" 'hscroll',\n",
" 'isShiftCharacter',\n",
" 'isValidKey',\n",
" 'keyDown',\n",
" 'keyUp',\n",
" 'linear',\n",
" 'locate',\n",
" 'locateAll',\n",
" 'locateAllOnScreen',\n",
" 'locateCenterOnScreen',\n",
" 'locateOnScreen',\n",
" 'middleClick',\n",
" 'mouseDown',\n",
" 'mouseUp',\n",
" 'move',\n",
" 'moveRel',\n",
" 'moveTo',\n",
" 'onScreen',\n",
" 'password',\n",
" 'pixel',\n",
" 'pixelMatchesColor',\n",
" 'platformModule',\n",
" 'position',\n",
" 'press',\n",
" 'print_function',\n",
" 'prompt',\n",
" 'pygetwindow',\n",
" 'pymsgbox',\n",
" 'pyscreeze',\n",
" 'pytweening',\n",
" 'rightClick',\n",
" 'screenshot',\n",
" 'scroll',\n",
" 'size',\n",
" 'sys',\n",
" 'time',\n",
" 'tripleClick',\n",
" 'typewrite',\n",
" 'useImageNotFoundException',\n",
" 'vscroll',\n",
" 'write']"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dir(Mouse)"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"time.sleep(1)\n",
"Mouse.scroll(-100)\n"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"time.sleep(1)\n",
"Mouse.vscroll(-100)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.2"
},
"varInspector": {
"cols": {
"lenName": 16,
"lenType": 16,
"lenVar": 40
},
"kernels_config": {
"python": {
"delete_cmd_postfix": "",
"delete_cmd_prefix": "del ",
"library": "var_list.py",
"varRefreshCmd": "print(var_dic_list())"
},
"r": {
"delete_cmd_postfix": ") ",
"delete_cmd_prefix": "rm(",
"library": "var_list.r",
"varRefreshCmd": "cat(var_dic_list()) "
}
},
"types_to_exclude": [
"module",
"function",
"builtin_function_or_method",
"instance",
"_Feature"
],
"window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 4
}