473,503 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timer to launch VB code?

118 New Member
I am making a CD based website. I have made the code to open the CD tray... (below)

Expand|Select|Wrap|Line Numbers
  1. <SCRIPT LANGUAGE="VBScript">
  2. <!--
  3.  
  4. Set oWMP = CreateObject("WMPlayer.OCX.7" )
  5. Set colCDROMs = oWMP.cdromCollection
  6.  
  7. if colCDROMs.Count >= 1 then
  8.         For i = 0 to colCDROMs.Count - 1
  9.                 colCDROMs.Item(i).Eject
  10.         Next ' cdrom
  11. End If
  12.  
  13. -->
  14. </SCRIPT>
  15.  
This code has to be placed in the <head> tag but will execute automatically on the loading of the page. Is it possible to set a timer for it to execute after 60 seconds, for example; or on the click of a button?

Thanks,

Sam
Apr 25 '07 #1
3 1147
Killer42
8,435 Recognized Expert Expert
I'd suggest you also try asking in the HTML forum. This sounds like their kind of question.
Apr 25 '07 #2
Dököll
2,364 Recognized Expert Top Contributor
Good point, also look in JavaScript...
Apr 26 '07 #3
Killer42
8,435 Recognized Expert Expert
Good point, also look in JavaScript...
Yeah, wouldn't hurt I suppose.

If anyone gives you any stick about multiple posts, tell 'em we sent you. (We'll deny it, of course. :D)
Apr 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2217
by: Benny | last post by:
Hello Experts, Currently I am working on a windows application using VS.NET 2002 with C#. On one of my form, I have a refresh button which will dispose created controls and re-create them. I...
8
2766
by: Daniel P. | last post by:
I'm trying to set a timer that gets called every 3 seconds so I can update a field in the UI with the time elapsed since the process started. What am I doing wrong that timerDF_Tick does not get...
14
2545
by: Crirus | last post by:
This is more a logical problem than a VB. I have this situation: A timer that need to tick at each 10 minutes starting on minute 15 of curent hour. But I want to calculate the next tick...
2
1871
by: John Devlon | last post by:
Hi everyone.... I'm trying to make something work... When I launch a new form, the application has to quit after a few seconds... I searched the net for some hours and I can't find any...
3
1903
by: Rob R. Ainscough | last post by:
I have a Windows Service with a timer that use the .NET 2.0 Shell command. The Shell command returns a non-zero number but Task Manager shows the shelled exe running but there is NO visible...
2
4658
by: janama | last post by:
Hi all, Using wx When adding a second timer as i have the first, the second timer adding stops the first timer (updating or stops?) . In this example im updating a uptime and localtime label....
7
5942
by: RobKinney1 | last post by:
Hello, Wow...I have one for you all and hopefully I am not understanding this timer object correctly. I have a timer setup that pulses a connection through a socket every 60 seconds. But it...
15
6698
by: Scott M. | last post by:
Hi, I'm an old VB6 guy just starting out in VB.Net using Visual Studio Express. I want to build a simple console app that will create a simple text file every 10 minutes. I can create the file...
16
3227
by: Peter Oliphant | last post by:
Note that although this involves SAPI, it is more a question about Timers and event handlers. I wrote a Speech Recognize handler (SAPI), and put some code in it to enable a Timer. It would not...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.