L
LifeIsGood069
Guest
Hi, (ugh my post just got deleted when I went to preview it.) Well apparently I can't preview stuff. Oh well, lets hope it turns out ok.
I need help creating a script for the game Icy Tower 1.3. If you do not have the game you can get it at one of these links. Click the "Free Download," don't pay for the "Premium" stuff.
http://icy-tower.en.softonic.com/download
I basicly need help sending keys to the actual game. The beginning of the script works and the end of the script works as far as getting mouse coordinates and clicking the mouse, but the keyboard commands mostly do not work. (Yes the game works when i actually press my keyboard buttons and i can play the game using that. But I need to be able to do it through Scar.) For some reason scar is not sending most commands to the Icy Tower game. I have tried: SendKeys, SendKeysVB, KeyDown, KeyUp, SendArrowSilent.
The only command that works is KeyDown(VK_Down);.
Even if you do not have the game or have not played it, I have tried to make the code explain what I am trying to do so you can help. Anyways here is the code I've written:
program IcyTowerHacks;
var
a: Cardinal;
b,x,y: Integer;
//Open Icy Tower Program On DeskTop
procedure Open;
begin
if(FindColorTolerance(x,y,13264196,1,1,742,499,1)) and
(FindColorTolerance(x,y,5864902,1,1,742,516,1)) then
begin
MoveMouseSmooth(x,y);
Wait(80);
ClickMouse(x,y,True);
Wait(80);
ClickMouse(x,y,True);
//Waiting For Loading Time (4.5 Seconds)
Wait(4500);
end else
begin
Writeln('--Color Failed');
//A = GetSystemTime (at program start) + 1hour & 1/1000 Seconds
a:= a - 3600001
Wait(1500);
end;
end;
//Should Be Majority of Game Loop
procedure Game;
begin
if(GetSystemTime-a < 3600001) then
begin
Writeln('>>>Running The Game<<<');
//Presses "Start Game" (Main Menu - Icy Tower 1.3)
// there was send keys here, but i couldn't post
end else
begin
Writeln('>>>NOT Running The Game<<<');
end
end;
//Detects HighScores + Fills Them Out (NEEDS IMPROVEMENT)
procedure HighScores;
begin
// need to find colors at specific coordinates or ranges
if(FindColorTolerance(x,y,16711740,1,1,525,351,1)) or
(FindColorTolerance(x,y,65450,1,1,298,370,1)) or
(FindColorTolerance(x,y,16711935,1,1,325,325,1)) or
(FindColorTolerance(x,y,65365,1,1,271,446,1)) then
begin
//Type "GYM" + Press Enter
Wait(200);
// there was send keys here, but i couldn't post
end else
begin
Writeln('--Not a HighScore');
end;
end;
//Tells How Much Time Elapsed From Start->Finish
procedure Timing;
begin
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/1000)+' Seconds');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/60000)+' Minutes');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/3600000)+' Hours');
end;
procedure Exiting;
begin
//Exit Icy Tower Program 3600000ms = 1hour
if(GetSystemTime-a > 3600000) then
begin
Writeln('--Exiting Icy Tower');
repeat
// Press Escape
// there was send keys here, but i couldn't post
Wait(750+random(200));
Writeln(inttostr(b+1)+' ESC');
b:=1+b
//Pressed 6 Times + Wait 4.5<->5.7 Seconds
until(b=6);
//Tells How Much Time Elapsed From Start->Finish
Writeln('***Ending Time***');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/1000)+' Seconds');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/60000)+' Minutes');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/3600000)+' Hours');
end else
begin
Writeln('--Not Exiting');
end
end;
// Actual Program Starting
begin
a:= GetSystemTime;
b:=0;
Writeln('/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\');
Writeln('&--------->| PROGRAM STARTED |<---------&');
Writeln('\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/');
//DisguiseScar('Icy Tower Hack'); //not working...
Open;
Writeln('***Opening Time***');
Timing;
repeat
Game;
HighScores;
Exiting;
until(GetSystemTime-a > 3600000);
end.
// Thank you for helping.
I need help creating a script for the game Icy Tower 1.3. If you do not have the game you can get it at one of these links. Click the "Free Download," don't pay for the "Premium" stuff.
http://icy-tower.en.softonic.com/download
I basicly need help sending keys to the actual game. The beginning of the script works and the end of the script works as far as getting mouse coordinates and clicking the mouse, but the keyboard commands mostly do not work. (Yes the game works when i actually press my keyboard buttons and i can play the game using that. But I need to be able to do it through Scar.) For some reason scar is not sending most commands to the Icy Tower game. I have tried: SendKeys, SendKeysVB, KeyDown, KeyUp, SendArrowSilent.
The only command that works is KeyDown(VK_Down);.
Even if you do not have the game or have not played it, I have tried to make the code explain what I am trying to do so you can help. Anyways here is the code I've written:
program IcyTowerHacks;
var
a: Cardinal;
b,x,y: Integer;
//Open Icy Tower Program On DeskTop
procedure Open;
begin
if(FindColorTolerance(x,y,13264196,1,1,742,499,1)) and
(FindColorTolerance(x,y,5864902,1,1,742,516,1)) then
begin
MoveMouseSmooth(x,y);
Wait(80);
ClickMouse(x,y,True);
Wait(80);
ClickMouse(x,y,True);
//Waiting For Loading Time (4.5 Seconds)
Wait(4500);
end else
begin
Writeln('--Color Failed');
//A = GetSystemTime (at program start) + 1hour & 1/1000 Seconds
a:= a - 3600001
Wait(1500);
end;
end;
//Should Be Majority of Game Loop
procedure Game;
begin
if(GetSystemTime-a < 3600001) then
begin
Writeln('>>>Running The Game<<<');
//Presses "Start Game" (Main Menu - Icy Tower 1.3)
// there was send keys here, but i couldn't post
end else
begin
Writeln('>>>NOT Running The Game<<<');
end
end;
//Detects HighScores + Fills Them Out (NEEDS IMPROVEMENT)
procedure HighScores;
begin
// need to find colors at specific coordinates or ranges
if(FindColorTolerance(x,y,16711740,1,1,525,351,1)) or
(FindColorTolerance(x,y,65450,1,1,298,370,1)) or
(FindColorTolerance(x,y,16711935,1,1,325,325,1)) or
(FindColorTolerance(x,y,65365,1,1,271,446,1)) then
begin
//Type "GYM" + Press Enter
Wait(200);
// there was send keys here, but i couldn't post
end else
begin
Writeln('--Not a HighScore');
end;
end;
//Tells How Much Time Elapsed From Start->Finish
procedure Timing;
begin
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/1000)+' Seconds');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/60000)+' Minutes');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/3600000)+' Hours');
end;
procedure Exiting;
begin
//Exit Icy Tower Program 3600000ms = 1hour
if(GetSystemTime-a > 3600000) then
begin
Writeln('--Exiting Icy Tower');
repeat
// Press Escape
// there was send keys here, but i couldn't post
Wait(750+random(200));
Writeln(inttostr(b+1)+' ESC');
b:=1+b
//Pressed 6 Times + Wait 4.5<->5.7 Seconds
until(b=6);
//Tells How Much Time Elapsed From Start->Finish
Writeln('***Ending Time***');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/1000)+' Seconds');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/60000)+' Minutes');
Writeln('Time Elapsed: '+FloatToStr((GetSystemTime-a)/3600000)+' Hours');
end else
begin
Writeln('--Not Exiting');
end
end;
// Actual Program Starting
begin
a:= GetSystemTime;
b:=0;
Writeln('/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\');
Writeln('&--------->| PROGRAM STARTED |<---------&');
Writeln('\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/');
//DisguiseScar('Icy Tower Hack'); //not working...
Open;
Writeln('***Opening Time***');
Timing;
repeat
Game;
HighScores;
Exiting;
until(GetSystemTime-a > 3600000);
end.
// Thank you for helping.

