« Google Chrome Stats – Is Chrome fading away?
Chrome Hack – How to Run Chrome on 64-bit Windows 7! »

28 Jun 08 How to Start Chrome in Incognito Mode using Javascript!

Well, it looks like our previous hack on how to start Chrome in Incognito Mode fails in Vista, but here’s an alternative Javascipt version you can save as XXX.js and make it work using Javascript:

//Chrome_Incognito.js – start new chrome incognito(sort of)

var liWait=175; //wait ms (double on older pc)

var oSh=new ActiveXObject(”WScript.Shell”);
oSh.Run(”chrome.exe”); //start chrome
WScript.Sleep(liWait);
oSh.Sendkeys(”^+N”); //start new incognito window
WScript.Sleep(liWait);
oSh.Sendkeys(”%{Tab}”); //go previous(first) browser window
WScript.Sleep(liWait);
oSh.Sendkeys(”%{F4}”); //close first browser window

via hackszine

Tags:, , , , , , , ,

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Related Posts