Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Start Chrome - chrome://settings/clearBrowserData

start chrome - start page

  • Please log in to reply
4 replies to this topic

#1 MattX

MattX

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 349 posts

Posted 01 September 2012 - 03:57 PM

I have a simple taskbar script which has some hotkeys setup + it brings up a list of a few websites. As clearing the cache is important at the moment for some users I wanted the option of chrome opening with the page that shows the clear browser settings. Thinking this would be straight forward like launching any browser eg:

chrome.exe www.autoitscript.com

I put in

chrome.exe chrome://settings/clearBrowserData

thinking it would launch and display that option page - it doesn't. It just defaults [ well in my case ] to google. I don't want to have to code deleting the user's %appdata%\AppData\Local\Google\Chrome\User Data\Default\Cache folder but will if required. It would be great just to get that page when they click on the option of use the hotkey.
Any ideas or work arounds anyone ?







#2 FireFox

FireFox

    It slips through our fingers, like a fist full of sand.

  • MVPs
  • 5,281 posts

Posted 01 September 2012 - 04:26 PM

Hi,
Chrome does not allow to create short links for that kind of url, that's why you can not launch it with this url.

Br, FireFox.

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.

Hardware : Intel® Core™ i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

Updated 07 November, 2013 - If you find dead links please send me a PM, do not post in the topics !


#3 MattX

MattX

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 349 posts

Posted 01 September 2012 - 04:31 PM

I kind of figured that out myself.......

#4 MattX

MattX

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 349 posts

Posted 01 September 2012 - 04:36 PM

I think I may have a work around - launch to a about:blank page - look for that and then send the relevant URL

#5 MattX

MattX

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 349 posts

Posted 01 September 2012 - 05:04 PM

Ended up doing this:

Func ClearCache()     If FileExists("C:Program FilesGoogleChromeApplicationchrome.exe") Then     Run("C:Program FilesGoogleChromeApplicationchrome.exe about:blank", "C:Program FilesGoogleChromeApplication")     WinWait("about:blank - Google Chrome")     Send("^a chrome://settings/clearBrowserData{ENTER}")     ElseIf FileExists("C:Program Files (x86)GoogleChromeApplicationchrome.exe") Then     Run("C:Program Files (x86)GoogleChromeApplicationchrome.exe about:blank", "C:Program Files (x86)GoogleChromeApplication")     WinWait("about:blank - Google Chrome")     Send("^a chrome://settings/clearBrowserData{ENTER}") Else     MsgBox(48,"Chrome Not Installed !!","Error !!" & @CRLF & "You can't delete cache from chrome as it is not installed." & @CRLF & "Please contact the IT Helpdesk.")     EndIf EndFunc





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users