| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | Re: RE: [ECS] Keyboard Event Scott Danks Wed, 23 Jun 1999 08:45:29 -0500 |
Wed, 23 Jun 1999 08:45:29 -0500 I think Mark said in an earlier thread that he would be on vacation through 6/22 (*today*). (Which explains why I have not gotten a lot of mail the last week).. . I look forward to coming in to work and reading 10-15 emails about ECS every morning. (Yes I should get a life. BTW I will get to see Leonard Nimoy this Sat. He is doing a StarTrek convention here). >>> "Michael David" <michael@michaeldavid.com> 06/23 12:18 AM >>> Hi Kevin! Hmmm.... Maybe it's ME who missed something. So far, I only use this item make another window active, which I do be setting the state of this item to "move". In my experience with this item, albeit limited, I had once tried to set the item active, and found that I got the error. In looking at the docs, the only reference I saw was using that state to test whether a windows was active. So, I assumed (you know what they say....) that was the way it was. Since my needs were satisfied at that time, I never delved further - until tonight. Now - I see the problem. There appears to be no way to make that item send the selected key from an event, since "active" is not a valid selection. However, as you mentioned, setting that item to "active" from the group page does indeed make the keystroke happen. Sorry for misleading you Kevin! :) Oh Mark? Are we missing something here? Cheers! Michael David michael@michaeldavid.com -----Original Message----- From: Kevin Keast [mailto:libertyc@prodigy.net] Sent: Tuesday, June 22, 1999 11:17 PM To: ecs-list@netbloc.com Subject: RE: [ECS] Keyboard Event Michael, I must really be missing something here. The following is straight from the documentation on the Keyboard-Event Item: "This Item may be used to simulate any keyboard/mouse activity in any Window (USE WITH CAUTION). It may also be used to determine if a specific Window is active." Try and create an Keyboard-Event item. It asks for Window a key and if you desire even mouse activity to be simulated. Additionally, as I mentioned before you CAN change the items state from the group editor. Just not the event editor. To send any program a key you should be able to set this item to a state<Again this is right from the docs. If I can't use this, how would I send key strokes to individual windows? Kevin > -----Original Message----- > From: Michael David [mailto:michael@michaeldavid.com] > Sent: Monday, June 21, 1999 1:07 AM > To: ecs-list@netbloc.com > Subject: RE: [ECS] Keyboard Event > > > Hi Kevin! > > Sorry - I misread your message. > > Still, a similar answer though. :) The state of "active" is only used to > test the current state of keyboard-event to see if a specific window is > active. So, you can do a: > > If Keyboard-Event is Active > > But you can't do a: > > Do Keyboard-Event Set Active > > Cheers! > > Michael David > michael@michaeldavid.com > > > -----Original Message----- > From: Kevin Keast [mailto:libertyc@prodigy.net] > Sent: Sunday, June 20, 1999 10:53 PM > To: ecs-list@netbloc.com > Subject: RE: [ECS] Keyboard Event > > Keyboard Event NOT Keyboard Key. > > I created two "keyboard events" that would stop/start winamp on my ecs > machine. I used the "CLASS:" to identify the window associated to Winamp. > > To stop Winamp you send it a X key to start is a V key I think. > > Create a keyboard-event type item. > > You cannot set it to an active state using the event editor but you CAN > change its state in the Group Editor. > > > -----Original Message----- > > From: Michael David [mailto:michael@michaeldavid.com] > > Sent: Sunday, June 20, 1999 8:23 PM > > To: ecs-list@netbloc.com > > Subject: RE: [ECS] Keyboard Event > > > > > > Hi Kevin! > > > > You can't set Keyboard-Key to "active"; this can only be done by ECS. > > > > When any key is pressed on the keyboard, the state of > Keyboard-Key changes > > to "active" momentarily. This can be used for ECS to "know" when > > someone is > > at the keyboard. The most common use for this item is for a > > "sign of life" > > event, where ECS looks at many of it's various interfaces to see if us > > humans are present. > > > > Why would you want to set Keyboard-Key to active anyway? > > > > Cheers! > > > > Michael David > > michael@michaeldavid.com > > > > > > -----Original Message----- > > From: Kevin Keast [mailto:libertyc@prodigy.net] > > Sent: Saturday, June 19, 1999 11:27 AM > > To: ECS > > Subject: [ECS] Keyboard Event > > > > Would anyone know why I can't set the state of a keyboard-event > to ACTIVE? > > > > I am in the event editor and try to set the state of a keyboard event to > > active state. I don't even have the "active" state in the pull > down menu. > > If I force it I get an error like illegal state name. > > > > I can, however set the item to the active state in the group > editor and it > > works fine. > > > > I am using a fairly recent version of ECS: 4.0.025 > > > > Thanks in advance > > > > > > Kevin > > > > > > > > >