0

Hello,
Can you help me... I am trying to make a vbs file that when you open it, it automaticly takes up the full screen. Do you know a code that will do this?
-Thanks

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by jhai_salvador
0

In VB6.0 we would use something like screen.width and screen.height, but for VBS? Don't rightly know off hand...

Good Luck

1

if you just need to open it, you can use SHELL in vb, something like this...

Shell YourVBSFile, vbMaximizedFocus
0

Thanks, but when I entered that into the code "Shell Error, vbMaximizedFocus" I keep getting an error message saying that the error is on that line in the first digit. The file is named Error.vbs I tried putting in the file extention and both times I still got an error message. Help?

strtext="Test"
set objvoice=createobject("sapi.spvoice")
objvoice.rate=2
objvoice.speak strtext
do
Shell Error, vbMaximizedFocus
x=msgbox ("Screen test" ,0+16+4096, "Test")
loop

if you just need to open it, you can use SHELL in vb, something like this...

Shell YourVBSFile, vbMaximizedFocus
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.