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

Author Topic: vbscript file help  (Read 2770 times)

0 Members and 1 Guest are viewing this topic.

bigbutt100

    Topic Starter


    Rookie

    vbscript file help
    « on: September 15, 2010, 07:14:25 PM »
    I would like to make a vbscript to select create restore. I have an error when I run it maybe do to the tabbing...I need it to tab over 5 times and then press enter. here is my code:

    set a = createobject("wscript.shell")
    a.run "SystemPropertiesProtection.exe"
    wscript.sleep (1000)
    'call msgbox("dont click mouse")
    rem oshell.sendkeys "{tab}"
    rem oshell.sendkeys "{tab}"
    rem oshell.sendkeys "{tab}"
    rem oshell.sendkeys "{tab}"
    rem oshell.sendkeys "{tab}"
    wscript.sleep (200)
    oshell.sendkeys "~"
    wscript.quit

    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: vbscript file help
    « Reply #1 on: September 15, 2010, 07:23:47 PM »
    I need it to tab over 5 times and then press enter.

    And yet your script tabbing over 5 times and pressing Tilde..

    Enter would be indicated with a {ENTER}.
    I was trying to dereference Null Pointers before it was cool.

    bigbutt100

      Topic Starter


      Rookie

      Re: vbscript file help
      « Reply #2 on: September 15, 2010, 07:34:03 PM »
      what do you mean Tilde?

      thanks for the enter command (I used ~ because it showed it in youtube)

      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: vbscript file help
      « Reply #3 on: September 15, 2010, 07:34:54 PM »
      what do you mean Tilde?

      thanks for the enter command (I used ~ because it showed it in youtube)


      ~ is a tilde.
      I was trying to dereference Null Pointers before it was cool.

      bigbutt100

        Topic Starter


        Rookie

        Re: vbscript file help
        « Reply #4 on: September 15, 2010, 07:41:24 PM »
        oh what does tild do and my script still doesnt tab..thanks