Stop the execution for Some seconds

I want to stop the execution for some second , Basically
i want some funtion which will wait for specified period .
it should work like Inkey() in foxpro .
I have tried timer , pause but that does not solve the problem
Thank you
Regards
Farukh

find the library d2kwutil.pll (probably in c:\orawin95\tools\devdem60\demo\forms) and copy it and d2kwut32.dll to your application directory. Attach the pll to your form; now you can "interface" with windows. So for pausing you application use this in you form:
win_api_utility.sleep(1000);
the parameter takes milliseconds. so in the example it's 1000 milliseconds or 1 second.
good luck!
Tim

Similar Messages

  • How to stop the process for some time

    I want to stop the process for some time can any one give the package or keyword or example for the same
    For suppose two programs A and B.. .B will run based on output of A. What i need is... When A is executed the process will stop for 5mins then B has to execute...

    You can use signals with DBMS_ALERT to "wake up" a procedure.
    Procedure A is something like this:
    DBMS_ALERT.REGISTER('B_FINISHED');
    do logic...
    when finished - send a signal
    DBMS_ALERT.SIGNAL('A_FINISHED','B you can start');
    now wait until B is finished
    DBMS_ALERT.WAITANY(...)
    continue logic hereAnd Procedure B is
    DBMS_ALERT.REGISTER('A_FINISHED');
    wait for a to finish
    DBMS_ALERT.WAITANY(...);
    do logic...
    when finished, signal A it can continue
    DBMS_ALERT.SIGNAL('B_FINISHED','A can continue');This is useful if u they need to wait for each other within the code. if they just need to wait - call B from A.
    Hope this helps.
    Edited by: Pyrocks on Nov 8, 2010 8:50 AM

  • Stop the thread for a second

    Hi
    i want to stop the animation in my applet when the image reaches x position for only one second, then the animation should continue.
    can you help me to find the suitable function?
    thanx a lot.

    well if your using threads why not use Thread.sleep(1000);

  • How stop the timeline via code for some seconds?

    Hi NG,
    how can i stop the timeline for some seconds? Is there any code exaple for me?
    Thanks...
    TELLO

    What about using some javascript timing events maybe something like this should work:
    function resumePlay() {
         sym.play();
    function stopPlay(secs) {
         sym.stop();
         setTimeout(function(){resumePlay()},secs * 1000);
    // stop the default timeline for 3 seconds
    stopPlay(3);
    NOTE: this example ONLY stops the default timeline where the code is inserted. If there are other symbols playing independently, they won't stop. Also, notice it's an asynchronous call, so if an event occurs during the time lapse and triggers a "play" action, the animation will resume immediately.

  • Stop the execution of main for 2 more seconds

    hi,
    I would like to stop the execution of the main program for few seconds and resume again.
    i tried
    try
                        this.wait(90000000);
                   catch(Exception e)
    but did not work
    could some give any other suggestions
    thanks
    jag

    Also, it's better to catch the specific Exception that the Thread.sleep method throws.
    (InterruptedException)
    And it's usually good to output any exception messages, so you can see what's going on.
    Instead of empty catch brackets, it's better to write e.printStackTrace();
    (where e is the name of your caught Exception...)
    cheers!
    lutha

  • Firefox and internet explorer stops for some seconds after i click a link or button(anything which l

    Hi... i have this problem just in one of my PCs with a windows 7 64-bit. When i am in the lordswm.com and i press anything which loads a new web page my browser stops working for some seconds(even the line turning at the tab page showing the page loading stops). i seem to have the problem in internet explorer too.
    It really bugs me since sometimes i need to work really fast in here and it holds me waiting.

    Have you asked your question to the game author or the game community? I don't paly the game but I see there is a forum there. Once the game community think it's Flash Player problem, can you come back here and let us know what problem is?

  • Firefox and internet explorer stops for some seconds after i click a link or button(anything which loads something)

    Hi... i have this problem just in one of my PCs with a windows 7 64-bit. When i am in the lordswm.com and i press anything which loads a new web page my browser stops working for some seconds(even the line turning at the tab page showing the page loading stops). i seem to have the problem in internet explorer too.
    It really bugs me since sometimes i need to work really fast in here and it holds me waiting.

    Hi,
    You can try to right-click on the game > '''Settings''', click the lower left icon and deselect '''Enable hardware acceleration''' and check. The [http://forums.adobe.com/community/flashplayer Adobe Flash forum] would also be helpful.
    [http://forums.adobe.com/community/flashplayer/using_flashplayer Flash support]

  • MacBook pro doesnt start. When I start my lap top, it shows the apple and the line uploading but it only goes like to 1/3 and then it goes blank for some seconds, then it turns off by itself and turn on again and happen the same, apple logo, etc

    MacBook Pro doesnt start. When I start my lap top, it shows the apple and the line uploading but it only goes like to 1/3 and then it goes blank for some seconds, then it turns off by itself and turn on again and happen the same, apple logo, line .. the noise like-fan going on, then turn off and turn on again. Tried starting holding option command P and R key and didnt work either. Starting to think I have lost all my data inside

    Try a SMC reset.
    http://support.apple.com/kb/ht3964
    It might be helpful if you indicated the exact model/year of your MBP.  Are you running Lion OSX?
    Ciao.

  • My MacBook Pro 13" won't turn on 90% of the time I try to get it running, and when it does turn on, even on a charger, it shuts down if I stop using it for 2  seconds and it won't turn back on. Should I replace the battery?

    My MacBook Pro 13" won't turn on 90% of the time I try to get it running, and when it does turn on, even on a charger, it shuts down if I stop using it for 2+ seconds and it won't turn back on. Should I replace the battery?  It doesn't hold a charge either...

    EmadJamal,
    the battery won’t melt because of long connection to the AC charger, although that has the potential of reducing the battery’s life.
    Do you have access to a second 60 W AC charger to test with your MacBook Pro, or access to a second 13-inch MacBook Pro against which your AC charger could be tested?

  • I have a macbook pro. The wireless is always conected but it keeps stopping uring browsing for some minutes. However i am using teh same wireless on my iphone and it wok normaly without any stop or cut. Any help please?

    I have a macbook pro. The wireless is always conected but it keeps stopping uring browsing for some minutes. However i am using teh same wireless on my iphone and it wok normaly without any stop or cut. Any help please?

    I'm having the same issue. Different programs though, it's mostly browsers and adobe products. I thought maybe it was heat related but it's not. It seems that as soon as Lion was about to be released, the updates were updating in preparation for Lion. I delayed updating the software updates because Adobe (my career) isn't totally compatible with Lion yet. Before I even started getting update notifications, though, within the recent week, it's freezing up constantly. I don't know what to do. It seems to be happening with my brower choice, I'm using Firefox and Chrome as my main browsers. I keep alot of sessions open but that shouldn't cause (and has never caused) this constant freezing issue. I did install some extensions in Chrome and Firefox, maybe that's the problem... The issues began after those were installed though, 3 weeks to a month later... Maybe the software updates (that I installed thinking it would correct the freezing issue), maybe they are preventing other browsers ? Maybe Apple is getting rid of Chrome and Firefox ? I'm not having issues with Safari (yet) though I just opened it for the first time in 2 months... only because the macbook is freezing (and it's also rebooting while asleep, closing all of my projects and not saving them)...
    My Macbook Pro is the same year and the HDD is a year new. The manufacture recall had the video whatever replaced a few months ago.
    I've never had these kinds of problems with an Apple computer. I'm using Snow Leopard and I'm very attached to this laptop ! It's configured perfectly.
    Why oh why does it freeze constantly within the recent 1-2 weeks ?
    Someone please help us !

  • A way to stop the Freezes in some PowerBooks.

    Hi ,There is a way to stop the freezes in some PowerBooks, including mine.
    Some of us have been turning off the processor nap function, Im not sure of what exactly are the pros and cons of using this way to stop freezes, but at least will give a clue in finding the cause of this problem.
    To turn off this option, you have to get the developers CHUD tools, that are incuded in your xcode files or download them from apple in this page
    http://developer.apple.com/tools/download/
    Once you download it and install it, restart , then go to prefernces panels, in the HARDWARE panels there will be a new pane, called PROCESSOR, open it and there you will see the option to turn off NAP...uncheck it and you are done. To make it more accesible choose the option in the bottom to Show control in menu bar. Everytime you restart the computer you will have to go and uncheck this NAP option. Some other guys have done startup scripts to make it automaticaly, but I prefer to spend a couple of seconds in doing it.
    Here is another link to a thread I posted before when freezes started in my new PB, It may help you in findig the way.
    http://discussions.apple.com/thread.jspa?messageID=2093998#2093998
    I still have to understand more about NAP function, learn the risks, pros and cons...so if you have the same problem and decided to try this option, post your results, your PB model and any other suggestion that will help to find out whats causing this.
    Any suggestions, comments, knowledge about this will be appreciated.Thanks.
    My Powerbook is a HR 15 in PBook at 1.67ghz, 1.5gb Ram
    I have 4 days with out a freeze since I turned nap off.
    PBG4 1.67 15in. G5PPC DP2.GHZ, G4 400MHZ Mac OS X (10.4.6)

    Here is a link to a description of power saving modes in PowerBooks, I have already seen some posts on this but I just wanted to make sure by reading this from apple.
    http://developer.apple.com/documentation/Hardware/DeveloperNotes/Macintosh_CPUs-G4/PowerBook_G4Apr02/1Introduction/Power_SavingFeatures.html
    As far as I understand, NAP on will help you to save energy and to keep the processor cooler.
    When the computer is idle for a few seconds, then Processor Nap turns on...perhaps some how our PBooks have some problems by taking a NAP and coming back. Still have to read.
    The only thing that will jump here is the tempreature issue.
    I have also seen in some posts that NAP OFF increases the PB temperature, so keeping the computer cool should help to prevent overheating, Im planing to start some tests in monitoring the temps and see how much heat generates while Nap is Off.
    Any other ideas, info or advice will be welcomed.
    PBG4 1.67 15in. G5PPC DP2.GHZ, G4 400MHZ   Mac OS X (10.4.6)  

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • Hi I was using whatsapp on my iPhone5.I was not able go to the main menu by pressing the center button so I hold on to the button for 2 seconds.Then the whole display turned out to be black

    I was not able go to the main menu from whatsapp by pressing the center button so I hold on to the button for 2 seconds.Then the whole display turned out to be black & white. how can i fix it?

    Hello monicaa003,
    Thanks for participating in the Apple Support Communities.
    If your iPhone display turned black and white after holding down the Home button for 2 seconds, first try pressing the Home button again to go to the main menu (Home screen.)
    For reference, holding down the Home button for 2 seconds will trigger Siri if that feature is enabled:
    About Siri - Apple Support
    If pressing the Home button doesn't return you to the main menu, try restarting or resetting your iPhone:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Additionally, if Whatsapp is not responding or working as expected, see the troubleshooting steps at this link:
    If an app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Best Regards,
    Jeremy

  • Flash games freeze for some seconds every some minutes

    I just had a stupid moment and upgraded from Firefox 22 to 30 yesterday. I know every version adds problems and removes features, but I wanted check what is the current status.
    Now, Firefox 30 freezes flash games for some seconds every some minutes. Of course, with the 22 this never happened.
    The computer is identical, only Firefox is changed.
    Considering the level of the answers here, I in advance say:
    * no there are no viruses or malwares - I said only Firefox is changed
    * yes I cleared cache cookies and other stuff people say when they do not know what else to say
    * yes flash is the same version
    * I have no theme and the addons are the same of the old version
    * I could care less about safe mode. The old version never saw safe mode and it worked fine
    Maybe there is some stupid about config setting for which Firefox want an useless disk access? something new in the version 30 I mean.
    Maybe version 30 is become so inefficient that when it updates the cache it freezes totally?
    I have last faint hope for some real practical suggestion, for which I thank in advance.
    With FF 22 I could play flash games for hours without problems, with v 30 I need to close it every hour otherwise it takes so much RAM (up to 2 GB) it totally hangs. But hey they removed the download window, they say "use an addon". When the RAM is totally out, they say "you have too many addons". Wonder why. Next time we will need an addon for supporting images?

    Hi zzzz1,
    This is a really good question. It has been a while since I have tried version 22, but you have mentioned most of the recommended troubleshooting steps including: malware, clearing cache(offline), updating flash, safe mode and no new add ons.
    I wonder if the new version has different system requirements.
    [https://www.mozilla.org/en-US/firefox/22.0/system-requirements/ version 22][https://www.mozilla.org/en-US/firefox/30.0/system-requirements/ version 30]- No.
    There are add ons that optimize cache size and block flash content, as well as Ad block plus which blocks some scripts running in the browser. These could minimize the 2GB of Ram.
    In all practicality, have you tried reinstalling Flash or clearing the actual flash cache. This may mess with online game storage though, so maybe not.
    Have you tried a new profile? [[Using Multiple Profiles]]

  • Block removed only pressing the red button some seconds

    I'm facing a problem from 2 days. My 8500 curve freezes, and after I need push the red button for some seconds, after I can use it almost  normally.
    Almost, because it seems the "o" key in the keyboard is pressed also when I don't press it. After some seconds, the things turn normally.
    I suspect a software problem,
    Thank you

    Hello infolabsas, 
    Welcome to the forums. 
    In this case we can try to reload the software on the BlackBerry® smartphone to make sure it is running the latest version and there are no issues with the OS.
    Here is how to backup your BlackBerry smartphone http://bbry.lv/oPVWXc
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB03621
    Once completed test it and proceed with a selective restore, here is how to restore http://bbry.lv/qgQxLo
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for

  • How can I find my serial number for Adobe Acrobat 11. I got a new iMac and I don't want to use the new version at £18.00 per month. I don't need it. Thank you

    I used to use CS5 and I want to use the Acrobat version on my new iMac. How can I find my serial number for Adobe Acrobat 11.  I don't want to use the new version at £18.00 per month. I don't need it. Thank you

  • Advanced functions,UDF's and node function

    Dear all, Can you kindly let me know about Advanced functions,UDF's and node function.Differences and Uses. Also Let me know about the advantages,Disadvantages of Graphical,XSLT,Java,ABAP and ABAP XSLT mappings. Thanks, Srini

  • Need STOPWATCH that disables the auto-lock

    Here's the deal ... I start the stopwatch ... because I don't know how long it'll take (otherwise I'd use the timer, right?) ... and after a few minutes, the screen goes black ... and now I don't know how far along I am. I'm sorry ... but that's just

  • Dynamic select page format

    Hi All, My requirement is to pass page format from SE38, instead of assign in smartforms. because here two devise LP01 and LP02. LP01 for Laser printer and LP02 for dot matrix printer. It is correctly print in LP02, because for that page format is co

  • Faces images in Photos Library

    It seems that iPhone has taken the zoomed and cropped photo that's used for Faces and imported it in to my Photo library. Also, I have a ton of duplicates all of the sudden. I went from 4,000 photos to over 9,000. Old photos that were previously dele