To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.spyboticsOpen lugnet.robotics.spybotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Spybotics / 238
237  |  239
Subject: 
Re: Spybot MessageEvent
Newsgroups: 
lugnet.robotics.spybotics
Date: 
Wed, 29 Oct 2003 16:47:27 GMT
Viewed: 
6149 times
  
In lugnet.robotics.spybotics, Joseph Woolley wrote:
<snip>

I figured I could do the same thing with the IR messages...

   SetEvent(MessageEvent, Message(), EVENT_MESSAGE);

and:

   monitor (EVENT_MASK(MessageEvent)) ...etc...

However, this doesn't work.  So I dug around a bit in the header and
help files and was able to get it to work with this:

   #define MessageEvent 2
   asm { 0x93, MessageEvent, 9, 13 };

and:

   monitor (EVENT_MASK(MessageEvent)) ...etc...

The official API contains the following code

// these all correspond to using VLL() as the source
#define EVENT_TYPE_ENTRY_FOUND 4
#define EVENT_TYPE_MSG_DISCARD 6
#define EVENT_TYPE_MSG_RECEIVED 13
#define EVENT_TYPE_VLL_MSG_RECEIVED 14
#define EVENT_TYPE_ENTRY_CHANGED 15

Compiling

SetEvent(MessageEvent, VLL(), EVENT_TYPE_MSG_RECEIVED);

yeilds

006 sete       2, 9, 13              93 02 09 0d

which is exactly the same as your asm statement.

Hope this helps,

John Hansen



Message is in Reply To:
  Spybot MessageEvent
 
I realize that I may be reinventing the wheel with this, but I was not able to find another way of accomplishing the same thing. After setting up a VLLEvent using: #define VLLEvent 1 SetEvent(VLLEvent, VLL(), EVENT_TYPE_VLL_MSG_RECEIVED); then (...) (21 years ago, 29-Oct-03, to lugnet.robotics.spybotics)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR