Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

reapply on explorer reload #4

Closed
oatmealcookiec opened this issue Nov 13, 2023 · 18 comments
Closed

reapply on explorer reload #4

oatmealcookiec opened this issue Nov 13, 2023 · 18 comments
Assignees
Labels
enhancement New feature or request

Comments

@oatmealcookiec
Copy link

oatmealcookiec commented Nov 13, 2023

Great utility, work on Windows 11 23h2.
But there is a small problem - after restarting explorer.exe need restart start.exe
Is it possible to fix it somehow and keep the program constantly?

@bbmaster123
Copy link

that is something that could be added in down the road, but for now there are a few good workarounds.
I'd suggest to create a task in Task Scheduler, have it trigger when explorer.exe starts, and point it to start.exe, this should have the effect of automatically restarting TranslucentSM along with explorer
cheers

@oatmealcookiec
Copy link
Author

Thanks for the quick response.
Will be waiting for an update!

@rounk-ctrl
Copy link
Owner

rounk-ctrl commented Nov 15, 2023

it happens because after restarting explorer, StartMenuExperienceHost.exe also gets restarted

@oatmealcookiec
Copy link
Author

it happens because after restarting explorer, StartMenuExperienceHost.exe also gets restarted

this is understandable, but there is 100% a way for it to work even after restarting explorer, as the author of the program wrote

@rounk-ctrl
Copy link
Owner

._. i am the author. Sure there is a way, but that would require the app constantly running in the background

@oatmealcookiec
Copy link
Author

._. i am the author. Sure there is a way, but that would require the app constantly running in the background

Oh, sorry. I didn't notice that you are the author.
Is it possible to make a .dll library that can be registered using the regsvr32?
Well, or at least a version that will work constantly in the background?
With respect.

@rounk-ctrl
Copy link
Owner

yea i plan to make it a regsvr32 dll

@oatmealcookiec
Copy link
Author

yea i plan to make it a regsvr32 dll

Great news. Waiting for update. Thank you

@bbmaster123
Copy link

bbmaster123 commented Nov 16, 2023

haha yes I am just a guy who likes to help ;)
All credit to Rounk-ctrl!

If Rounk is making this into a registered dll, that will be a better solution than my above work-around, and I would probably suggest to just wait instead.

That said, I have it auto-restarting now with v0.4 using a scheduled task that launches start.exe every time startmenuexperiencehost.exe is started, and the cmd window is hidden using advancedRun (also useful for other mods like TranslucentFlyouts v2 for example)

@oatmealcookiec
Copy link
Author

Yes, I didn't look at who the author was at first :)
it would be ideal if the author also added the function of deleting (hiding) the 'recommend' section
I know about the scheduled task in the scheduler, but it's still better to wait until the author does it in the .dll regsvr32

@rounk-ctrl rounk-ctrl self-assigned this Nov 20, 2023
@rounk-ctrl rounk-ctrl added the enhancement New feature or request label Nov 20, 2023
@AlexanderJustin183
Copy link

use Explorer hook like ExplorerBlurMica?

@rounk-ctrl
Copy link
Owner

how will explorer hook help with start menu, which is hosted in a diff process

@AlexanderJustin183
Copy link

AlexanderJustin183 commented Feb 8, 2024

shellexperiencehost.exe hook?

@Kelerexto
Copy link

that is something that could be added in down the road, but for now there are a few good workarounds. I'd suggest to create a task in Task Scheduler, have it trigger when explorer.exe starts, and point it to start.exe, this should have the effect of automatically restarting TranslucentSM along with explorer cheers

How do i set it so that the event trigger is when startmenuhost.exe starts up?

@Arin-426
Copy link

Arin-426 commented Apr 5, 2024

haha yes I am just a guy who likes to help ;) All credit to Rounk-ctrl!

If Rounk is making this into a registered dll, that will be a better solution than my above work-around, and I would probably suggest to just wait instead.

That said, I have it auto-restarting now with v0.4 using a scheduled task that launches start.exe every time startmenuexperiencehost.exe is started, and the cmd window is hidden using advancedRun (also useful for other mods like TranslucentFlyouts v2 for example)

@bbmaster123 I tried making a task but it won't execute (on logon) but runs fine manually. Could you export and share your task?

@bbmaster123
Copy link

bbmaster123 commented Apr 9, 2024

@Arin-426 Sorry for the delay, I sometimes don't see my messages on this account
Set the trigger to custom event filter, begin task on an event, and set the action to load a .bat file with the patch to start.exe
I have my .bat pointing to advancedrun.exe with arguments telling it to load a second .bat which contains the path to start.exe, which allows me to set the command prompt to hidden, so that it doesn't pop up on load.

EDIT: Forgot the step where you need to turn on detailed tracking in group policy editor under Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Configuration > Detailed Tracking

let me know if you need more clarification or anything! :D

run-sm.bat

cd %USERPROFILE%\documents\translucentSM\
start advancedrun /run /advancedrunSM.cfg

advancedrun.cfg

[General]
WinPos=2C 00 00 00 00 00 00 00 01 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 25 01 00 00 1B 01 00 00 5A 04 00 00 A3 03 00 00
EXEFilename=C:\Users\[name]\Documents\TranslucentSM\start.exe
CommandLine=
StartDirectory=C:\Users\[name]\Documents\TranslucentSM\
WaitProcess=0
PriorityClass=32
WindowState=0
UseWindowPosition=0
WindowPosition=20,20
UseWindowSize=0
WindowSize=640,400
RunAs=6
RunAsProcessName=
EnvironmentVariablesMode=1
OSCompatMode=0
UseSearchPath=0
ParseVarCommandLine=0
UseAffinityMask=0
AffinityMask=0 1
Compat640480=0
CompatDisableVisualThemes=0
CompatDisableDesktopComp=0
CompatDisableFullScreenOpt=0
CompatHighDPI=0
CompatColors=0
RunAsUserName=
RunAsDomain=
RunFromService=0
ComputerName=
RunMode=1
ShellExecuteAction=open
CommandWindowMode=1
[EnvironmentVariables]
Lines=0

Custom Event Filter

<QueryList>
  <Query Id="0" Path="Security">
    <Select Path="Security">
     *[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and Task = 13312 and (band(Keywords,9007199254740992)) and (EventID=4688)]] 
   and 
     *[EventData[Data[@Name='NewProcessName'] and (Data='C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\startmenuexperiencehost.exe')]]
    </Select>
  </Query>
</QueryList>

@Undisputed00x
Copy link

Why is this issue still open, another guy have already provided a workaround #13 (comment).
Make a logon scheduled task of that and you are fine to go.

@rounk-ctrl
Copy link
Owner

because i need to implement it?

@rounk-ctrl rounk-ctrl changed the title After RestartExplorer reapply on explorer reload May 16, 2024
@rounk-ctrl rounk-ctrl pinned this issue May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants