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

"Dave Gorman [email protected] [power-pro]" <[email protected]> Mon, 18 Mar 2019 08:30:46 -0500
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
Unfortunately with "rs" (entire command is below) the cursor just goes to the top left of the screen (0,0). Perhaps I've done something incorrectly, or perhaps scripting might be my only option?



Key = Ctrl+` 

Target = *THR*

Cmd1 = *Keys

Param1 = ^c

Cmd2 = win.sendmouse("sa")

Cmd3 = win.sendmouse("ab

Param3 = 950 50")

Cmd4 = *Wait

Param4 = 1

Cmd5 = win.sendmouse("lc")

Cmd6 = *Wait

Param6 = 1

Cmd7 = *Keys

Param7 = ^a{delete}^v{enter}

Cmd8 = win.sendmouse("rs")





---- On Sat, 16 Mar 2019 08:28:41 -0500 brucexs-/[email protected] [power-pro] <[email protected]> wrote ----



 

Try win.sendmouse("rs").  Tthe help omitted that two letter short form for restore.



The win source code indicates that will work and a quick test looked good.





(In an earlier version of this note which I deleted, I mistakenly referred to win.sendmouse("re").  That is infact the relative position command.)