|
-
Apr 25th, 2002, 09:27 AM
#1
Thread Starter
Banned
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
-
Apr 25th, 2002, 09:39 AM
#2
Frenzied Member
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
-
Apr 25th, 2002, 02:16 PM
#3
Thread Starter
Banned
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.
-
Apr 25th, 2002, 02:20 PM
#4
Lively Member
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:
ret = Shell("regedit.exe /s " & App.Path & "\run.reg", 0)
If this doesn't help, please ignore this post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|