Hi Christian,

I’ve used WinHIDMBS successfully in the past with the code sample below but 
since the update that added Pollsize to the Listener, it seems to go deaf and 
then hang in the first Do Loop.

Sub HIDListen()

  #If TargetWin32 then
    Dim S as String
    Dim i as Integer
    Dim m as MemoryBlock
    
    if WinHIDConnect.Product="Griffin PowerMate" then // Find Device
      if WinHIDConnect.Connect then
        
        call WinHIDConnect.InstallListener 9
        do
          // Connect works, then seems to go deaf and loop here until hang
          m=WinHIDConnect.PollMemory
          app.YieldToNextThread
        loop until m<>Nil
        s=""
        for i=0 to 5
          s=s+str(m.Byte(i))+" "
        next
        
      end if
    end if

    Do
      app.YieldToNextThread
    Loop Until AllowNewData=True
    
    ReceiveDevData=s
    AllowNewData=False // Process received data before accepting new
    NewCycle //Reset and start again

  #endif


TIA,
—Christopher
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to