Jump to content

New QuickLaunch Script


 Share

Recommended Posts

Copy and pastes as a .vbs and click away :)

Set sa = CreateObject ("Shell.Application")
sa.TrayProperties

set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.SendKeys "%q"
Wscript.Sleep 000
WshShell.SendKeys "{ENTER}"

I left the sleep command there set to zero.

Incase you are running it while the system is busy and it fails to work as expected increse by x100 till it works.

Link to comment
Share on other sites


I tried

HKLM,%RunOnce%setup,"Microsoft Windows Journal Viewer",0, "cmdow /run /hid CMD.EXE /c msiexec /qn /i c:\\install\\system\\Recomended\\MSJournal\\MSWJV.msi"

But i found that handing it off to cmdow caused the .inf proccess to go straight to the next option rather than waiting for it to finish. But it does install it.

Link to comment
Share on other sites

well I found in some instances things did not install I could not track it down completetly so iremoved it from doing it htat way and now everything installs correctly the first time.

I found something called econsole and it is jsut a wrapper for cmd.exe it allows my with an ini file to place the command propmpt off the viewable area of the screen I think I will use this instead.

It also allows for transparent consoles and the like. I think it would look mighy good even if i did have to let it show.

Link to comment
Share on other sites

  • 2 months later...

This may be more for vbs scripts in general but I'm trying to figure out how to run the vbs from a cmd file. If I double click your script, it works fine. However if I execute it from my install.cmd file then it opens the taskbar and start menu properties and says 'q' is not recognized.

Link to comment
Share on other sites

I've only just begun to mess with this, but I think you need to preface any .vbs with "wscript.exe" within a .bat/.cmd file, like so:

CLS
@ECHO OFF
TITLE Importing Registry Settings...
COLOR 8f

wscript.exe "yourpath\invis.vbs" "yourpath\RegTweaks.cmd"

exit

In this example, invis.vbs holds the following:

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

The first batch is packaged as "launch.cmd," which flares briefly and disappears. RegTweaks.cmd runs in absolute invisible mode. I found this on another site and am in no position to comment (non-programmer), dunno if it's off the screen, or really not there, but it works like a charm. No more scrolling batch files, ever. :) Any VBSers out there care to interpret invis.vbs?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...