Jump to content

Need VB Help

- - - - -

  • Please log in to reply
1 reply to this topic

#1
AfroJack

AfroJack

    Newbie

  • Members
  • PipPip
  • 24 posts
Hello, I've made a program on VB to macro on a game, basically it repeats something over and over, constantly moving mouse location and clicking. If the program gets out of sync with the game ( stops doing what it's supposed to be doing and just randomly clicking in places ) I would like to attach a F5 key or something, to close the program. How do I do this? I tried googling the code, something to do with asynckeystate or something, but I tried the code and it wouldnt work. I need the code to work while the window is inactive too, can anyone help me ? :D

#2
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
I think you will need to deal with global hooks.
Latinamne loqueris?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users