Thread: Can anyone create a timer for WinLIRC?

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    4

    Talking Can anyone create a timer for WinLIRC?

    low there! I really like the program WinLIRC in http://winlirc.sourceforge.net/ but my only problem is that there is no timer, can anyone create a timer so that I can set my device to turn on and off at the times that the user will also input in the program?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So, let me get this right: You want to set up a timer so that you turn on (say) the TV at 4pm, then turn it off again at 5pm?

    I would have thought that setting a timer wouldn't be terribly difficult.

    Another thought would be to use the Windows "Schedule tasks" to start and stop the TV.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    4
    Can you at least get a crack at it? I'm very puzzled at what exactly to do about the timer thing.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Well, Windows itself supports several forms of timers - I don't know what you ACTUALLY want to do, so I can't only guess which one you wan to use.

    In a Windowed application, you could use:
    SetTimer().
    You can either supply a timerfunc to that function, or you can catch the WM_TIMER event.

    There are other ways, but without understanding what you want to achieve, it's kind of hard to recommend something.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    4
    Um, didn't you read that it can be edited with Visual C++ 6? You must have not opened the link that I gave. All I want is another dialog to appear in the program where you can set a timer for a certain signal that was previously learned or will be learning. In the timer, I can set let say my TV to turn on at a certain time & turn off at another certain time. What you said in your first post was already correct. I have already built the receiver, but all I really need now is the program that I have to admit is very hard to do. tnx.

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I looked at the link you gave, but when the zip file of the two source-code components come to about 180KB I'm not going to sit down and understand where and how to implement something like that - it's not THAT trivial.

    There are a few dozen files here, and each of them contain a few hundred to a thousand lines of code.

    If you want someone to do it for you, you'd better be prepared to either wait or pay for it to be done.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. need help making a dot bounce up and down y axis in this prog
    By redwing26 in forum Game Programming
    Replies: 10
    Last Post: 08-05-2006, 12:48 PM
  2. Create a file from c++ program
    By Dan17 in forum C++ Programming
    Replies: 2
    Last Post: 05-08-2006, 04:25 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. How to create a file association program?
    By eShain in forum Windows Programming
    Replies: 1
    Last Post: 03-06-2006, 12:15 PM
  5. Timer without sleep();
    By Longie in forum Linux Programming
    Replies: 2
    Last Post: 11-06-2002, 12:39 AM