PDA

View Full Version : OK... newbie is stumped



SteveV
October 13th, 2002, 12:55 PM
On 2001-07-02 17:14, ScottK wrote:
...Also -- is there any way to stash the contents of a text register back into something other than a register (Say, oh a "Sayit" command)? Or to make the contents of a command (or anything) dependent ON a register? Or am I getting ahead of things?


Yes--try referrencing the register using [reg x] or [treg x] (for text registers)where x equalls the register number you want to use.

For example: if Register 1 equals 10, entering the following string (without quotes) in the OSD plugin: "The Register 1 value is currently [reg 1]" would result in the following osd message:

"The Register 1 value is currently 10"

I'm not sure if all plugins support the [reg x] variable but it should be easy enough to determine.

Good luck -- Steve

Mark F
October 13th, 2002, 12:55 PM
Welcome to Girder!

Since Ron is probably sunning himself right now :smile:, I'll attempt an answer.

There are 25 numeric registers and 25 text registers. They are global or system-wide in scope, not command based.

The compare command's UI is not intuitive. (sorry, Ron)

I will use an example to try to explain it.
Suppose you are using reg2 to hold a value that must be compared to 13.

Use the Girder command "Check Reg." with the register field set to 2 and the icon/device field set to "== 13" without the "" around it. For the TRUE portion, use the top browse button to choose the command you wish to execute. For the FALSE portion, use the bottom browse button to choose the command.

Be SURE to press the Apply button when you are done! I've wasted HOURS finding things I changed and forgot to Apply. :sad:

I hope this helps.

ScottK
October 13th, 2002, 12:55 PM
The concept of registers is fantastic. My questions are 1) How do I read them once I set them? 2) How do I act upon the information once I acquire it?

I've looked through some code, but haven't been able to find out. The BROWSE buttons are active when the registers are being set -- does that mean there are 25 registers per command? I keep getting "invalid compare" (or something like it.) when I try to check things. Where are the results of the compare stored?

Hm. Help?

ScottK
October 13th, 2002, 12:55 PM
OK. That should do it. Again, thanks to Ron for the creation, but the UI is definitely an issue. Way cool. I was getting close, but it never occurred to me to use the equivalence operator. Duh.

And yes, the APPLY issue caught me a couple of times as well.

Also -- is there any way to stash the contents of a text register back into something other than a register (Say, oh a "Sayit" command)? Or to make the contents of a command (or anything) dependent ON a register? Or am I getting ahead of things?


Thanks!


<font size=-1>[ This Message was edited by: ScottK on 2001-07-02 17:18 ]</font>