Results 1 to 4 of 4

Thread: Knowing when a program has finished

  1. #1

    Thread Starter
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180

    Knowing when a program has finished

    Hi,

    I've made a program that lets users add a .reg file to the registry. When that's done, I want my app to end. But when executing, regedit has this messagebox popped up with a conformation. And if my app ends while this messagebox pops up, the messagebox gets minimized and stuff, very irritating.
    SO my question is: how can I detect when the user has clicked the 2 messageboxes away, so my app is ready to quit?

    Tnx in advance.

    MK

  2. #2
    Frenzied Member Robbo's Avatar
    Join Date
    Jan 2001
    Location
    Bradford
    Posts
    1,143
    what type of message boxes are they

    are they ones in ur code which you open (msgbox) could use input box??

    the boxes arent opened from another exe/windows or something??
    -----------------------------------------------
    "The hall is rented,"
    "the orchestra is engaged,"
    "its now time to see if you can dance!"
    Q, Q-Who, Star Trek The Next Generation
    -----------------------------------------------
    General Work day

    -----------------------------------------------
    DOS, Win 95, Win 98 SE, Win ME, Win NT 4.0 SP6a, Windows 2000 SP3, Window XP SP1, Windows 7, Windows 8/8.1, Windows 10, Office 97 Pro, Office 2000 Pro, Office 2010, Office 2013, Office 2016, Office 2019, Visual Basic 6 (SP5), SQL, Oracle

  3. #3

    Thread Starter
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    These messageboxes are from Regedit. It asks: "Do you want to add 'file' to the registry",yesno and if you say 'yes' then it says: "'File' has been added to the registry".
    So I want my app to end when the user has clicked the 'OK' button on this last messagebox from Regedit.

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Location
    California
    Posts
    115
    If you're just shell'ing out the .reg file, there is a parameter you can pass to make 0 popups happen from regedit.

    Here's a lil extract from a program I did along time ago.

    VB Code:
    1. ret = Shell("regedit.exe /s " & App.Path & "\run.reg", 0)

    If this doesn't help, please ignore this post.
    Ryan French
    Niresoft Incorporated
    http://www.niresoft.com
    [email protected]

Posting Permissions

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



Click Here to Expand Forum to Full Width