Questions tagged [timed]

110 questions
0
votes
1 answer

std::threads not available in windows forms

I have this callable timer, but the std::threads are not not available when working with Windows forms class Timer { public: template Timer(int after, bool async, callable&& f, arguments&&... args) { …
0
votes
2 answers

Nodejs once every eight hours

I am trying to impliment into my nodejs script a function to allow once per 8 hours a select command. example: !hug <--- would let bot respond with a hug but only once every 8 hours I've been scouring online but cannot find what I need... I am…
0
votes
1 answer

Screensaver loads image in radom location after inactivity, restarts if user does anything

I have the following two pieces of code (awful but I have no idea what I'm doing): var stage = new createjs.Stage("canvas"); createjs.Ticker.on("tick", tick); // Simple loading for demo purposes. var image =…
Henry Wood
  • 31
  • 4
0
votes
2 answers

Batch windows xp timed prompt without choice.exe

im new to batch scripting. I was wondering if there was a way to write a timed prompt without using choice.exe because I'm using windows xp. Something along the lines of: @echo off /set p answer=input y or n in 30 seconds rem start timer if…
stewazy
  • 139
  • 1
  • 3
  • 8
0
votes
1 answer

Is it possible to create timed events using node.js

Could I use node.js to create timed events that happen on another webpage? For example, could I set up a node.js server to connect to a website and click a certain button every 24 hours? Or is this something that node.js is not capable of? Should I…
McMatt
  • 129
  • 1
  • 14
0
votes
2 answers

Timed sales in different timezones

working on a website that will sell one item each day that will run for a period of hours specified by me. The site is much like groupon where when the timelimit is up, it will end the deal. My problem is how do i go about implementing this…
1337holiday
  • 1,924
  • 1
  • 24
  • 42
0
votes
1 answer

Batch to go back and forth between 2 exe

I am trying to write a bat file to go back and forth between 3 executable files every 2hrs. So that A&C will run for 2hrs and close then B&C will open up for 2hrs and continue this process for 24hrs. Any help?
0
votes
0 answers

Javascript Timed Message

I'm trying to make a timed alert that goes off at midnight, and the code so far: function startTime() { var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); var s=today.getSeconds(); h = checkTime(h); m =…
0
votes
1 answer

How can i make this Audio file only play at the time listed and not any time after?

Below is the code I got from this site. THANK YOU. but everytime the page is loaded it plays the audio file any time after 16:24. Is there a way to prevent this? var now = new Date(); var audio1 = new Audio('one_minute_remaining-2.mp3'); var…
P Harmon
  • 21
  • 1
0
votes
3 answers

JavaScript timed response

I'm having trouble with a JavaScript timed-output that states some type of greeting and then the time. Code: