"swzoh" <[EMAIL PROTECTED]> wrote:

>http://www.autohotkey.com/docs/scripts/WinLIRC.htm

Aha.  I had that page saved away on my HD.  

>OnMessage():
>http://www.autohotkey.com/docs/commands/OnMessage.htm

Interesting: the autohotkey figured out how to register a callback
routine to fire when a message comes in.
Neat.  

I'll look into replicating OnMessage in dll, 
but also a service in net plugin: the equivalent of ConnectToAddress
routine and something to encapsulate:

===========================

if DllCall("Ws2_32\WSAAsyncSelect", UInt, socket, UInt,
ScriptMainWindowId, UInt, NotificationMsg, Int, FD_READ|FD_CLOSE)
{
MsgBox % "WSAAsyncSelect() indicated Winsock error " .
DllCall("Ws2_32\WSAGetLastError")
ExitApp
}
and

OnMessage(NotificationMsg, "ReceiveData")

===========================

used maybe like ths:

local iSocket = net.connect(host, port)
net.listen(iSocket, pp_callback_command, "read close", ...)

>> I've run up a tiny glue app between winLirc and PP using ppCOMserver
>> which needs testing, if you're interested.
>> 
>> BTW I haven't found any docs on how you send stuff from an app via
>> winLirc to an IR transmitter.  You run into same?
>
>Neither do I. Does WinLIRC have that ability btw?

Only hint I have so far that it's possible is line iat bottom of 

  http://winlirc.sourceforge.net/vb.html

"Sending commands should be as simple as:...."

  "sendstr = (password & " " & remotename & " " & buttonname & " " &
times_to_repeat & vbLf)
    Winsock1.SendData (sendstr)"

But otherwise not documented....







Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to