Re: Re: win.sendmouse, how to restore position?

"Dave Gorman [email protected] [power-pro]" <[email protected]> Thu, 21 Mar 2019 09:36:42 -0500
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
Thanks for the suggestions, Bruce. We're delving into uncharted waters for me, so I'll take a look at this as I have time!




---- On Wed, 20 Mar 2019 15:52:00 -0500 brucexs-/[email protected] [power-pro] <[email protected]> wrote ----



 

OK, sorry it does not work for you. 

You can try saving position in variables using exec morecommandsasscript





more  commands fields (ie cmd2 etc)

local x=xmouser

local y = ymouse

/*do stuff here*/

win.mouseto(x,y)  // I prefer this to win.sendmouse("ab", x, y) 



You need the morecommandsasscript to use local statement in more commands.



Not tested, so debugging up to you. I am afraid.