Multiple HID devices

What features you would like to have in HIDmacros?
Post Reply
sswcharlie
Posts: 4
Joined: 07 Feb 2013, 03:46

Multiple HID devices

Post by sswcharlie » 07 Feb 2013, 03:52

Hi

Could hidmacros be used for:

where 2 or more USB HID RFID readers are being used the macro adds a prefix to data being transmitted giving the USB identification of reader.

So with reader #1 dat to Excel columnA, number 2 to column B etc. with a prefix.

Comments would be appreciated.

Thnaks and regards
Charlie Harris
New Zealand

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Multiple HID devices

Post by admin » 07 Feb 2013, 08:01

How the reader appears in the system? Is it keyboard in windows?
If so you should be able to define macros for its keys.
If it's some special HID device HIDmacros won't be probably able to read it.
Just try it - run HIDmacros and see if readers appear in Devices tab. And if some data from reader go to test section on macro tab.
Petr Medek
LUAmacros author

sswcharlie
Posts: 4
Joined: 07 Feb 2013, 03:46

Re: Multiple HID devices

Post by sswcharlie » 08 Feb 2013, 07:10

HI

Thanks for your quick response.

I have downloaded the software. However when I open it comes up with a message -

Exception EOleSysError in module HIDMacros.exe at 0007ECD5.
Error accessing the OLE registry.

Unfortuanately I am using Win7. Could this be a problem.

The device shows on Human InteraceDevice on Device manager. with MS driver 6.1.7601.17514 and location Port_#0002.Hub_#0005

How do I fix the error ?

Thankyou

Charlie

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Multiple HID devices

Post by admin » 08 Feb 2013, 07:51

Win7 is not a problem, I'm using it too.
If you use UAC in W7 run HIDmacros as administrator for the first time. It needs to register some COM-stuff into registry.
Then you can execute it as regular user.
Petr Medek
LUAmacros author

sswcharlie
Posts: 4
Joined: 07 Feb 2013, 03:46

Re: Multiple HID devices

Post by sswcharlie » 08 Feb 2013, 22:25

Hi

Well done. Worked immediately. Thanks.

My device shows on the report and I can rename ok.

I am now learning the sripting process. I need some help. Is someone able to give me script to:
"When key A is pressed the keyboard #1 will place text 'Hello' into open spreadsheet called .....TestCode.xls,Shee1,D1"

I am just unfamiliar with the scripting and once I get something similiar to what I need I should be ok. But looks very good so far.

Thankyou
Charles

sswcharlie
Posts: 4
Joined: 07 Feb 2013, 03:46

Re: Multiple HID devices

Post by sswcharlie » 11 Feb 2013, 03:54

HI

Is anyone able to give me some guidance for my first HIDmacro.
Just asimple example of code would be great. I am not into the aircaraft side. Just want to transfer info in to MS Excel as per m;y earlier post.


Thankyou

Charlie Harris
New Zealand

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Multiple HID devices

Post by admin » 11 Feb 2013, 08:17

Without any testing... I have vbs script that opens xls file and saves it as html page.
I added call of sending some text (keystrokes) from hidmacros.
Maybe it will works as it is or you can use it as starting point.
Google about controlling excel from vbs, there are many examples available.

Code: Select all

dim ex
dim oWB

' Open up Excel
set ex=WScript.CreateObject("Excel.Application")
ex.visible=true
ex.Workbooks.Open "SampleFIle.xls", False, True
' switch to first page
Set oWB = ex.ActiveWorkbook
ex.Sheets(1).Select

HIDMacros.SendKeys "A text"

ex.DisplayAlerts = False ' overwrite without prompt
oWB.SaveAs "Modified.html", 44
ex.DisplayAlerts = True  

ex.Workbooks.Close
ex.Quit
Petr Medek
LUAmacros author

Ganduf
Posts: 1
Joined: 26 May 2013, 13:27

Re: Multiple HID devices

Post by Ganduf » 26 May 2013, 13:35

sswcharlie wrote:HI

Thanks for your quick response.

I have downloaded the software. However when I open it comes up with a message -

Exception EOleSysError in module HIDMacros.exe at 0007ECD5.
Error accessing the OLE registry.

Unfortuanately I am using Win7 tablet pc. Could this be a problem.

The device shows on Human InteraceDevice on Device manager. with MS driver 6.1.7601.17514 and location Port_#0002.Hub_#0005

How do I fix the error ?

Thankyou


Charlie
I am using UAC in Windows 8. Hidmacros running properly and working without any error. :mrgreen:

Post Reply