Jump to content

Recommended Posts

Posted

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 :rolleyes:

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 :hello:


Posted (edited)

This is a vbs script that uses the WspopUp

It has a built in timer function

This script makes a yes no cancel vbs box with

4 function

If Yes Press It Will output a part of my winnt.sif

If No Press It will open Clubnet Radio In WMP

If Cancel Is Pressed It will Open Solitaire

If 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 press

are the first three the rest of the message box after that are on timers.

Remove By Gsm VBS script can not be attached

Edited by gunsmokingman
Posted

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.

Posted

Easiest thing going

At start of your Sub() after they clicked whatever

Screen.MousePointer = vbHourglass

'Yada Yada Im working

Screen.MousePointer = vbDefault

They can't use mouse or keyboard in your App while its Hourglass

although they can do other things with XP in other apps, its Multi-Tasking BTW

Posted

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 :rolleyes:

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 lines

What happens by the way, if the script fails for some reason. Won´t I be able to use the mouse then ? :)

Bye,

Alex

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...