Page 1 of 1

Cound not create object named IRTtransOCX.IRTrans

PostPosted: Sun 7. Feb 2010, 10:51
by GertSt
Hi,

I'm trying to send ir commands by using a vbs script that connects to the irtrans ocx.
I'm on Windows 7 64bit.

What I did:

- register the acitve x: from an elevated command prompt, I could register C:\Users\Gert\Desktop>regsvr32.exe "C:\Program Files\IRTrans\APIs\Active-X\IRTrans.ocx" with success.

- created a vbs file:
Set IRTrans = wscript.CreateObject("IRTransOCX.IRTrans", "IRTrans_")
IRTrans.ServerIP = "localhost"
IRTrans.Connect()
IRTrans.SendIR Cstr("harmony"), Cstr("receiver on")
set IRTrans = nothing

But I'm having an error on the first line saying "Cound not create object named IRTtransOCX.IRTrans", code 80040154.
I'll also tried running the vbs file as admin.

Any Idea what's causing the error?

thanks,
Gert

Re: Cound not create object named IRTtransOCX.IRTrans

PostPosted: Sun 7. Feb 2010, 19:11
by IRTrans
Hi,
no idea what the problem might be here. However it does not look like a problem within the OCX, it rather looks like a problem loading it.

IRTrans