WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: bmclellan on October 24, 2018, 08:29:49 AM

Title: MouseMove in VMWARE session
Post by: bmclellan on October 24, 2018, 08:29:49 AM
Good morning,

I can't seem to get the MouseMove function to work when running Winbatch within a Windows 10 virtual window.

The MouseClick function works fine, as well as SendKey. I am using 'Track Mouse Coordinates" shows me the application and coordinates I am on.

My function looks like this:
      MouseMove(240,544,"","") and have tried MouseMove(70,353,"Calculator","")

Has anyone seen this type of issue before?

I am currently running WinBatch 2017B.


Thanks!
Barry
Title: Re: MouseMove in VMWARE session
Post by: td on October 24, 2018, 09:19:58 AM
VMWare happens to be the in-house virtual machine software of choice so WinBatch is used inside VMWare virtual machines all the time.  This includes WinBatch testing.  We have never had a problem using the MouseMove function from within a VMWare virtual machine.  It is not likely that your problem is caused by running in a virtual machine unless you are using a version of VMWare that is not completely compatible with either your host or guest OS, or your host's hardware.
Title: Re: MouseMove in VMWARE session
Post by: td on October 24, 2018, 10:31:02 AM
Take that back.  MouseMove doesn't seem to want to work in VMWare Windows 10 guest using Workstation 14 or Workstation 15.  I guess we will have to hope the VMWare addresses whatever the underlying issue is at some point.
Title: Re: MouseMove in VMWARE session
Post by: bmclellan on October 24, 2018, 12:52:22 PM
Thanks for double checking, glad I'm not losing my mind.

I'll look around their site and see if it is a known issue.


Thanks
Barry
Title: Re: MouseMove in VMWARE session
Post by: td on October 24, 2018, 01:14:36 PM
Looking back at my notes this problem has been around since early versions of Windows 10 and extends to MousePlay, as well.  MousePlay communicates with the OS at a lower level than MouseMove.  This suggests that the problem resides in the VMWare virtual drivers someplace and it is definitely not some kind of addressable WinBatch problem.
Title: Re: MouseMove in VMWARE session
Post by: td on October 25, 2018, 08:44:29 AM
It looks like the problem has spread to Windows 7 guests on VMWare Workstation 15.  It is interesting that on a Windows 7 guest, using the MouseMove function to move the mouse cursor to a number button on the Windows Calculator app causes that button to change color but does not cause the displayed mouse cursor image to move over that button.   
Title: Re: MouseMove in VMWARE session
Post by: bmclellan on October 25, 2018, 10:49:27 AM
Sigh, what do we do now?

Of course the program I need to interact with as ZERO short cut keys and TAB not enabled.
Title: Re: MouseMove in VMWARE session
Post by: td on October 25, 2018, 01:36:25 PM
You could give Roboscripter a try.  Based on your description you may be working with a "Windows Universal App" so there is not guaranteed Robscripter will work either.  But it should only take a few minutes to figure that out.

On the VMWare font, I discovered that my trusty Logitech M705 no longer has a working scroll button in Workstation 15 guests.  When I get a free moment I might try fiddling with some VMWare 15's configuration option to see if some combo of setting might improve mouse input in guests.
Title: Re: MouseMove in VMWARE session
Post by: td on October 25, 2018, 02:17:14 PM
The strangeness continues.  I recorded a WinMacro script that simply moved the mouse cursor to a button on the Windows 10 calculator and played it back.  Much to my amazement, it worked.  WinMacro does nothing more than write scripts containing SendKey and MousePlay function calls.   So it appears that unlike Workstation 14 MousePlay has mysteriously started working in VMWare Workstation 15.  Wish I knew what if anything I did to cause this to happen... 
Title: Re: MouseMove in VMWARE session
Post by: bmclellan on November 05, 2018, 12:18:50 PM
Well... I was looking for an excuse to upgrade to 15!
Title: Re: MouseMove in VMWARE session
Post by: td on November 05, 2018, 01:07:02 PM
Guest OSes do seem to be more responsive in 15 so there must be some significant performance improvements.  I can't promise that MousePlay will work for you because of all the variables relating to system setup but let us know what you discover.
Title: Re: MouseMove in VMWARE session
Post by: bmclellan on December 15, 2018, 11:25:14 AM
Good afternoon, it's been a month or so, and no luck here on V15

If anyone comes up with anything, please let me know.


Thanks!
Title: Re: MouseMove in VMWARE session
Post by: td on December 17, 2018, 06:41:14 AM
By "no luck" are you referring to MouseMove or MousePlayMouseMove does not work on VMWare 15 but MousePlay does.  At least, MousePlay does in our testing.
Title: Re: MouseMove in VMWARE session
Post by: bmclellan on December 17, 2018, 01:39:58 PM
Thanks Tony, I didn't even see the MousePlay command, I will try that. At first glance, it seems way better than mousemove!


Barry
Title: Re: MouseMove in VMWARE session
Post by: td on December 17, 2018, 05:18:22 PM
MouseMove relies on calls to high-level win32 APi functions, whereas, MousePlay relies on low-level win32 API functions that are much closer to device drivers.