StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Flexible pause, a script I often use.
Rank: Advanced Member
Groups: Approved
Joined: 9/26/2018(UTC) Posts: 73 Location: 北京 Thanks: 18 times Was thanked: 1 time(s) in 1 post(s)
|
Thank you very much for this program from Rob. I also hope more friends can publish their own scripts here, To help each other. When I write scripts, I will encounter some non fixed pauses. It will be very inconvenient to use sleep() or pause(). For example, the loading time of some websites or large software is not fixed. I try to use the following script to solve this problem, I hope to help friends who also encounter these problems. When using this script, you need to get the color of a coordinate of these web pages or software in advance.
function mousecolor(cx,cy,cr) { sp.Sleep(350); sp.MouseMove(new Point(cx, cy)); for( iny=1;iny<=99999;iny++ ) {var xxy=sp.GetCurrentMousePoint().X var yyx=sp.GetCurrentMousePoint().Y sp.Sleep(50); sp.MouseMove(new Point(xxy+2,yyx)); sp.Sleep(50); sp.MouseMove(new Point(xxy,yyx)); sp.Sleep(10); var mousec=sp.GetPixelColorFromPoint(sp.GetCurrentMousePoint()).R; if (mousec==cr) {break;} } sp.Sleep(500); } mousecolor(Coordinate X, coordinate y, R value of color)
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Flexible pause, a script I often use.
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close