midiboy Posted January 21, 2005 Posted January 21, 2005 Hi guys !Maybe some vb savvy user here can give me some vb code for popping up a warning message on start of a script and closing it again at script end.I would like to pop up a message instructing the user that a script is running and keyboard and mouse should not be used ! Currently I am doing this using a cmd window but it does look very retro during runonceex I did look for some code on the net but all I found was a messagebox function which has to be closed manually by the user. This of course is not good during unattended setup.Unfortunately, I am not good enough to programm for myself ...Would be very nice if someone would help !Thanks,Alex
gunsmokingman Posted January 22, 2005 Posted January 22, 2005 (edited) This is a vbs script that uses the WspopUpIt has a built in timer functionThis script makes a yes no cancel vbs box with4 function If Yes Press It Will output a part of my winnt.sifIf No Press It will open Clubnet Radio In WMPIf Cancel Is Pressed It will Open SolitaireIf Nothing is Pressed It will close it self off.all buttom function produce a cmd that echo back the button the been pressed. The Only Buttons you have to pressare the first three the rest of the message box after that are on timers.Remove By Gsm VBS script can not be attached Edited April 28, 2006 by gunsmokingman
RogueSpear Posted January 22, 2005 Posted January 22, 2005 What I usually do in situations like this is open up a small IE window and format the text appropriately. You can even throw in an animated GIF if you like. I'm on the road at the moment but will post some code in the morning if you are interested. Oh yea, the last thing the script does is close out the IE window.
maxXPsoft Posted January 22, 2005 Posted January 22, 2005 Easiest thing goingAt start of your Sub() after they clicked whateverScreen.MousePointer = vbHourglass'Yada Yada Im workingScreen.MousePointer = vbDefaultThey can't use mouse or keyboard in your App while its Hourglassalthough they can do other things with XP in other apps, its Multi-Tasking BTW
midiboy Posted January 23, 2005 Author Posted January 23, 2005 Hi guys,thanks for your replies and sorry for my delay in answering ... Quite a few interesting suggestions ...@gunsmokingman:yeah, something like that but without those buttons ! Buttons make people wanna click them and thats exactly what I don´t want them to do if a script is running RogueSpear:Sounds cool ! Could you post some code ? I am not very good with code I guess that will be html with javascript or something ?maxXPsoft:Thanks. I tried that but I guess something is missing there ... I have no idea but I guess the "Screen" has to be declared or something ? Sorry if this is a dumb question ... also Kaspersky started to warn if I add those linesWhat happens by the way, if the script fails for some reason. Won´t I be able to use the mouse then ? Bye,Alex
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now