Jump to content
Paradoxium

Kernal Mode Commands Added?

Recommended Posts

Yes they exist. I dont know if there is any documentation but i would assume you use them like Delphi.

 

Here is an example i used posted by wanted quoted from neilsie95

**Note in order to use the kernel you must enable API calls in the options dialog in scar

[sCAR]program New;

 

function QueryPerformanceFrequency(out Frequency: Int64): LongBool; external 'QueryPerformanceFrequency@kernel32.dll stdcall';

function QueryPerformanceCounter(out Counter: Int64): LongBool; external 'QueryPerformanceCounter@kernel32.dll stdcall';

 

procedure MarkTime(var Time: Int64);

var

Freq: Int64;

begin

if QueryPerformanceFrequency(Freq) then

QueryPerformanceCounter(Time)

else

Time := GetTickCount;

end;

 

function TimeFromMark(Mark: Int64): Double;

var

Freq, Now: Int64;

begin

if QueryPerformanceFrequency(Freq) then

begin

QueryPerformanceCounter(Now);

Result := ((Now - Mark) / Freq) * 1000;

end

else

Result := (GetTickCount - Mark);

end;

 

var

Time: Int64;

begin

MarkTime(Time);

WriteLn('Straight from MarkTime took ' + FloatToStr(TimeFromMark(Time)) + ' ms.');

Wait(10);

WriteLn('After another Wait(10) we are ' + FloatToStr(TimeFromMark(Time)) + ' ms away from the mark.');

end.[/scar]

Link to comment
Share on other sites

Thank you for your response! So how would I be able to send mousemovements, clicks, and keystrokes? lol, I am not an advanced scripter :/

 

btw I'm trying to get passed xtrap... it blocks all user32.dll Keystroke input

Edited by Paradoxium
Link to comment
Share on other sites

Well see that takes a custom driver made to emulate mouse hardware. Scar currently has quite a few mouse functions available though. you should also install OSI and check under the /Divi folder for the Mouse.scar file as it contains many mouse functions along with the mouse functions there is a file that has keyboard functions to. I dont believe SCAR has a silent mouse atm but i believe Freddy mentioned bringing it back in SCAR 4.0.

Link to comment
Share on other sites

Thank you for your response! So how would I be able to send mousemovements, clicks, and keystrokes? lol, I am not an advanced scripter :/

 

btw I'm trying to get passed xtrap... it blocks all user32.dll Keystroke input

 

Lol nothing gets past xtrap. I've tried many ways, and tried very hard on that. Fiesta uses it :P. Along with a bunch of games that do. I've tried PostMessage, every type of key sending I could conjure, and libraries. Bothered Freddy, and the forums with it, lol. The only way to get around it, is to use HOOKING, or DLL modifying, and all that wonderful stuff (has a slight clue but forgets). Once I discovered that, it was all in C++, or w/e languages. But was interesting to read about. Maybe if I was a master coder I could've ported the code to SCAR, but I digress.

 

But if you ever want to tackle C++ here's a nice website I read a couple chapters from, ... weeks ago.

Edited by LordJashin
Link to comment
Share on other sites

Lol nothing gets past xtrap. I've tried many ways, and tried very hard on that. Fiesta uses it :P. Along with a bunch of games that do. I've tried PostMessage, every type of key sending I could conjure, and libraries. Bothered Freddy, and the forums with it, lol. The only way to get around it, is to use HOOKING, or DLL modifying, and all that wonderful stuff (has a slight clue but forgets). Once I discovered that, it was all in C++, or w/e languages. But was interesting to read about. Maybe if I was a master coder I could've ported the code to SCAR, but I digress.

 

But if you ever want to tackle C++ here's a nice website I read a couple chapters from, ... weeks ago.

 

oh dear. Looks like Imma have to hack crossfire to create this farmbot lol -_-, but hey if I dont release it to public...it will never get patched!

 

If you have time... Would you be interested in turning my scar script into a C++ hook? It is really basic. Would probably take me a couple weeks to figure it all out but yeah you would be saving me a lot of time :D

Link to comment
Share on other sites

oh dear. Looks like Imma have to hack crossfire to create this farmbot lol -_-, but hey if I dont release it to public...it will never get patched!

 

If you have time... Would you be interested in turning my scar script into a C++ hook? It is really basic. Would probably take me a couple weeks to figure it all out but yeah you would be saving me a lot of time :D

 

Google is your best friend. Besides, you probably don't even know what a hook is right now :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...