Zabaware Support Forums

Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: knight2000 on December 08, 2012, 09:29:48 pm

Title: What is the name of Hal's input textbox?
Post by: knight2000 on December 08, 2012, 09:29:48 pm
I need to add some custom code that will allow the cursor to stay pinned inside Hal's input text box. Example if I ask Hal to open windows media player the cursor loses focus with Hals input text box. I want to add a "setFocus" command to the text box. Does anyone know the name of the text box? I've looked in the halScript but i only see "InputString" referenced but i believe that is the string name. Could someone please help?
Title: Re: What is the name of Hal's input textbox?
Post by: sybershot on December 31, 2012, 07:20:49 pm
I'm not sure if this will help but it might hopefully help you in your quest.

When designing a gui skin this is code I manipulate for the input box, though there does not appear to be a name.

Code: [Select]
;Coordinates and color of User's input box   
SkinUserBGColor=000000
SkinUserFGColor=11316396
SkinUserFontName=Arial
SkinUserX=281
SkinUserY=32
skinuserWidth=242
skinuserHeight=48
Title: Re: What is the name of Hal's input textbox?
Post by: cload on January 01, 2013, 07:38:47 am
Hi all,

it looks like the user input box uses a coordinate location and not a name.
The BG color looks like if that would be white.
The FG color looks like that would be black or a dark color.
The font name seems to be fairly obvious arial.
User X in user Y seems that this might be what you're looking for they are the coordinates for the cursor.
User width an height is the length of the box and the height of the box.

Sincerely, I, myself just programmed my Dragon NaturallySpeaking to revert back to ultra Hal when I say the word computer, that makes the cursor jump back into ultra Hal's input text box.

Cload
PS it's a Star Trek thing, that's what they did just before talking to the computer, yes I know it sounds so un-original.
Title: Re: What is the name of Hal's input textbox?
Post by: Carl2 on January 21, 2013, 10:24:53 am
  I may be wrong but I know the brain inputs the UserInput referring to Hals input text box.
Carl2