Hello!
I want to write a script that ping (like missing etc) in MousePos exactly 3 times
My current Code :
function pingAt(x, y)
SetCursorPos(x, y)
keybd_event(0x47, MapVirtualKey(0x47, 0), 0, 0)
mouse_event(0x0002, 0, 0, 0, 0)
mouse_event(0x0004, 0, 0, 0, 0)
keybd_event(0x47, MapVirtualKey(0x47, 0), 0x0002, 0)
end
It work fine but only 1 time, If i wrote something like this:
for i = 4, 1, -1 do pingAt(500, 500) end
It Ping only one time. What i did wrong ?
Sign In
Create Account

Back to top
Report







