Results 1 to 4 of 4

Thread: VBScript Error

  1. #1
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default VBScript Error

    Hey! Long time no see!
    Ok, so, when 'making' an image in VB I have some errors.
    Code:
    <script language="VBScript">
    Function tt()
    objShell.Sendkeys "%{prtsc}"
    
    wscript.Sleep 500
    objShell.Run("C:\Windows\System32\mspaint.exe")
    wscript.Sleep 500
    
    Do Until Success = True
        Success = objShell.AppActivate("Paint")
        Wscript.Sleep 500
    Loop
    
    objShell.SendKeys "^v" 
    Wscript.Sleep 500 
    objShell.SendKeys "%fs" 
    End Function
    
    </script>
    Ok, there's the code to the image making process thingamajig.
    Now, the simple button:

    Code:
    <input type="button" onclick="tt()" value="Start Image Making">
    When I try it, I have an error saying "Object required: 'objShell'" on the line objShell is on. Please help, thank you.
    Daba! The Fantage-like website
    Virtual World in progress.
    Out of pure HTML, Javascript, and CSS. Oh, and poorly done Paint images.

  2. #2
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    bump

    Someone please answer..
    Daba! The Fantage-like website
    Virtual World in progress.
    Out of pure HTML, Javascript, and CSS. Oh, and poorly done Paint images.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I think no one has answered because no one knows. I don't how many people here use VBScript at all-- especially for images. Just letting you know. Feel free to wait though and see if someone finds this, maybe on a search engine. There's always a chance.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by djr33 View Post
    I think no one has answered because no one knows. I don't how many people here use VBScript at all-- especially for images. Just letting you know. Feel free to wait though and see if someone finds this, maybe on a search engine. There's always a chance.
    Alright. Darn. I might be using Flash for this anyways. But if someone answers that would be fantastic. Thanks.
    Daba! The Fantage-like website
    Virtual World in progress.
    Out of pure HTML, Javascript, and CSS. Oh, and poorly done Paint images.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •