Log in

View Full Version : VBScript Error



[Nicolas]
05-25-2011, 06:50 PM
Hey! Long time no see!
Ok, so, when 'making' an image in VB I have some errors.


<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:



<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.

[Nicolas]
06-08-2011, 12:11 AM
bump

Someone please answer..

djr33
06-08-2011, 02:29 AM
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.

[Nicolas]
06-10-2011, 11:09 PM
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.