Hey everyone, so basically i made this script to do searches for me(google)
And the script works fine up until where it has to write "Message2" The script clicks in all the right places, but it just keeps typing "Message1" over and over again. How can i get it to type the other messages?
Thanks. 
SCAR Code:
program script;
{.include SRL/SRL.scar}
const
Message1='Search1';
Message2='Search2';
Procedure Firstclick;
begin
MoveMouse(746,71);
Wait(1000);
ClickMouse(746,71,true);
end;
Procedure BeginTyping;
begin
Wait(2000);
TypeSend(Message1);
Wait(2000);
TypeSend(Message2);
end;
Procedure Secondclick;
begin;
MoveMouse(52,328);
Wait(3000);
ClickMouse(52,328,true);
end;
begin
repeat
Firstclick;
BeginTyping;
Secondclick;
until(false)
end.