PDA

View Full Version : disable lights ?



courtjester199
12-04-2005, 07:13 AM
Hi!

Does anyone know how to disable the lights during a procedure?
...I'm coding C

spaceimpact33
12-04-2005, 09:56 AM
@courtjester199
Use send_message(ULONG msg, ...); with the following messages. (the names are self explanitry.)

/* lights */
#define MSG_LIGHTS_ON (0x1b5c)
#define MSG_LIGHTS_OFF (0x1b5d)
#define MSG_TIMED_LIGHTS_ON (0x1f5)
//#define MSG_SET_LIGHTS_OWNER (0x1a2f) // 3310+

Hope this helps.
Spaceimpact33 ;)

courtjester199
12-04-2005, 10:59 AM
hmm, I already tried that. But it didn't work....

Is the message I send processed immediately, or is it queued? I'm not familiar with the messaging system yet.

spaceimpact33
12-04-2005, 11:36 AM
Well all messages are queued depending on the amount of messages being sent, but most messages will be processed instantly.
As for the led’s you could try using;
For on; own_set_led(1);
For off; own_set_led(0);

Hope this helps.
Spaceimpact33 ;)

courtjester199
12-04-2005, 04:13 PM
Thanx mate!
...own_set_led works excellent :)