473,626 Members | 3,237 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Check value and wait untill with a fix value ...

4 New Member
I have a timer and this timer value I have to compare with time chunk about 5 second ...

it would be like this
Here timercount = what the time I have now .. means now I have 10 sec
t = time Chunk 5

if (timercount<=t)
sleep 1000 ms
always check current timer value with t
else
it will run one script file GO_ON ...


if there is any error for example no balance in the account on GO_ON Scrpit

then print NO_CREDIT
other wise always add t= t+ Chunk

It will continue upto press stop button ...

Could you anyone can help me on this problem to give me some javaScript code for that ...
Dec 20 '06 #1
1 1455
b1randon
171 Recognized Expert New Member
I have a timer and this timer value I have to compare with time chunk about 5 second ...

it would be like this
Here timercount = what the time I have now .. means now I have 10 sec
t = time Chunk 5

if (timercount<=t)
sleep 1000 ms
always check current timer value with t
else
it will run one script file GO_ON ...


if there is any error for example no balance in the account on GO_ON Scrpit

then print NO_CREDIT
other wise always add t= t+ Chunk

It will continue upto press stop button ...

Could you anyone can help me on this problem to give me some javaScript code for that ...
Please at least give it a shot. I'm willing to help so long as you try, but I'm not in the business of translating people's pseudo-code. I'll help you learn; not do your work for you.
Dec 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3039
by: Markus Franz | last post by:
Hi. I created a little script: for currenturl in sys.argv: pid = os.fork() if pid == 0: signal.alarm(10) do_something() # placeholder for the download and print routine
1
2806
by: Jake | last post by:
I have a deadlock situation, part of the problem looks like this; spid ecid dbid ObjId IndId Type Resource Mode Status ------ ------ ------ ----------- ------ ---- ---------------- ------- ------ 404 0 9 792389892 1 KEY (010086470766) SIU WAIT 72 0 9 792389892 1 KEY (010086470766) SIU WAIT
2
1887
by: Lebplaya | last post by:
Ok ... heres my situation. I need to run 4 child processes in parallel. each child process will exececute a different program. How would i go about sending the PID of the child back to the parent upon execution of each program. I need the parent to print out a message upon successful completion of the exec statements. Since the children have to run in parallel, i cannot run the first child and wait for completion ... they must all be run...
2
3039
by: Lloyd Dupont | last post by:
I have created a process with ShellExecuteEx() I want my main process to wait untill this process end. how could I do that ?
3
5267
by: Jake | last post by:
Hi everyone, I am using a popup window to display a calander control. When the user select a date the date on the main window is set to the selected date and the popup closes useing javascript. The problem is this bypasses the form validation on the main page and the error message is not dispalyed untill the form is submited. I need to be able to validate the
0
1411
by: Dilip | last post by:
hi all , i m trying to make such a tree view which specify some folder structure for installation i mean there is some folders mandatory. This is installation software. is based upon user choice, what he will check only those folders will be install not others. A--|
1
2083
by: bashanmu | last post by:
Hi, I am trying to connect a device through a port. while making an attempt, i am going for the following commands synchronized(this) { this.wait(10000) } . . .
1
1283
by: giri87 | last post by:
hi !!!i m trying to perform a key press event untill a button is clicked .How can i keep a key press event in a loop untill a button is clicked?? please help !!! here is a part of the code, tryin to explain what i m tryin to do----> private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { int i = 0; while(untill button not clicked) {
0
1823
by: ismailc | last post by:
Good day, I need help. I have an application that uses aspx pages together with vbscript window for developer coding. Now the page has an <input type='file'> upload object. The problem is that on the same page submit button i'm uploading the file AND executing vbscript command that renames & emails the file that is been loaded. It keeps on crashing as when it looks for the file to rename the file has not uploaded yet.
0
8262
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.