VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Trying to do a simple autohotkey script to schedule recording in Avermedia RecCentral, But forgot how to use the programming language. What am I doing wrong? Thanks!
    Code:
    #singleinstance force
    #persistent
    Beginning:
    Gui, Add, Text,, Start Recording Time (24 hour time format)
    Gui, Add, Edit, vstarter, 19:00
    Gui, Add, Text,, Stop Recording Time (24 hour time format)
    Gui, Add, Edit, vstopper, 21:00
    Gui, Add, Button, Default, START
    Gui, Show
    return
    ButtonStart:
    Gui, Destroy
    Part:
    settimer, timer, 60000 ; check every minute
    return
    
    timer:
    formattime, time, , H:mm
    if (time = starter)
    {
      Send {F7}
    goto, Part
    }
    if (time = stopper)
    {
    settimer, timer, off
    Send {F7}
    msgbox, Recording Finished!
    }
    
    ExitApp
    Quote Quote  
  2. ok, thanks to users Serenity and FlyingDman from autohotkey forums, here is the working script, I will compile the script to an exe and upload soon. Feel free to add an option to choose the day to record if you want. Currently, the recording has to start atleast 1 minute after the current time
    Code:
    #singleinstance force
    #persistent
    Beginning:
    Gui, Add, Text,, Start Recording Time (24 hour time format)
    Gui, Add, Edit, vstarter, 19:00
    Gui, Add, Text,, Stop Recording Time (24 hour time format)
    Gui, Add, Edit, vstopper, 21:00
    Gui, Add, Button, Default, START
    Gui, Show
    return
    ButtonStart:
    Gui, submit
    
    looper:
    formattime, time, , H:mm
    if (time = starter)
    {
    Send {F7}
    starter = 25
    goto, loopert
    }
    goto, looper
    sleep, 1000
    loopert:
    formattime, time, , H:mm
    if (time = stopper)
    {
    Send {F7}
    goto, final
    }
    sleep, 1000
    goto, loopert
    final:
    msgbox, Recording Finished!
    Last edited by ezcapper; 10th Jul 2015 at 11:34. Reason: fixed error in script
    Quote Quote  
  3. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Nice. Wait for uploaded file.
    Quote Quote  
  4. Here is an alpha version of ScheduleMyAver.exe It will let you schedule a recording if you use Aver RECentral

    https://drive.google.com/file/d/0B695hmOChptNZGhqSzRYM1RtUWc/view?usp=sharing

    bugs:
    Recording time has to be set to atleast one minute after current time
    RECentral must be running and ready before starting scheduler
    You cannot choose a day to start the recording. It will start and end at the selected time.
    Do not add 0's in front of time.
    RECentral hotkey must be set to F7

    once you get used to the complicated rules of using the program, you can use this simpler, smaller and neater looking version
    https://drive.google.com/file/d/0B695hmOChptNQngxNEl1WGNXaDA/view?usp=sharing

    I will change the simpler version soon to include a timed recording with an immediate start time option
    Last edited by ezcapper; 10th Jul 2015 at 13:05.
    Quote Quote  
  5. ok, this version doesn't come with any directions, but you can use if you're familiar with how it works. Now you can do immediate recordings by putting 0 for the start time.
    https://drive.google.com/file/d/0B695hmOChptNTERQM3QweU9sOFk/view?usp=sharing

    bug:
    Immediate recordings must be atleast 2 minutes

    The next version will let you schedule the day. But won't be ready for a while
    Last edited by ezcapper; 10th Jul 2015 at 13:27. Reason: Immediate recordings must be atleast 2 minutes
    Quote Quote  
  6. ok, now you might be able to set the recording day. You HAVE TO check the checkbox for the option to work. I have not tested this at all, so might or might not work.
    alpha version
    https://drive.google.com/file/d/0B695hmOChptNX28zN0x0ODZkV1k/view?usp=sharing


    next version will allow you to exit the program without setting a recording time.

    bugs:
    will not work if you close program or turn off computer after setting record time
    I have not tested the program, so don't know if it works.
    There is a major bug in this version in that immediate recording is not working for some reason

    source code
    Code:
    #singleinstance force
    #persistent
    
    Beginning:
    Gui, Add, Text,, Start 
    Gui, Add, Edit, vstarter, 9:00
    Gui, Add, Text, ys, Stop 
    Gui, Add, Edit, vstopper, 13:00
    Gui, Add, Button, ys Default, SET
    Gui, Add, Checkbox, vdayter, Start Day
    Gui, Add, DropDownList, vlist, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
    Gui, Add, Text,, Stop Day
    Gui, Add, DropDownList, vlist2, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
    
    Gui, Show
    return
    ButtonSET:
    Gui, submit
    if list2 = 
    {
    list2 = %list%
    list = %list2%
    }
    
    if dayter = 1
    {
    temp2 = %list%%starter%
    starter = %temp2%
    temp = %list2%%stopper%
    stopper = %temp%
    }
    if (0 = starter)
    {
    goto, special
    }
    
    
    looper:
    if dayter = 0
    {
    formattime, time, , H:mm
    }
    if dayter = 1
    {
    formattime, time, , ddddH:mm
    }
    if (time = starter)
    {
    Send {F7}
    starter = 25
    goto, loopert
    }
    sleep, 1000
    goto, looper
    loopert:
    if dayter = 0
    {
    formattime, time, , H:mm
    }
    if dayter = 1
    {
    formattime, time, , ddddH:mm
    }
    if (time = stopper)
    {
    Send {F7}
    goto, final
    }
    sleep, 1000
    goto, loopert
    special:
    Sleep, 1000
    Send {F7}
    goto, loopert
    final:
    msgbox, Recording Finished!
    ExitApp
    Last edited by ezcapper; 10th Jul 2015 at 15:31.
    Quote Quote  
  7. ok, I would appreciate it if someone could test this version below and tell me which features work and which don't

    https://drive.google.com/open?id=0B695hmOChptNMWJNOU5xSzA4RUU

    1. To start an immediate recording, leave start time blank. Immediate recordings cannot last more than 24 hours.
    2. scheduled recordings should start atleast 2 minutes after the current time.
    3. No more checkbox, just fill whatever features you need. The only required field is what time to stop recording.
    4. Do not put zeroes in front of times. (ex. 9:00, NOT 09:00) Times are based on 24 hour clock. So, 3 pm will be 15:00.
    5. Avermedia RecCentral must be started and ready to use this add-on.

    bug:
    hitting the x button on the gui does not close the add-on
    recording requires a working input source.

    Code:
    #singleinstance force
    #persistent
    
    Beginning:
    Gui, Add, Text,, Start 
    Gui, Add, Edit, vstarter, 9:00
    Gui, Add, Text, ys, Stop 
    Gui, Add, Edit, vstopper, 13:00
    Gui, Add, Button, ys Default, SET
    Gui, Add, Checkbox, vdayter, Start Day
    Gui, Add, DropDownList, vlist, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
    Gui, Add, Text,, Stop Day
    Gui, Add, DropDownList, vlist2, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
    
    Gui, Show
    return
    ButtonSET:
    Gui, submit
    
    if starter = 
    {
    Send {F7}
    msgbox, f7 sent
    dayter = 0
    goto, loopert
    }
    if list2 = 
    {
    list2 = %list%
    list = %list2%
    }
    
    if dayter = 1
    {
    temp2 = %list%%starter%
    starter = %temp2%
    temp = %list2%%stopper%
    stopper = %temp%
    }
    
    looper:
    if dayter = 0
    {
    formattime, time, , H:mm
    }
    if dayter = 1
    {
    formattime, time, , ddddH:mm
    }
    if (time = starter)
    {
    Send {F7}
    starter = 25
    goto, loopert
    }
    sleep, 1000
    goto, looper
    loopert:
    if dayter = 0
    {
    formattime, time, , H:mm
    }
    if dayter = 1
    {
    formattime, time, , ddddH:mm
    }
    
    if (time = stopper)
    {
    Send {F7}
    goto, final
    }
    sleep, 1000
    goto, loopert
    
    final:
    msgbox, Recording Finished!
    ExitApp
    Last edited by ezcapper; 10th Jul 2015 at 17:29.
    Quote Quote  
  8. ok, last one had a lot of bugs, so I gave up, here is a new format. last try.
    For immediate recordings, leave start time blank. Only fill in the day if it is a different day.
    https://drive.google.com/file/d/0B695hmOChptNd1RMdHliekQyN1U/view?usp=sharing
    bugs:
    recordings around midnight (0:00) might or might not work, I don't know.
    maximum recording time is 24 hours.

    once you are familiar with the add-on, you can use this smaller, slightly nicer looking version
    https://drive.google.com/file/d/0B695hmOChptNUEdITFdxeGFzZkk/view?usp=sharing

    sorry, claudio, the one I gave you access too has many bugs. You should be able to access these, which might work better. I still have sometimes it just doesn't work.

    source code:
    Code:
    #singleinstance force
    #persistent
    Beginning:
    Gui, Add, Text,, Start Recording Time (24 hour time format)
    Gui, Add, Edit, vstarter, 9:00
    Gui, Add, Text,, Stop Recording Time (24 hour time format)
    Gui, Add, Edit, vstopper, 13:00
    Gui, Add, Text,, Enter Day only if starting Recording on another day
    Gui, Add, DropDownList, vdayter, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
    Gui, Add, Button, ys Default, START
    Gui, Show
    return
    ButtonStart:
    Gui, submit
    Working:
    if starter =
    {
    goto, finisher
    }
    
    if dayter = 
    {
    goto, looper
    }
    checkday:
    sleep, 60000
    formattime, time7, , dddd
    if time7 = %dayter%
    {
    goto, looper
    }
    goto, checkday
    
    
    
    looper:
    formattime, time, , H:mm
    if (time = starter)
    {
    Send {F7}
    starter = 25
    goto, loopert
    }
    goto, looper
    sleep, 1000
    loopert:
    formattime, time, , H:mm
    if (time = stopper)
    {
    Send {F7}
    goto, final
    }
    sleep, 1000
    goto, loopert
    final:
    msgbox, Recording Finished!
    ExitApp
    finisher:
    Send {F7}
    goto, loopert
    Last edited by ezcapper; 10th Jul 2015 at 19:55.
    Quote Quote  
  9. ok, if someone can just post if any features on the last linked files DON'T WORK for them, otherwise I will use that as the (almost) final version of the add-on. I might make one other change next week, so when you hit the x button on the gui it closes the exe file.
    Quote Quote  
  10. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Relax ezcapper,

    I'm testing on all my systems (4 computers in total).

    I got a C875 of my friend for testing.

    So testing in all I answer.



    Claudio
    Quote Quote  
  11. https://drive.google.com/file/d/0B695hmOChptNajMxcndCQmg1UzA/view?usp=sharing

    ok this probably the final version of the program I will upload unless there is a major bug. I know, the list of rules is way to long, but have to put them.

    1. Now a tooltip pops up notifying what time you set the recording to. To permanently hide the tool tip, ctrl+alt+shift+h. The x button on the gui closes the app now. Alternately, to close the app, ctrl+alt+shift+e.

    2. For immediate recordings, leave the start time blank. To schedule a recording to start on another day more than 24 hours from the current time, select the day from the drop down list, otherwise leave it blank.

    3. I have not tested recordings starting at 0:00 (midnight), there might be a bug where these recordings don't start. Sorry, please use 11:59 or 12:01 instead, thanks. Times are in 24 hour format (ex. 14:00). Do not put an extra zero in front of the time (9:00 good, 09:00 bad).

    4. Scheduled recordings should start atleast 2 minutes from the current time, otherwise use immediate recording, which should finish atleast 2 minutes after the current time. You can cheat on this, but then recording might or might not work, I have not tested.

    5. Last few notes: The app uses the time on your computer. Avermedia RecCentral must be started and ready before actual recording starts. The program must be set on the default hotkey, which is F7. Valid input source must be plugged in before recording starts. If you have a typo in time, no recording.

    Okay, if you survived all that. Would appreciate it if anyone let me know if there are any major bugs. Haven't tested the recording on different days. If no bugs, this might be the last post

    https://drive.google.com/file/d/0B695hmOChptNajMxcndCQmg1UzA/view?usp=sharing

    Also let me know if anyone needs a version that will work with different hotkeys set in ReCentral. It is easy to make that feature customizable, but I was too lazy to do it. If you can compile it yourself and need just one different hotkey, just change F7 in the script to whatever.

    https://drive.google.com/file/d/0B695hmOChptNajMxcndCQmg1UzA/view?usp=sharing

    source code
    Code:
    ; <COMPILER: v1.1.22.02>
    
    #singleinstance force
    
    #persistent
    
    Beginning:
    
    Gui, Add, Text,, Start Recording Time (24 hour time format)
    
    Gui, Add, Edit, vstarter, 9:00
    
    Gui, Add, Text,, Stop Recording Time (24 hour time format)
    
    Gui, Add, Edit, vstopper, 13:00
    
    Gui, Add, Text,, Enter Day only if starting Recording on another day
    
    Gui, Add, DropDownList, vdayter, Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday
    
    Gui, Add, Button, ys Default, START
    Gui, Show
    
    return
    
    ButtonStart:
    
    Gui, submit
    
    ToolTip, The recording will start at %starter% and finish at %stopper% on your selected day.,1920,0
    Working:
    
    if starter =
    
    {
    
    goto, finisher
    
    }
    
    if dayter =
    
    {
    
    goto, looper
    
    }
    
    checkday:
    
    sleep, 60000
    
    formattime, time7, , dddd
    
    if time7 = %dayter%
    
    {
    
    goto, looper
    
    }
    
    goto, checkday
    
    looper:
    
    formattime, time, , H:mm
    
    if (time = starter)
    
    {
    
    Send {F7}
    
    starter = 25
    
    goto, loopert
    
    }
    
    goto, looper
    
    sleep, 1000
    
    loopert:
    
    formattime, time, , H:mm
    
    if (time = stopper)
    
    {
    
    Send {F7}
    
    goto, final
    
    }
    
    sleep, 1000
    
    goto, loopert
    
    final:
    
    msgbox, Recording Finished!
    
    ExitApp
    
    finisher:
    
    Send {F7}
    
    goto, loopert
    
    GuiClose:
    ExitApp
    
    ^!+e::
    ExitApp
    ^!+h::
    Tooltip,
    minor bug: tooltip has awkward phrasing on immediate recordings.
    Last edited by ezcapper; 11th Jul 2015 at 12:04.
    Quote Quote  
  12. I forgot to mention that if you are away from your computer you can schedule a recording through the add-on using your smartphone with the chrome remote desktop app.
    Quote Quote  
  13. Experimental Revision
    https://drive.google.com/file/d/0B695hmOChptNeTA0OFZVaU9GOXc/view?usp=sharing

    changes:
    tooltip turns off when recording starts
    tooltip does not display on immediate recordings.

    I added this experimental revision to make it easier to schedule ReCentral recordings from your smartphone (see post above). Might make future changes to make it more easy, like operation without using the mouse pointer.

    The first time I posted this version, it was non-working, I took it down within a couple minutes of the post, but if you downloaded, sorry about that and please try again.
    Last edited by ezcapper; 12th Jul 2015 at 22:56. Reason: added experimental revision
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!