i am currently working on a script for endless online and the attack button is control, i have successfully got the script to the point that i want it, but i don't understand how to have scar simulate hitting the Ctrl key. Any ideas?
i am currently working on a script for endless online and the attack button is control, i have successfully got the script to the point that i want it, but i don't understand how to have scar simulate hitting the Ctrl key. Any ideas?
I know the procedure is as follows...
But... I don't know the argument for control. You would push the up button like this...SCAR Code:KeyDown;
SCAR Code:KeyDown(VK_UP);
wait(1000 + random(500));
Keyup(VK_UP);
This is a total guess but could it be?
SCAR Code:KeyDown(VK_CTRL);
Don't forget to rep+ if I helped.
I think KeyDown(VK_CONTROL) is what you're looking for.
:-)
That is correct. It's in the scar munual.
Originally Posted by irc
Method your worked like a charm, thanks for the quick replies, ++Rep for both.
Edit-
Bah, new problem, i m trying to make a really simple script, The player determines the color with medicine dropper if scar finds it, it will begin KeyDown(VK_CONTROL), i looked through manual but i m having a bit of a problem.
SCAR Code:Procedure PickDaColour;
begin
KeyDown(VK_CTRL)
Wait(300)
SendKeys('p')
wait(300)
KeyUp(VK_CTRL)
MoveMouse(?,?)
wait(30)
ClickMouse(?,?,True)
end;
Try that?
Originally Posted by irc
tryed it, got two errors because CTRL->CONTROL, now i get syntx error at line 9, unless i m supposed to change question marks. teehee
Thanks very much in advance for everything
It would be helpful if you would post what you have so we can help fix it
Regards,
Bloody
There are currently 1 users browsing this thread. (0 members and 1 guests)