Is there a procedure/function I could use to wait until a specfic string appears in the chatbox? I have tried looking through the functions list but can't find anything. Thanks![]()
Is there a procedure/function I could use to wait until a specfic string appears in the chatbox? I have tried looking through the functions list but can't find anything. Thanks![]()
though you would want a failsafe in there as it could be an endless loop without oneSimba Code:while not(IsChatBoxTextAnyLine('string',clBlack)) do
sleep(100);
are you talking about a line in the chatbox? or like a click to continue?
i'd just use a getcolor on different points as it'd be fastest
I use this to find out if someone is talking to my character when I'm away from the computer.. You can modify it and see if OldLine = 'text here' then.....
Simba Code:Procedure SomeoneTalked;
var
I: Integer;
begin
FixChat;
OldLine := TheLine;
if(LastChatter(TheName))then
begin
GetLastChatText(TheLine);
if OldLine <> TheLine then
try
For I:= 0 To 5 do
begin
PlaySound('C:\Users\Brandon\Downloads\MSN_Sound.wav');
wait(150);
end;
writeln(TheLine);
except end;
end else
begin
GetLastChatText(TheLine);
if OldLine <> TheLine then
try
For I:= 0 To 5 do
begin
PlaySound('C:\Users\Brandon\Downloads\MSN_Sound.wav');
wait(150);
end;
writeln(TheLine);
except end;
end;
end;
I am Ggzz..
Hackintosher
There are currently 1 users browsing this thread. (0 members and 1 guests)