Jump to content

Link a program in vb to an external program.

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Jesusz0r

Jesusz0r

    Newbie

  • Members
  • Pip
  • 4 posts
Hi, as the title says i want to know how to connect my program in vb with an external program... for example i make a program in vb and i want to connect it with google chrome

thanks!

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
It entirely depends on what you want to do. The program likely is not written to allow external control over it (i.e. an API for manipulating browser functioning) and you will have to manually use the Win32 API to manipulate the browser. If settings are involved, you could likely change those with an external program. It depends.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
Jesusz0r

Jesusz0r

    Newbie

  • Members
  • Pip
  • 4 posts

Alexander said:

It entirely depends on what you want to do. The program likely is not written to allow external control over it (i.e. an API for manipulating browser functioning) and you will have to manually use the Win32 API to manipulate the browser. If settings are involved, you could likely change those with an external program. It depends.

What i really want to make is a program that controls your mouse and keyboard to play automatically a game (Im really trying to learn how) thats why im asking, so if there is any chance to link my program (made in visual basic) to use the game functions i would appreciate if you tell me how, or if there is any other program better than visual basic to do this.

Thank you again and as i said im trying to make it thats why im researching some information about this

#4
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
You would have to hook in to the Window with the Windows API, and perform various checks to do this. If your game requires predetermined clicking or typing, you could always use a macro program or scripting language (i.e. AutoIT, a popular choice) and it may even provide accurate timing. This will require a fair amount of work either way however, something such as AutoIT would greatly ease the functioning of the program.

Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#5
Jesusz0r

Jesusz0r

    Newbie

  • Members
  • Pip
  • 4 posts

Alexander said:

You would have to hook in to the Window with the Windows API, and perform various checks to do this. If your game requires predetermined clicking or typing, you could always use a macro program or scripting language (i.e. AutoIT, a popular choice) and it may even provide accurate timing. This will require a fair amount of work either way however, something such as AutoIT would greatly ease the functioning of the program.

Alexander.
Last 2 question. Does AutoIT modify the client? Do you have any tutorial?
Thank you for your fast response.

#6
Jesusz0r

Jesusz0r

    Newbie

  • Members
  • Pip
  • 4 posts
Last 2 questions, if i use AutoIT it inject packages to the client? do u have any tutorial for it?
Thanks for your fast response! :)

#7
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200

Jesusz0r said:

Last 2 questions, if i use AutoIT it inject packages to the client? do u have any tutorial for it?
Thanks for your fast response! :)

It'll hook on to the process, it will not modify the original executable. As for tutorials I've not needed to do something with it in many many years, I am sure there are quite a few online.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users