PDA

View Full Version : Simple typing



Bottingclient
02-02-2016, 11:46 AM
I have setup this function but for it wont press it(enter) help would be appreciated to make it press the enter button.


function AutoTele(): Boolean;
begin
Wait(10000 + Random(4000));
sendkeys ('::kbd')
WriteLn('You have teleported kbd');
end;

the bank
02-02-2016, 12:23 PM
I have setup this function but for it wont press it(enter) help would be appreciated to make it press the enter button.


function AutoTele(): Boolean;
begin
Wait(10000 + Random(4000));
sendkeys ('::kbd')
WriteLn('You have teleported kbd');
end;

Alright..so couple of options here.

1) Use SRL-6's "TypeSend" function which takes a boolean as its second parameter - whether or not to press enter

ie. TypeSend('::kbd', true);

OR

2) Send the enter key with KeyDown

ie:

SendKeys('::kbd');
KeyDown(13);
Wait(50 + Random(70));
KeyUp(13);

Note that if you use SMART I think you might have to change the 13 to 10.