Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


JTB3

Chrome 74 - Glass no longer supported in title bars!

Recommended Posts

On 6/11/2019 at 8:28 PM, UCyborg said:

I checked the code, they just changed the command line parameter for disabling custom title bar. The correct parameter in newer Chromium browsers is -disable-windows10-custom-titlebar The decision is made in chrome/browser/win/titlebar_config.cc.

Yep, I just updated to Version 76.0.3809.87 (Official Build) (64-bit) and adding -disable-windows10-custom-titlebar to my shortcut fixed it.

Share this post


Link to post
Share on other sites

Posted (edited)

For anyone that's using AeroGlass with Chrome Browser (v76+) configured to startup with windows and run in the background, you've probably noticed that the command line switch --disable-windows10-custom-titlebar is NOT remembered at startup time.  Unfortunately, if you manually edit the ChromeAutoLaunch registry key, it will get overwritten every time Chrome exits.

To address this issue, I created a simple AutoHotkey script that is run 'on login' as a Scheduled Task that automatically adds the necessary startup switch to the required 'ChromeAutoLaunch...' registry key (which has a custom suffix for different users).  I also added a 2nd useful switch --save-page-as-mhtml as well.

For the benefit of the AeroGlass community, I've attached the complied script and source code in a Zip file.
Installation Instructions:  1) Create directory:  C:\System\Scripts  2) Copy ChromeAutoLaunch.exe into this directory  3) Open Windows 'Task Scheduler' and import and save the ChromeAutoLaunch.xml task file.

The scheduled task will run both at startup and every time the registered user logs in and will insert the switch(s) into the reg key before chrome starts.  If one manually exits Chrome, the shortcut used to relaunch (as mentioned previously) must also contain the additional startup switch(s).

Feel free the edit the code (+task) and recompile it if you would like to customize either the script directory or the switches to be inserted.
Cheers, -JT :cool:

ChromeAutoLaunch_AHK.zip

Edited by JTB3
Typo

Share this post


Link to post
Share on other sites
Posted (edited)
On 7/31/2019 at 1:31 PM, JTB3 said:

For anyone that's using AeroGlass with Chrome Browser (v76+) configured to startup with windows and run in the background, you've probably noticed that the command line switch --disable-windows10-custom-titlebar is NOT remembered at startup time.  Unfortunately, if you manually edit the ChromeAutoLaunch registry key, it will get overwritten every time Chrome exits.

To address this issue, I created a simple AutoHotkey script that is run 'on login' as a Scheduled Task that automatically adds the necessary startup switch to the required 'ChromeAutoLaunch...' registry key (which has a custom suffix for different users).  I also added a 2nd useful switch --save-page-as-mhtml as well.

For the benefit of the AeroGlass community, I've attached the complied script and source code in a Zip file.
Installation Instructions:  1) Create directory:  C:\System\Scripts  2) Copy ChromeAutoLaunch.exe into this directory  3) Open Windows 'Task Scheduler' and import and save the ChromeAutoLaunch.xml task file.

The scheduled task will run both at startup and every time the registered user logs in and will insert the switch(s) into the reg key before chrome starts.  If one manually exits Chrome, the shortcut used to relaunch (as mentioned previously) must also contain the additional startup switch(s).

Feel free the edit the code (+task) and recompile it if you would like to customize either the script directory or the switches to be inserted.
Cheers, -JT :cool:

ChromeAutoLaunch_AHK.zip 434.23 kB · 19 downloads

Big thanks to you on this. I got it to work again for a bit now it wont work again :(

 

 

Edited by gitit20
stopped working

Share this post


Link to post
Share on other sites
On 7/31/2019 at 1:31 PM, JTB3 said:

For anyone that's using AeroGlass with Chrome Browser (v76+) configured to startup with windows and run in the background, you've probably noticed that the command line switch --disable-windows10-custom-titlebar is NOT remembered at startup time.  Unfortunately, if you manually edit the ChromeAutoLaunch registry key, it will get overwritten every time Chrome exits.

To address this issue, I created a simple AutoHotkey script that is run 'on login' as a Scheduled Task that automatically adds the necessary startup switch to the required 'ChromeAutoLaunch...' registry key (which has a custom suffix for different users).  I also added a 2nd useful switch --save-page-as-mhtml as well.

For the benefit of the AeroGlass community, I've attached the complied script and source code in a Zip file.
Installation Instructions:  1) Create directory:  C:\System\Scripts  2) Copy ChromeAutoLaunch.exe into this directory  3) Open Windows 'Task Scheduler' and import and save the ChromeAutoLaunch.xml task file.

