473,499 Members | 1,659 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 1446
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
3032
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
2789
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 ------ ------ ------ ----------- ------ ----...
2
1873
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...
2
3035
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
5262
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....
0
1401
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...
1
2078
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
1279
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...
0
1816
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...
0
7134
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,...
0
7180
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,...
0
7395
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...
1
4921
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...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
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 ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.