Monday, June 3, 2024
134
rated 0 times [  141] [ 7]  / answers: 1 / hits: 16684  / 14 Years ago, thu, march 24, 2011, 12:00:00

Is there a command line argument in Chrome to start the developer tools on startup without haveing to press Ctrl+Shift+J every time?


More From » google-chrome

 Answers
23

I did not find the way to do it via command line, but here is the workaround that I use, you might find it useful as well
First it only works on Windows, though I suspect similar things might be done on Mac and Linux as well.



I use Windows Scripting Host, to send key as if they were preseed from within the app.
File keys.wsf



<package>
<job id=js>
<script language=JScript>
var shl = WScript.CreateObject(WScript.Shell);
var WINTITLE= Chrome
shl.AppActivate(WINTITLE);
WScript.sleep(500);
shl.SendKeys (^+i);
</script>
</job>
</package>


If you know that your Crome window title is might help to replace WINTITLE


[#93086] Wednesday, March 23, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jarrettw

Total Points: 300
Total Questions: 98
Total Answers: 103

Location: Saudi Arabia
Member since Mon, Sep 5, 2022
2 Years ago
;