--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:

> Something like
> local xnew=xmouse
> local ynew=ymouse
> xnew =xnew +25-random(50)   // for +- 25 random positions, including 0
> ynew =ynew +25-random(50)
> xnew = max(0, min(xscreen, xnew))  // force on screen
> ynew = max(0, min(yscreen, ynew))
> win.mouse("ab "++ xnew ++" "++ynew)
> 
> 
> See help and scripting tutorial for details.
>


Thank you very much for your help brucexs.

Sorry for my wrong spelling of your name last time.
I could not find any edit feature here.

I guess I've got to do some studying...because honestly I cannot yet
make sense of this material that you are showing me.
I just cannot figure out where it's up to me to fill in variables or
whatever with numbers etc. Like should I leave it xmouse or does
xmouse mean I'm supposed to type, for example, 50mouse or just mouse
ab 50...etc.

And does what does ynew mean? Couldn't find that in help index search.
    
I know it would help if I new programming...I'm working on it.I cannot
seem to sort it out, but I am beginning to study the wonderful
scripting tutorial and help on mouse movements etc.

Is it possible to give me some exact line that I can put into a script
so that I can just click on the script
...for example

random_vertical_mouse_50.powerpro

...which would contain a single line...so that when I open the file
(with a key combination I set up) the mouse would move randomly within
a range of 50 pixels?
...so for example if I were in MS Paint, I could just keep clicking
the key I set up and the mouse would move randomly up or down within
50 pixel range from wherever it is currently located on the screen?

...and then one other line that I could use to make the mouse move in
random direction (up or down or even sideways?) within say a 100 pixel
range?

Thank you so much for your help. I know I'm asking for a shortcut so I
do not have to do in depth study in order to get the results I want
quickly...but I am also studying daily too.

Thanks again,

frew

Reply via email to