Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Three (100+) Digit Channel Macro Help?

If you have a question or need help, this is the place to be.
Post Reply
MiLO83
Posts: 1
Joined: Mon Aug 20, 2012 3:48 am

Three (100+) Digit Channel Macro Help?

Post by MiLO83 »

Hello, I am using EventGhost 0.4.1.r1582, Aug 19 2012.

I am using the python script:

Code: Select all

event = eg.event.string
parts = event.split(".")
if len(parts) == 3 and parts[-2] == 'CH':
    device = parts[-2]
    channel = parts[-1]
    print device
    if channel.isdigit():
        channel = channel.zfill(1) 
        for digit in channel:
            eg.TriggerEvent(digit,prefix=device)
This works up to Channel 99, however for Channel Ex. 226 my Cable Reciever goes to channel 22!
Image

It appears to be sending the remote codes, however not fast enough to get the whole thing in before the channel changes?
On a strange note, when I take my time typing in the channel with the buttons, time does not seem to be a factor, or I would not be posting this.

Does anyone have any sugestions?

Here is an image of my setup:
Image

Thank you very much!
- MiLO83

IMPORTANT EDIT: With further testing the above code only works if input a doubled last digit! So EX= 2355=235, 2477=247! it is skipping the 3rd digit for some reason!
Can anyone help fix this?
Thanks again!
- MiLO83
Post Reply