A request for Freddy

  • 2 Replies
  • 3611 Views
*

wgb14

  • Trusty Member
  • ****
  • Electric Dreamer
  • *
  • 143
A request for Freddy
« on: September 18, 2008, 02:35:04 pm »
Freddy A quick question!

Since you did the Hap Explorer some time ago, can I ask you how can I pass a Hypertext command from my main application/form to another form where the player is? I am trying this but it doesn't work> Any ideas?

Dim Player As New Haptek_Player
                    Player.AxActiveHaptekX1.HyperText = "\SetSwitch [figure= fullBod switch=" & Space(1) & location_anim(1).ToString & Space(1) & "state= start]"

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6832
  • Mostly Harmless
Re: A request for Freddy
« Reply #1 on: September 18, 2008, 03:09:17 pm »
Does this work ?

Player.HyperText = "\SetSwitch [figure= fullBod switch=" & Space(1) & location_anim(1).ToString & Space(1) & "state= start]"


An example of the way I have used it:

Say you have placed a player component on a seperate form called 'myform' and you have left it with the default name of 'AxActiveHaptekX1' then you should only need to reference the player like this:

myform.AxActiveHaptekX1.HyperText = "some haptek commands"

Hope that helps.

BTW, Are you using VisualBasic Express ?
« Last Edit: September 18, 2008, 03:27:07 pm by Freddy »

*

wgb14

  • Trusty Member
  • ****
  • Electric Dreamer
  • *
  • 143
Re: A request for Freddy
« Reply #2 on: September 18, 2008, 03:34:37 pm »
Got it Freedy many thanks for your reply. All I had to do was to move the

Dim player As New Haptek_Player outside the code that opens tha window. Now it works fine.

I am using the full version of VS 2008.

 


Useful new robot.
by MagnusWootton (Robotics News)
January 15, 2022, 01:50:10 am
Christmas Eve Launch
by frankinstien (Robotics News)
January 13, 2022, 08:08:13 am
Forest - The Show
by Zero (Robotics News)
January 09, 2022, 01:58:03 pm
I wonder how well GPT-3 will on run this.
by frankinstien (AI News )
December 20, 2021, 04:36:39 am

Users Online

78 Guests, 1 User
Users active in past 15 minutes:
HS
[Trusty Member]

Most Online Today: 82. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles