--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote: > > > > > *Mouse re 100 220 ld mo -300 -200 lu > > > > > > Maybe something like this: > > > > *Mouse re 100 220 ld mo 0 rand(15to-15) lu > > The following will move random number of pixels +-50 from current x, > with limit of zero and screen size. You should be able to adapt to > your need > win.mouse(max(0, min(xscreen, xmouse+random(100))) > If you want to mix *mouse commands and an expression to generate a > number, the general form would be > win.mouse("commands"++expression++"commands") > > The following will generate a random rgb color( > randcol = (random(256)<<16) + (random(256)<<8) + random(256) >
I cannot seem to get it to work. (Note: I'm using this in very basic script files that I'm beginning to experiment with. The other simple scipts I'm creating all work fine to move the mouse around, do mouse clicks, send keys, etc...so I do have basic scripts working okay with my setup) Here's what I do with the line that you gave me. I create a text file and give it .powerpro extension. Then I put only this line into the file: win.mouse(max(0, min(xscreen, xmouse+random(100))) I save the file and click to open it and I get error message: Bad expression: check parentheses or for extra chars at end win.mouse(max(0, min(xscreen, xmouse+random(100))) error occurred near line 1 of script.... Any idea what I could change to get it to work? I'm using Win98SE if that makes any difference. Thank you very much, frew
