Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About a time event

About a time event

Scheduled Pinned Locked Moved C / C++ / MFC
jsontutorialquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FlyingDancer
    wrote on last edited by
    #1

    I have a thought to make the speaker to speak at a special time. That is: 1.Set RTC timer alert time at a special time; 2.Then the RTC timer triggers the speaker to speak. This action can be done by Api functions "CreateTimer" and "OnTimer". But I don't want to use this way, how to do it? I use VC6.0 Thanks in advance!

    J 1 Reply Last reply
    0
    • F FlyingDancer

      I have a thought to make the speaker to speak at a special time. That is: 1.Set RTC timer alert time at a special time; 2.Then the RTC timer triggers the speaker to speak. This action can be done by Api functions "CreateTimer" and "OnTimer". But I don't want to use this way, how to do it? I use VC6.0 Thanks in advance!

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      shalala wrote: This action can be done by Api functions "CreateTimer" and "OnTimer". But I don't want to use this way, how to do it? Use the shell to start a batch-file at your specific time?


      Who is 'General Failure'? And why is he reading my harddisk?!?

      F 1 Reply Last reply
      0
      • J jhwurmbach

        shalala wrote: This action can be done by Api functions "CreateTimer" and "OnTimer". But I don't want to use this way, how to do it? Use the shell to start a batch-file at your specific time?


        Who is 'General Failure'? And why is he reading my harddisk?!?

        F Offline
        F Offline
        FlyingDancer
        wrote on last edited by
        #3

        :) can you tell me more details or even some samples? Thanks

        J 1 Reply Last reply
        0
        • F FlyingDancer

          :) can you tell me more details or even some samples? Thanks

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          Well, you simply need to get a batch-file to do what you want (e.g. reading a text or playing a *.wav). Then you can use "scheduled task" to start that .cmd at the time you want. Please read the help about scheduled tasks, as I am no expert, just a user.


          Who is 'General Failure'? And why is he reading my harddisk?!?

          F 1 Reply Last reply
          0
          • J jhwurmbach

            Well, you simply need to get a batch-file to do what you want (e.g. reading a text or playing a *.wav). Then you can use "scheduled task" to start that .cmd at the time you want. Please read the help about scheduled tasks, as I am no expert, just a user.


            Who is 'General Failure'? And why is he reading my harddisk?!?

            F Offline
            F Offline
            FlyingDancer
            wrote on last edited by
            #5

            Could somebody tell me how to call the shell function in vc6? Thank you again

            F 1 Reply Last reply
            0
            • F FlyingDancer

              Could somebody tell me how to call the shell function in vc6? Thank you again

              F Offline
              F Offline
              Fredrik Skog
              wrote on last edited by
              #6

              ShellExecute(...) Cheers, Fredrik
              "Felix qui potuit rerum cognoscere causas."

              F 1 Reply Last reply
              0
              • F Fredrik Skog

                ShellExecute(...) Cheers, Fredrik
                "Felix qui potuit rerum cognoscere causas."

                F Offline
                F Offline
                FlyingDancer
                wrote on last edited by
                #7

                I have a try. Thank you!!!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups