+ Reply to Thread
Results 1 to 9 of 9

Wait for beep

  1. #1
    Registered User
    Join Date
    01-26-2011
    Location
    calif
    MS-Off Ver
    Excel 2010
    Posts
    23

    Wait for beep

    I have an excel time sheet and I want to transfer the info to another software. I have managed to get the software to open; however, to login I have an application.wait (time) set up. The problem is that I keep having to change the wait time depending on the computer. Once the software (program) loads up, it always emits the beep sound.

    same beep as:

    Please Login or Register  to view this content.
    I was wondering if it was possible to make excel wait for the beep of the other program before continuing with my login? Not sure if it makes sense, but something like this.

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Wait for beep

    I've never tried that, but an easy workaround is that your program creates a simple text empty text file and let's say it will name it as 'beep.txt'. Excel keeps looping until it finds 'beep.txt'. Once it finds it, it deletes it and continues with the vba application.

    Hope this helps.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Wait for beep

    I found this worked example online (http://www.makeuseof.com/tag/monitor...-slick-script/) that might help.

    abousetta

  4. #4
    Registered User
    Join Date
    01-26-2011
    Location
    calif
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Wait for beep

    Thanks for the reply. I am a total noob and will give it a shot. Hopefully I can make it work.

  5. #5
    Registered User
    Join Date
    01-26-2011
    Location
    calif
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Wait for beep

    I just cant figure it out. I tried looking for a file that the application would make on startup but I cant find anything.

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Wait for beep

    Hi,

    OK, I was assuming that you wrote the code for the 'other program'. If not then I'm not sure what the next step would be. Maybe if there was something in the Windows API that was triggered by sound or can capture sound then we may be able to tap into that, but I honestly have no idea how to proceed in capturing a sound created by another program. I'm not saying that it can't be done, but how is out of league.

    Sorry I couldn't be of more help.

    abousetta

  7. #7
    Registered User
    Join Date
    01-26-2011
    Location
    calif
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Wait for beep

    No problem, I appreciate the help.

  8. #8
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Wait for beep

    Is the "other" application a browser based solution, or a program like Word or something else? How did you manage to start it?
    If you like my contribution click the star icon!

  9. #9
    Registered User
    Join Date
    01-26-2011
    Location
    calif
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Wait for beep

    Sorry, I didnt notice the reply. It is a Java based application. The only way i got the application to open was with prompt command. Cant really post the name, however i found a vba that gives you a pop-up if the a application you want open is not open... I played with it and i know it is totally wrong but this is what I did.

    Please Login or Register  to view this content.
    I want the vba to wait until the program finishes loading. Sometimes the programs takes to long and I get a timeout from excel. IOU is just a series of Sendkeys. This has been the only way i have managed to make the vba code wait and look for the program. Im still trying to figure out a better way.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1