Re: Re: win.sendmouse, how to restore position?
| Newsgroups | gmane.comp.windows.power-pro |
|---|---|
| Message-ID | <[email protected]> |
It's only worth it if you want to take advanatge of the full capabilities of powerpro. But if you are content with what you can do without scripting, its probably not worth the effort to learn scripting.
As a bonus, if you learn scripting, then you will have learned coding, which some educators think all children should learn!
If you want to try my suggestion once just to see if it works, then put the following into the command entry controls of a hot key
Command: Exec
Action: MoreCommandsAsScript
More Commands:
local x = xmouse
local y=ymouse
win.sendmouse("ab 950 50")
wait.forinterval(500)
win.sendmouse("lc")
keys ^a{delete}^v{enter}
wait.forinterval(1500)
win.mouseto(x,y)
I did a quick test and it seemed to work. But the move back depended on making the second wait 1500 milliseconds which might be needed to allow the paste action from the keys to complete in the target application.