The scheduled task will run both at startup and every time the registered user logs in and will insert the switch(s) into the reg key before chrome starts.  If one manually exits Chrome, the shortcut used to relaunch (as mentioned previously) must also contain the additional startup switch(s).

Feel free the edit the code (+task) and recompile it if you would like to customize either the script directory or the switches to be inserted.
Cheers, -JT :cool:

ChromeAutoLaunch_AHK.zip 434.23 kB · 46 downloads

I am not sure if I am missing something or have done this wrong but I have tried this a few times and am not able to get it to function. Is there something I am missing?

I see 4 files in the folder. One if the app for launch other is the script and the 3rd one is the icon and the last file I am not sure what to do with? does it all need to go into the same created directory as the EXE file? 

Sorry if I am sounding dumb I just cant get this to work lol I have also imported the task and can confirm its there in the list. 

I am on Chrome 76 with 1903 Windows  

I also notched you said to make the scripts 2 directory but in the script it says just scripts. I have tried both folder ways and no luck lol  

<?xml version="1.0" encoding="UTF-16"?>

-<Task xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.4">


-<RegistrationInfo>

<Description>Inserts switch: --disable-windows10-custom-titlebar Into Registry Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run Value Modified: GoogleChromeAutoLaunch...</Description>

<URI>\ChromeAutoLaunch</URI>

</RegistrationInfo>


-<Triggers>


-<BootTrigger>

<Enabled>true</Enabled>

</BootTrigger>


-<LogonTrigger>

<Enabled>true</Enabled>

</LogonTrigger>

</Triggers>


-<Principals>

<Principal id="Author"> </Principal>

</Principals>


-<Settings>

<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>

<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>

<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>

<AllowHardTerminate>true</AllowHardTerminate>

<StartWhenAvailable>true</StartWhenAvailable>

<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>


-<IdleSettings>

<StopOnIdleEnd>true</StopOnIdleEnd>

<RestartOnIdle>false</RestartOnIdle>

</IdleSettings>

<AllowStartOnDemand>true</AllowStartOnDemand>

<Enabled>true</Enabled>

<Hidden>false</Hidden>

<RunOnlyIfIdle>false</RunOnlyIfIdle>

<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>

<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>

<WakeToRun>false</WakeToRun>

<ExecutionTimeLimit>PT1M</ExecutionTimeLimit>

<Priority>7</Priority>

</Settings>


-<Actions Context="Author">


-<Exec>

<Command>C:\System\Scripts\ChromeAutoLaunch.exe</Command>

</Exec>

</Actions>

</Task>

 

 

Edited by gitit20
Missing info

Share this post


Link to post
Share on other sites
On 8/8/2019 at 10:28 PM, gitit20 said:

Big thanks to you on this. I got it to work again for a bit now it wont work again :(

@gitit20, In the 'ChromeAutoLaunch' task scheduler profile, check that the 'Run with highest privileges' security option is checked and that the profile is indeed being run from your Windows user account.  Also double check that the .exe is indeed located in the 'C:\System\Scripts' directory.

Share this post


Link to post
Share on other sites
1 hour ago, gitit20 said:

I am not sure if I am missing something or have done this wrong but I have tried this a few times and am not able to get it to function. Is there something I am missing?

I see 4 files in the folder. One if the app for launch other is the script and the 3rd one is the icon and the last file I am not sure what to do with? does it all need to go into the same created directory as the EXE file? 

Sorry if I am sounding dumb I just cant get this to work lol I have also imported the task and can confirm its there in the list. I am on Chrome 76 with 1903 Windows  I also notched you said to make the scripts 2 directory but in the script it says just scripts. I have tried both folder ways and no luck lol  

<?xml version="1.0" encoding="UTF-16"?>

-<Task xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task" version="1.4">


-<RegistrationInfo>

<Description>Inserts switch: --disable-windows10-custom-titlebar Into Registry Key:

 

@gitit20, The last file is the .XML/task profile to be imported into the Windows Task Scheduler.  Nothing else needs to accompany the .exe file. After importing the 'ChromeAutoLaunch' task scheduler profile, check that the 'Run with highest privileges' security option is also checked and that the profile is indeed being run from your Windows user account.  Also double check that the .exe has been copied to the 'C:\System\Scripts' directory and that this matches the ChromeAutoLaunch.exe location in the Task Scheduler.  The icon file is only needed if one edits and then re-compiles the script.

Hope this helps.  Everything works flawlessly on all of my PCs
-JT

Share this post


Link to post
Share on other sites

Thanks for all the info I must be dumb as I cant get it to work for some reason :(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...