Adding a Haptek Player to a Visual Basic project

Adding a Haptek Player to a Visual Basic project.

This is a short tutorial which covers a method of adding the Haptek Player to Visual Basic projects.

I have assumed that you have already installed the Haptek Player and Visual Basic Express and have a rough idea of how to use the VB environment.

1. Get VB up and running and start a new project. Name your project and sort yourself out so you get your basic Form1 showing.

Go to 'Tools' and select 'Choose Toolbox Items' - this will take a while to load depending on what you have installed on your computer.

Choose tool box items

2. Click on the 'COM Components' Tab and wait a while for them all to load. Near the top you should find 'ActiveHaptekX Control'. Click on the tick box and select it, then press OK.

Tick Haptek Control

3. Now if you go to your toolbox you should be able to find the Haptek entry - mine appears under 'All Windows Forms'.

Now it appears in the Tool Box

4. Click on the 'ActiveHaptekX Control' item in the tool box and then go across and click on your Form1 some place. A Haptek window should appear and you can then adjust it's size as you wish. Congratulations you now have a Haptek player in your project.

Now place it on your form.

5.Optional : you can scale the Haptek player to the size of it's containing window by 'docking' it fully. To do this select the Haptek control on your form and look in the 'Properties' menu for 'Dock'. Click on the small menu arrow beside it and a little submenu will pop up with squares on it...

Docking the player.

6. Click the larger central square and it will set dock to 'fill'. Now your player occupies the form fully which means it will expand and contract with the window.

Like magic it fills the form.

Okay great now what do I do with it you ask ?

I've put together a simple example project to show some of the ways you can control the player. It can be found here : HaptekDemo1 Just unzip it and drop the resulting folder in yourVB 'Projects' folder and then you can load it when you are ready.

Then the rest is up to you ! Get yourself the Haptek SDK or Dr Benway's guide (near the bottom of the first page) and familiarise yourself with Haptek commands. The demo project shows a few examples of sending things to the Haptek control. Good luck !

The New Species (Project Progress)
by Korrelan (General Project Discussion)
Today at 09:29:55 am
Petoi: OpenCat
by infurl (Home Made Robots)
Today at 03:43:12 am
what is the end game for AI ?
by infurl (General AI Discussion)
Today at 03:07:46 am
Asilomar AI Principles
by Zero (Future of AI)
September 18, 2020, 09:11:38 am
What's everyone up to ?
by ivan.moony (General Chat)
September 17, 2020, 08:58:49 pm
unidentified aerial phenomena
by infurl (General Chat)
September 17, 2020, 08:15:22 am
Super intelligent AGI figuring out human values
by infurl (Future of AI)
September 17, 2020, 07:49:43 am
gen 3 skills for the LivinGrimoire
by yotamarker (General AI Discussion)
September 15, 2020, 10:40:55 pm
by infurl (AI News )
September 13, 2020, 12:56:47 am
Battle dogs!
by LOCKSUIT (Robotics News)
September 12, 2020, 04:27:46 pm
Artificial Intelligence Easily Beats Human Fighter Pilot in DARPA Trial
by LOCKSUIT (AI News )
September 12, 2020, 04:25:46 pm
Important memristor breakthrough.
by infurl (AI News )
September 07, 2020, 12:57:06 am
AllenAct for research in embodied AI
by infurl (AI News )
September 01, 2020, 01:27:35 am

Users Online

144 Guests, 0 Users

Most Online Today: 149. Most Online Ever: 528 (August 03, 2020, 06:16:11 am)