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

Is Chat-GPT4 Strong?

wtf bbq

Active Member
Joined
Aug 11, 2012
Sythe Gold
40
Messages
179
I literally have 0 coding experience.. would this skeleton work if I knew what to fill in to start automating clicks? This is actually kind of crazy and ground-breaking if true.


Program ClickOnColor;

// Function to find a color on the screen
function FindColor(color: Integer): Boolean;
var
x, y: Integer;
begin
Result := False;
// Capture the screen
CaptureScreen;
// Loop through each pixel of the captured screen
for x := 0 to ScreenWidth - 1 do
begin
for y := 0 to ScreenHeight - 1 do
begin
// Get the color of the current pixel
if GetPixel(x, y) = color then
begin
// Color found, set the result to True and exit the loop
Result := True;
Exit;
end;
end;
end;
end;

var
colorToFind: Integer;
x, y: Integer;
begin
// Example usage: find the color red (RGB value: 255, 0, 0)
colorToFind := $FF0000;
if FindColor(colorToFind) then
begin
// Get the screen coordinates of the color found
x := LastX;
y := LastY;

// Click on the screen coordinates
Click(x, y);
writeln('Clicked on color at coordinates (', x, ', ', y, ')');
end
else
writeln('Color not found');
end.
 
Poképedia
Pokémon Trainer
Tier 2 Prizebox
// Loop through each pixel of the captured screen
for x := 0 to ScreenWidth - 1 do
begin
for y := 0 to ScreenHeight - 1 do
begin
Watch out with this! Lots of iterations.

if GetPixel(x, y) = color then
begin
// Color found, set the result to True and exit the loop
Result := True;

Better to return the X Y coordinates. Much more useful function.

The rest of the code won't work since LastX and LastY are undefined.

ChatGPT is way stronger than this btw.
 
Poképedia
Pokémon Trainer
Tier 2 Prizebox
An evolutionary algorithm that allows ChatGPT to create accounts and write the code, and killing the prompts and biases when the account gets banned would be cool.
 
I messed up didn’t mean to reply to this thread can my comments be deleted I don’t see an option for this on mobile.

Flip your device long ways. On the fat upper right-hand side should be an Edit option.
 
Runescape Gamblingrunescape gambling
Back
Top