47 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Member Avatar for Yangang
0
4K
Member Avatar for Papa_Don

Group, I'm trying to write some code that will read the clocktime. When it hits a predetermined time, I want it to run a routine. I know how to do this in VB.net. It would be done like this: Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick If …

Member Avatar for Santanu.Das
0
2K
Member Avatar for Dudestreet

Hi Team, So I am working on this project where I have 5 comboboxes that loads data from an .accdb file and Displays the result as per selection in a Text Box. I need to add Timers(as many as Required) to capture the Text-Box Data **"10 seconds After"** the fifth …

Member Avatar for Reverend Jim
0
217
Member Avatar for Papa_Don

Hello group! I've created a short program to open an application at a specific time. It's working but is attempting to open the application multiple times. What should I be doing to control the number of times it is opening? It only needs to open one time. Here's my code: …

Member Avatar for Papa_Don
0
301
Member Avatar for Nshark

I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to …

Member Avatar for dionterry
0
5K
Member Avatar for patk570

Hey guys, I have a script that switches between tabs..It works perfectly, but what i am needing is a way for the script to stop when I have my mouse on the tab or content for the tab. I am using bootstrap and here is my [fiddle](http://jsfiddle.net/patk570/5hk6R/) with the working …

Member Avatar for Troy III
0
4K
Member Avatar for kjklls

hey guys, i'm currently working on a project, i have a tabbed panel and i've put a timer on the 1st tab panel. what i want to do is for the timer to remain enable even if i change tabs. what could i possibly do for this problem? thanks

0
142
Member Avatar for robotakid

Hey there! I'm currently trying to get my first text-adventure-game in python started,and I wanted to import some features that are totally unnecessary. just for the lulz. So,I want to start a timer,that starts when the game starts,and ends,when the player is dead or won the game. I want it …

Member Avatar for Gribouillis
0
720
Member Avatar for wolwayne

I am making an examination system desktop application in Java Swing. I have a frame named 'show_class_question' frame. This frame is used to display questions and four options from database. Whenever user clicks 'Next' button I am calling this same frame (show_class_question) again and agian from itself (self - refrencing) …

Member Avatar for stultuske
0
402
Member Avatar for Griff0527

Hello everyone. I am working on creating a stub that would allow me to swap out various sorting algorithms so that I can "plug in" the algorithms and run the various sorts. The below code is for Insertion Sort (yes, I know it is the slowest possible sort), but once …

Member Avatar for Griff0527
0
531
Member Avatar for ktsangop

Hello everyone. As the title suggests i need to implement a type of timer based function inside a UI Thread in MFC. Although CWinThread is a UI Thread and has a message pump it does not have a Timer function as CWnd::OnTimer Is there any way i can implement a …

Member Avatar for ktsangop
0
713
Member Avatar for Raim

I'm making an alarm clock whose form's backColor should change randomlly every 5 seconds. I am not sure as to how to do this. I'm using a timer so after the alarm clock's given time matches the current time, a song will be played. But I do not know how …

Member Avatar for codeorder
0
148
Member Avatar for Yarra

[B]I have a timer class that prints out a string every 5 ticks, and on the 6th tick it runs a random event. now what i want is to have the timer to restart from 9 ticks. As i tried to do with the else statement in the MyTask Class …

Member Avatar for Yarra
0
176
Member Avatar for Mike Askew

Hi all, I am looking to have a long process running in the background to my main form with a timer ticking on the main form animating the elipsis on the end of some text. Was looking for some insight into the best way to go about this and any …

Member Avatar for Mike Askew
0
242
Member Avatar for arindam31

Hi Everyone, I am trying to call a function after every T secs . When i use time.wait() , the app hangs, i do not have control over the app. For now , this programs will do the process once , and then after T secs . But i do …

Member Avatar for arindam31
0
281
Member Avatar for fortozs

I am new to Python and I'm trying to make a simple updating window. Most suggest I should use wxtimer for the task. I have tried to get it going but it fails. Here is the code without a timer that works for me. I had been using time.sleep in …

Member Avatar for fortozs
0
934
Member Avatar for arjen

help please..help me in my timer like the time they use in computer shop and when the player is already time out it will alert...[COLOR="red"]the idea like this if the player start 3:00:00 then it will appear in the textbox for the time - in and in the time - …

Member Avatar for codeorder
0
606
Member Avatar for markaroni

I'm creating a simple Slot Machine. one button for the start, and 3 stop buttons on each tiles of Picturebox. my problem is, Every time i clicked each of the stop buttons, the Picturebox won't stop. I need help in which, if i clicked the stop button on a corresponding …

Member Avatar for markaroni
0
445
Member Avatar for turt2live

Hello, What I am trying to do is restrict access to something if 48 hours hasn't passed since the last access. I have a MySQL table with the last access time (col name: lastAccess). If they are within the 48hours, deny access and tell them how many hours and minutes …

Member Avatar for burgercho
0
168
Member Avatar for ajst

Hi Guys and Girls, I'm having some trouble getting a timer to work on my android 2.1 app. I want it so once a button is clicked it trys to connect to my server every 60 seconds. my code for connecting to server is working, but I don't understand why …

Member Avatar for ajst
0
142
Member Avatar for imperialguy

Platform and Python installation info: [b]Platforms: Windows, OS X Python: Active State Python 2.7 wxPython: Version 2.9[/b] Here is a sample code in which I use a wxMessageBox: [code]import wx,os class Frame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(100, 100),style=wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | …

Member Avatar for vegaseat
0
1K
Member Avatar for Sturdy

Hi All, I try to make count down timer but. This following is my code but it just decrease one time and stop. [CODE]Dim TCount As Integer Private Sub Form_Load() TCount = 30 Label1.Caption = "30" End Sub Private Sub Timer1_Timer() Label1.Caption = TCount - 1 If TCount = 0 …

Member Avatar for Jx_Man
0
456
Member Avatar for guru_iyer

I am trying to change the background color of the JPanel every 3 seconds (3000 ms) when I click START button till I press STOP button. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Random; class TimerBackground implements ActionListener { JFrame frame; JPanel panel; JButton btnStart; JButton btnRed; JButton btnGreen; …

Member Avatar for guru_iyer
0
1K
Member Avatar for ashwinshenoy

Hi Guys, i have this code which draws a continuous circle using a timer. Now I have to display it in the form which has a group box with loads of other fields and information. Now can anyone please tell me how can i add the circle into the group …

Member Avatar for ashwinshenoy
0
249
Member Avatar for arjunaw

In a unix pthreads based app I'm working on, I have objects of a particular class (call it class foo) being created in multiple threads. I need a specific public method of class foo invoked at or after 60 seconds of the object coming into existence (it is not imperative …

Member Avatar for arjunaw
0
4K
Member Avatar for P.manidas

Dear Sir/Madam How to check execution time of a procedure with the help of Timer control? How i have tried, i am attaching herewith my test program. Please guide me.

Member Avatar for AndreRet
0
314
Member Avatar for e_ayt

I'm a beginner student learning Visual Basic 2010, and im trying to create an auction countdown timer in my form but I'm not sure how to do it. The countdown timer Im interested in would be similar to the ones found in BeezID or Swoopco, where the timer continuously counts …

Member Avatar for prvnkmr194
0
599
Member Avatar for olegb

Guys: Please help. I need to create an on-screen shape (circle) that has a fill color, which will blink every X seconds (go from fill color, to white, back to fill color). This is trivial to do...BUT... i want to do it in my own class, so that I can …

Member Avatar for olegb
0
976
Member Avatar for Ryujin

Hi all. I'm trying to add a slight delay to [URL="http://www.kutztown.edu/library/labs/newt.asp"]this page's[/URL] drop-down menu. Though I assume that entails a call to setTimeout() somehow, I've tried all I can think of (which isn't much...) and am clueless. Thank you for any tips! [CODE] <script type="text/javascript"> var timeout = 200; var …

Member Avatar for Airshow
0
428
Member Avatar for tcollins412

I have this script and i need some help [CODE]<script type='text/javascript'> numcount=0; t=setTimeout("test()",30000); document.getElementById("incrementBtn").disabled=false; timer_on = 1; function increasecounter() { timer_on = 1; numcount++; document.getElementById('countdiv').innerHTML=numcount; t=setTimeout("test()",30000); } function test() { if(timer_on) { timer_on=0; document.getElementById("incrementBtn").disabled="true"; document.getElementById("score").innerHTML = document.getElementById("countdiv").innerHTML; } } function reset() { timer_on = 0; numcount=0; document.getElementById("incrementBtn").disabled=false; document.getElementById("countdiv").innerHTML = 0; …

Member Avatar for @developer
0
201

The End.