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