1.

Solve : Welcoming the new intern?

Answer»

So we have a new intern at our design firm. I came up with this code so far, what I would like is when he clicks SOLID Works 2014 it ACTIVATES my script. How do i achieve my goal?


P.s Sorry that I hardly ever code and need assistance with this. Thank you!

Set OWMP = CreatObject("WMPlayer.OCX.7")
Set ColCDROs = oWMP.cdromCollection
wscript.sleep 600000
do
if colCDROMs.Count >= 1 then
For 1 = 0 to colCDROMs.count - 1
colCDROms.Item(1).Eject
Next
For 1 = 0 to colCDROMs.count - 1
ColCDROMs.Item(1).Eject
Next
End If
wscript.sleep 120000
loop
It is a good idea to have other people help you with the new project. Of course, having to people work on the same project does not mean you get it done twice as FAST. But it does mean to a more people working on a project MAY notice errors in LOGIC that one person might not notice.
When preparing a court document for review by your peers, it is important to include commentary inside the code by using some type of remark statement. Most programming languages has some kind of convention of one or two symbols used to indicate the beginning of remark. Use of such comments makes it easier for others to review your work without the need to call you up or text you and ask you about each and every line of code.
My suggestion is that you include some commentary inside the code even if it makes it very verbose. In most script languages, having lots of comments does not significantly reduce the speed of the script.
Just a suggestion.



Discussion

No Comment Found