ok ive created a dtm, now how do i move the mouse humanly like to my dtm and make it click it?
Printable View
ok ive created a dtm, now how do i move the mouse humanly like to my dtm and make it click it?
no problem.Code:if(finddtm(DTM,x, y, x1, y1, x2, y2)then
Mouse(x, y, 2, 2, true)
what about this?
SCAR Code:MMouse(xt, yt, 0, 0);
Wait(100+Random(50));
GetMousePos(xt, yt);
Wait(100+Random(50));
Mouse(xt, yt, 5, 5, True);
thats what
Mouse(x,y,4,4,true) does
your just making it longer =p
(how did you learn DTMS? My tut? )
yea your tut, look at this dude, i just got done an autologin script using dtm's
SCAR Code:program New;
{.include srl/srl.scar}
var login1,login2,clickhere:integer;
const
username = 'username goes here'
password = 'password goes here'
procedure login;
begin
login1 := DTMFromString('78DA633CCDC8C0A00CC468E03F108344FF0301E372204B1D530D03540D985E0164C91150F303C85222A0E61B11765D05B2B4F1AB01004D8F0ACD');
if FindDtm(login1, x, y, 0, 0, 750, 480) then
mouse(x, y, 20, 9, true);
Wait(1000+Random(500));
typesend(username);
Wait(1000+Random(500));
typesend(password);
Wait(2000+Random(500));
login2 := DTMFromString('78DA63D467646070046234F01F8841A2FF81805101C8B2C554C3005503A6416A5C08A85101B2DC08A83127428D3D90E5845F0D00D3C107AD');
if FindDtm(login2, x, y, 0, 0, 750, 480) then
mouse(x, y, 20, 5, true);
Wait(6000+Random(1000));
clickhere := DTMFromString('78DA639CCCC8C01000C468801F8841A2FF818' +
'0910FC852C654C3005503A6416AEA08A8F942A41A4276B513A166' +
'3E61BB007E440A18');
if FindDtm(clickhere, x, y, 266, 287, 500, 382) then
mouse(x, y, 20, 5, true);
end;
begin
setupsrl
login
end.
is it good?
yes but some comps take a long time to load the 2nd login scren
make it do something like
repeat
Wait(4000)
I:=I+1
Until(FindDTM(Clickhere) or (I>10)
if (I>10) then
Beign
Writeln('ERROR')
end;
Try looking at some of the SRL login procedure code =)prety good though
yohojo8, what about.....although, i tried useing it, and couldn't get it to work.....Quote:
function ClickMSDTM(DTM: Integer): Boolean;
By: WT-Fakawi
Description:
Clicks DTM in main screen.