willbur201
08-11-2017, 07:56 PM
Hey guys, I'm writing a grinding bot for BDO and for some reason, the client isn't accepting keypresses(but it does take mouseclicks/holds).
Heres the example procedure, which unlocks and locks the mouse to the screen( or it should, but it doesnt.)
procedure ulmouse(x:integer);
begin
//locks, unlocks mouse based on milliseconds.
keyDown(17);
wait(x);
keyUp(17);
end;
I noticed that if the chat window is open, the keys do show up in there(if its a letter key), but they do not work on hotkeys. why? :(
I've also tried typebyte(VK_CONTROL);
Heres the example procedure, which unlocks and locks the mouse to the screen( or it should, but it doesnt.)
procedure ulmouse(x:integer);
begin
//locks, unlocks mouse based on milliseconds.
keyDown(17);
wait(x);
keyUp(17);
end;
I noticed that if the chat window is open, the keys do show up in there(if its a letter key), but they do not work on hotkeys. why? :(
I've also tried typebyte(VK_CONTROL);