Python Forum
Change mouse move speed in guibot script - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Change mouse move speed in guibot script (/thread-20996.html)



Change mouse move speed in guibot script - rulltartan - Sep-09-2019

Hi, i ran this test script from guibot and was wondering if there is a way to speed up the mouse or just skip the move and just click on the found image?
I've searched google and tried to see if there is options in the configuration that i could change easy but came up empty.

Code below:

import guibot

from guibot.guibot_simple import *

initialize()
add_path(r'C:\Users\me\Desktop\snaps')

if exists('file32.jpg'):
    click('file32.jpg')
else:
    type_text('Shapes do not exist')



RE: Change mouse move speed in guibot script - pevogam - Mar-30-2020

Hi @rulltartan, you can use the smooth_mouse_drag setting as documented in the config API:

https://guibot.readthedocs.io/en/latest/source/guibot.config.html#guibot.config.GlobalConfig.smooth_mouse_drag

Since me and other maintainers of the project don't have high presence in this forum I would recommend that you simply post an issue at the github page of the project:

https://github.com/intra2net/guibot/issues

In this way we will be able to reply faster next time :) Also, any recommendations on the documentation, API, or anything you found difficult are welcome as an issue too.