Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: send all ur succesfull scripts  (Read 15573 times)

0 Members and 1 Guest are viewing this topic.

Helpmeh



    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: send all ur succesfull scripts
« Reply #30 on: November 27, 2009, 05:04:45 AM »
When did you purchase Computer Hope in order for the thread to be yours?

I asked a simple question.
Obviously he clicked the offer to buy CH when he registered.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

pds

    Topic Starter


    Beginner
  • konichiwa kamisan ^_^
  • Thanked: 2
    Re: send all ur succesfull scripts
    « Reply #31 on: December 09, 2009, 08:50:28 AM »
    i have made a automatic cd opener in dos with vbs

    MENU SOURCE
    Code: [Select]
    @echo off
    cls
    title PDS CD/DVD RAW OPENER (DOS) VER 2.9
    :INPUT
    echo copyright by team p.d.s.
    set/p "input=>
    if %input%==help goto HELP
    if %input%==open goto OPEN
    if %input%==take out goto OPEN2
    if %input%==exit goto EXIT
    if %input%==cmd goto C
    if %close%==close goto CLOSE
    :HELP
    echo
    open = to open your cdrom slot
    echo exit = to close this window
    echo C CMD/DOS
    echo e-mail:[email protected]
    goto INPUT
    :EXIT
    exit
    :OPEN
    start open.vbs
    :C
    cls
    command.com

    OPEN source (.vbs)

    Code: [Select]
    Set oWMP = CreateObject("WMPlayer.OCX.7")
    Set colCDROMs = oWMP.cdromCollection
    colCDROMs. item(i).Eject

    (i hope you like this stuff)
    copyright by pds *me*

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: send all ur succesfull scripts
    « Reply #32 on: December 09, 2009, 10:09:56 AM »
    VB4,5 and 6 Code module equivalent that requires no external ActiveX dependencies.

    Code: [Select]
    Option Explicit
    Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long

    Public Sub CloseCD()
         Dim Lngreturn As Long
         Dim Strreturn As Long
         Lngreturn = mciSendString("set CDAudio door closed", Strreturn, 127, 0)
    End Sub
    Public Sub OpenCD()
         Dim Lngreturn As Long
         Dim Strreturn As Long
         Lngreturn = mciSendString("set CDAudio door open", Strreturn, 127, 0)
    End Sub

    There are other MCI commands that could be executed, including opening a sequencer and playing CD audio, seeking, etc. However I haven't used MCI for a very long time.
    I was trying to dereference Null Pointers before it was cool.

    Salmon Trout

    • Guest
    Re: send all ur succesfull scripts
    « Reply #33 on: December 09, 2009, 12:45:54 PM »
    Autoit is so handy! Even allows one-liners from the prompt.

    Code: [Select]
    C:\>Autoit3 /AutoIt3ExecuteLine  "CDTRay ('X:', 'open')"
    C:\>Autoit3 /AutoIt3ExecuteLine  "CDTRay ('X:', 'closed')"

    X: is my optical drive's letter.




    ghostdog74



      Specialist

      Thanked: 27
      Re: send all ur succesfull scripts
      « Reply #34 on: December 09, 2009, 09:15:09 PM »
      Autoit is so handy! Even allows one-liners from the prompt.

      Code: [Select]
      C:\>Autoit3 /AutoIt3ExecuteLine  "CDTRay ('X:', 'open')"
      C:\>Autoit3 /AutoIt3ExecuteLine  "CDTRay ('X:', 'closed')"

      X: is my optical drive's letter.

      well, that's called abstraction :).

      vbscript:
      Code: [Select]
      Const CDROM = 4
      Set objFS=CreateObject("Scripting.FileSystemObject")
      Set shell = CreateObject("Shell.Application")
      For Each drives in objFS.Drives
        If drives.DriveType = CDROM Then
          cd=drives.DriveLetter & ":\"   
          'Eject
        shell.Namespace(17).ParseName(cd).InvokeVerb("E&ject")   
        End If
      Next
      Code: [Select]
      c:\test> cscript //nologo eject.vbs
      there, also one line :)

      pds

        Topic Starter


        Beginner
      • konichiwa kamisan ^_^
      • Thanked: 2
        Re: send all ur succesfull scripts
        « Reply #35 on: December 12, 2009, 02:33:37 AM »
        i only know C++ C# C DOS
        I'm study VBS

        ghostdog74



          Specialist

          Thanked: 27
          Re: send all ur succesfull scripts
          « Reply #36 on: December 12, 2009, 02:42:56 AM »
          Code: [Select]
          Set oWMP = CreateObject("WMPlayer.OCX.7")
          Set colCDROMs = oWMP.cdromCollection
          colCDROMs. item(i).Eject

          (i hope you like this stuff)
          copyright by pds *me*
          what is "i"  in "item(i)" ? and why is there a space between colCDROMs. and "item(i)" ??

          pds

            Topic Starter


            Beginner
          • konichiwa kamisan ^_^
          • Thanked: 2
            Re: send all ur succesfull scripts
            « Reply #37 on: December 13, 2009, 04:34:26 AM »
            those are values, object, commands and variables

            ghostdog74



              Specialist

              Thanked: 27
              Re: send all ur succesfull scripts
              « Reply #38 on: December 13, 2009, 05:24:34 AM »
              those are values, object, commands and variables
              i know what they are called. What i mean is , where is "i" variable defined in the vbs??

              pds

                Topic Starter


                Beginner
              • konichiwa kamisan ^_^
              • Thanked: 2
                Re: send all ur succesfull scripts
                « Reply #39 on: December 13, 2009, 06:40:03 AM »
                you know variable "i" in vbs i that (i) (350)

                Salmon Trout

                • Guest
                Re: send all ur succesfull scripts
                « Reply #40 on: December 13, 2009, 07:01:52 AM »
                pds, unfortunately you are (and have been) posting nonsense. if you cannot answer questions properly, do not answer them at all.

                ghostdog74



                  Specialist

                  Thanked: 27
                  Re: send all ur succesfull scripts
                  « Reply #41 on: December 13, 2009, 06:07:45 PM »
                  i can only guess that those code are not written by him but cut and paste and then doing it blindly

                  Helpmeh



                    Guru

                  • Roar.
                  • Thanked: 123
                    • Yes
                    • Yes
                  • Computer: Specs
                  • Experience: Familiar
                  • OS: Windows 8
                  Re: send all ur succesfull scripts
                  « Reply #42 on: December 13, 2009, 07:38:16 PM »
                  i can only guess that those code are not written by him but cut and paste and then doing it blindly
                  and what makes it funnier is that she "copyrighted" them so we would think she made them.
                  Where's MagicSpeed?
                  Quote from: 'matt'
                  He's playing a game called IRL. Great graphics, *censored* gameplay.

                  Quantos



                    Guru
                  • Veni, Vidi, Vici
                  • Thanked: 170
                    • Yes
                    • Yes
                  • Computer: Specs
                  • Experience: Guru
                  • OS: Linux variant
                  Re: send all ur succesfull scripts
                  « Reply #43 on: December 13, 2009, 09:11:15 PM »
                  wat? No. Your post applies quite well.  ;D
                  I thought you meant poster as in the image that I posted, sorry man, didn't realize that you meant the OP.
                  Evil is an exact science.

                  pds

                    Topic Starter


                    Beginner
                  • konichiwa kamisan ^_^
                  • Thanked: 2
                    Re: send all ur succesfull scripts
                    « Reply #44 on: December 14, 2009, 08:11:33 AM »
                    this script isn't written by me but by a friend

                    i only made a dos menu for it.

                    why your so hard on me if you wanna play the game so i can play it hard too