SRL Archive - News and General

Question with SCAR problem


Kazzooey

2011-04-03 08:08:34

Well it seems some of you know a bit about scar scripting and I'm in a bit of a pickle here. I'm trying to make a script for Maplestory, not runescape. And SCAR just won't let me press any keys down. I'm trying to hold down the "shift" button for about 20 seconds, then tap the "right arrow" button, then hold shift for 20 more seconds, then tap the "left arrow" button and then repeat the process to unlimited. This is what I had, (sorry not much of a scripter :P)
program MapleSCAR;

begin
KeyDown(16);
Wait(20000);
KeyUp(16);
Wait(1000);

KeyDown(39);
Wait(100);
KeyUp(39);
Wait(1000);

KeyDown(16);
Wait(20000);
KeyUp(16);
Wait(1000);

KeyDown(37);
Wait(100);
KeyUp(37);
Wait(1000);

repeat

end.


Now I know I'm DEFINITELY doing something wrong here but I really cant figure it out. Basically what I'm trying to do is:

Hold Shift 20 Seconds
1 second wait
Tap Right Arrow 1/10 second
1 second wait
Hold Shift 20 Seconds
1 second wait
Tap Left Arrow 1/10 second
1 second wait
Repeat forever

If anyone could write me a simple script for that or tell me how to fix it, or hell do both, I would be most grateful [:

Sex

2011-04-03 08:31:49

We now use Simba (click to download), which is created and maintained by the community.

Anyways, this should work.
procedure TypeKey(Key : Word; Duration : integer);
begin
KeyDown(Key);
Wait(Duration);
KeyUp(Key);
end;

begin
repeat
TypeKey(VK_SHIFT, 20000);
Wait(1000);
TypeKey(39, 100);
Wait(1000);
TypeKey(VK_SHIFT, 20000);
Wait(1000);
TypeKey(37, 100);
Wait(1000);
until(false);
end.
It is advisable to use random wait times as well to simulate human behavior.

Dgby714

2011-04-03 10:57:20

I'm gonna have to say MapleStory has some protection against this stuff.

Kazzooey

2011-04-03 14:22:11

Darn, it didn't work. And yea i figured Maplestory had protection from it. Do any of you know how I could bot in MS then?

Home

2011-04-03 14:49:26

From: Kazzooey
Darn, it didn't work. And yea i figured Maplestory had protection from it. Do any of you know how I could bot in MS then?


Yep. Go in to CheatEngine forums. There is couple bot programs. Or just hack it :P

(Google)

~Home

Brandon

2011-04-03 14:49:34

From: Kazzooey
Darn, it didn't work. And yea i figured Maplestory had protection from it. Do any of you know how I could bot in MS then?


Umm I believe the problem could be that it is like SendKeys in c++… It can only sendkeys to the active window.

Typesend and sendkeys only sendkeys to a window that has focus and is active so u need to SetFocus() and Activate() the window then send keys but u also have to make sure the mouse is pointed directly at the window you want to send keys to.

If that doesn't work then learning a native language would help u