• Log in or sign up for an account here: https://www.sythe.org/login

Click every pixel in the area?

Cody

Grand Master

Visual Basic Programmers
Joined
May 10, 2005
Sythe Gold
30
Messages
3,052
Age
36
Location
USA, Oregon
Was wondering about this... Just been out of school and my math is bad


Anyone have a script to click every pixel on the screen?
 
"i Do Not Mm, I Do Not Buy Stuff, I Do Not Sell Stuff, I Do Not Play Runescape!"

???
 
"i Do Not Mm, I Do Not Buy Stuff, I Do Not Sell Stuff, I Do Not Play Runescape!"

???

I used to be a moderator and everyone asked... And its for another game
 
What are the dimensions? :) I can do it without knowing, I think, but it depends on if the game is full screen or not. [email protected]

Edit: Hope this is what you want! :)

Code:
var
  x, y: Integer;

const
  xx = 70;//End x co-ordinate of the client
  yy = 70;//End y co-ordinate of the client
  
begin
  for x := 0 to xx do
    for y := 0 to yy do
      ClickMouse(x, y, True);
end.
 
Cody, scar works with specified client coordinates. so you want to determine what the maxium of Y is, and the maxium of X.

How do we do that? pretty easy.

Code:
procedure GetClientDimensions(var Width, Height: Integer);

Lets say width is x1, and Height is y1.

( The specefied client is the whole screen with this function :(..)

Code:
program allpixels;
var
x,y,x1,y1: Integer;
begin
SetDesktopAsClient;
GetClientDimensions(x1,y1);
writeln('X1 = '+inttostr(x1)+'');
writeln('Y1 = '+inttostr(y1)+'');
x := 0;
y := 0;

repeat
if(x < x1) then
begin
  movemouse(x,y) // change this with Clickmouse(x,y,true); for clicking, pretty hard to test lol.
  wait(10);
  x := x + 1;
   if(x = x1) then
     begin
      y := y + 1;
      x := 0
     end;
   if(y = y1) then
     begin
       Terminatescript;
     end;
end;


until(false)
end.

Succes, wanna get help with scripting? check my thread;

http://www.sythe.org/showthread.php?t=683205
 
Code:
program New;
Var
  P, I, C, T : Integer;
  
begin
  GetClientDimensions(P, I);
  For T := 0 to P do
    For C := 0 to I Do
      ClickMouse(T, C, True);
end.

This stores the bottom X and Y of the client into the variables P and I, then runs them through a For..To..Do nested in a For..To..Do which clicks the left mouse button at the coordinate stored in T, C (which is increased through every loop of the For..To..Do), and repeats this until it reachs the end of your client screen.

~Sandstorm
 
Runescape Gamblingrunescape gambling
Back
Top