Information générale
Catégorie:
Codage, syntaxe et commandes
>Have a c++ timer running in the background. The cpptimer.fll executes a custom method (oapp.killitcheck) every 10 seconds. When a killit.wrn file is found, the client is given a messagebox asking to quit. When a killit.ded file is found, the cleanup routine is executed., and the client is exited from the app. My cleanup routine is not being working if the client never responded to the original messagebox.
>
>I am not sure if oapp.killitcheck is not being executed with the messagebox up, or if the killit.ded code is being executed but the program will not QUIT with a messagebox up. Guess I do not understand much about timers or messageboxes. Anyone have any ideas?
>
>Thanks - Brenda
Hello Brenda!
I am very happy that you can use my cpptimer fll. Timer event occurs during MessageBox is displayed. Here is a short code to close the messabe box in 5 sec: (Tested on VFP5a and VFP6)
set library to cpptimer.fll
inittimers(1,100)
setuptimer(1,5000,'closemessage()')
messagebox("Hello!")
stoptimer(1)
set library to
function closemessage
KEYBOARD '{ENTER}'
endfunc
BB
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement