View Full Version : typesend help please :duh:
syn7hetic
05-31-2008, 05:17 AM
Well This is more of a scripting help but i cant post in that section(duno why)
im looking to make the script type something but TypeSend('OMFGBBQHAX'); uses enter, is there a " Type('syn7hetic'); " ? that doesnt use enter ie just leaves it in the chat box, or even better uses the tab key?
any help would be great thnx :)
Method
05-31-2008, 05:21 AM
procedure JustType(Text: string);
var
S: string;
I: Integer;
C: Byte;
Shift: Boolean;
begin
S:= 'ABCDEFGHIJKLMNOPQRSTUVWXZ' + '~!@#$%^&*()_+{}|:"<>?';
for I:= 1 to Length(Text) do
begin
Shift:= (Pos(Text[i], S) > 0);
if(Shift)then
begin
KeyDown(VK_SHIFT) Wait(40 + Random(40));
while(Pos(Text[i], S) > 0)and(I <= Length(Text))do
begin
C := GetKeyCode(StrGet(Text, I));
TypeByte(c);
I:= I + 1;
if(I > Length(Text))then Break;
end;
end;
if(Shift)then
KeyUp(VK_SHIFT);
Wait(40 + Random(40));
if(I <= Length(Text))then
begin
C:= GetKeyCode(StrGet(Text, I));
TypeByte(C);
Wait(40 + Random(40));
end;
end;
end;
That should work as I've removed the part of the procedure that hits the enter key, so that should just type the text in.
syn7hetic
05-31-2008, 06:11 AM
say i wanted to put that in the marked places would i just use the procedure or load it in, it also needs two diffrent texts would i need two procedure's?
sory for all the questions im just starting out and its all abit much so far
program New;
Procedure Looking;
Begin
WriteLn('Serching');
Mouse(303, 256,4,1,true);
wait(200+Random(200));
TypeSend('syn7hetics script'); // Here
wait(200+Random(200));
WriteLn('Found Something');
Mouse(303, 256,4,1,true);
wait(200+Random(200));
TypeSend('wefoundit'); //And Here
wait(200+Random(200));
WriteLn('Found Something els');
Mouse(303, 256,4,1,true);
wait(200+Random(200));
WriteLn('done');
end;
Method
05-31-2008, 06:13 AM
I'm not quite sure what you're trying to do. Are you just trying to write text in the chat box? Or are you trying to do something else? Please elaborate and hopefully we can help you out.
syn7hetic
05-31-2008, 06:19 AM
@ method yeh basicly i dont want it to be sent from the runescape chat, so it just stays down where you type but you dont acutaly send it
ie; Typesend does not work because it makes Rs think you hit enter.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.