Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Ping at MousePos


  • Please log in to reply
No replies to this topic

#1
Sen7hillz

Sen7hillz

    Member

  • Members
  • 16 posts

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 ? 


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users