Mouse movement/clicks is not functioning?

Questions, comments, and suggestions related to Typeitin.
Post Reply
mbatarga
Posts: 1
Joined: Wed Apr 20, 2022 1:48 pm

Mouse movement/clicks is not functioning?

Post by mbatarga » Fri May 13, 2022 10:10 am

I am unable to get any Mouse click/movement functions to work. Below is a sample recorded script - which does not work.
The browser opens and the button blinks to indicate the pause I added (for the browser window to open the main page) and then the cursor position does move from the TypeItIn button area to an area within the browser - but not the "new tab" area that I selected during the recording. What am I missing?

{Run C:\Program Files (x86)\Mozilla Firefox\firefox.exe}{Pause 10}{MouseLeftClick 734,246}google.com{Enter}

Wavget
Site Admin
Posts: 87
Joined: Wed Jan 16, 2019 4:32 pm

Re: Mouse movement/clicks is not functioning?

Post by Wavget » Fri May 13, 2022 11:37 am

For the mouse click function to work the Firefox window has to be in the exact same place and be the exact same size. Only then will all the controls be in the exact same location.

You can use the WinPos and WinSize functions to accomplish this. For example to click the File menu in Notepad:

{WinPos 158,335,Untitled - Notepad}{WinSize 1098,718,Untitled - Notepad}{MouseLeftClick 181,373}

A better way is to find a shortcut key for the action you are trying to perform. For example, Control - T is the shortcut to open a new tab in Firefox.

{Activate Mozilla Firefox*}{Ctrl t}google.com{Enter}

Even better, if Firefox is your default browser you can open a web page in a new tab with the run command:

{Run www.google.com}

Post Reply