-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to disable message about explorer restart. #118
Comments
won't happen... that message is a safety measure... and should only happen when the explorer restarts 3 times within 30 seconds. |
@White-Tiger Ah, that how it is, now i at least will know how to avoid it.
I didn't know that its 3 times, but as i said earlier to refresh icons, restore tray icons(sometimes they dissappering for me) and etc. Thanks for answering. |
Sure... you're free to do that.. and if you really have to, it wouldn't hurt once in a while, but why so often within that short time frame? |
@White-Tiger I don't think i do it so often, just killing explorer and starting new. How does explorer crash determination works? I guess it checks whetever explorer.exe process exist every 1 second, and add 1 to counter each time when process dissappered(e.g. crashed). Or there appropriate Window Message when explorer crashes?
Then maybe add a rule which will check if computer is slow, and do things that needed? |
Close, it's a message when Explorer was started ;) Which allows T-Clock to hook into it once again. |
@White-Tiger And what about starting bunch of explorer.exe?(There is such option in folder properties in control panel, which starts every folder in new process.) |
It should only trigger for the main explorer.. / desktop because it's a message that's send for the creation of the taskbar. https://msdn.microsoft.com/en-us/library/windows/desktop/cc144179(v=vs.85).aspx#Taskbar_Creation_Not Do you have multiple monitors / taskbars? What kind of modifications / 3rd-party apps are running? Which version of Windows? |
OK, got it. 1 monitor, 1 taskbar, Classic Shell, Windows 7 x64. |
@White-Tiger I done fix for me, https://github.com/BladeMight/T-Clock/commit/6f8bf5479ab63c04365f3e169dd895382de53abc . Just decreased 30 seconds to 2.3 sec, so nevermind now. |
why did you have to decrease it to such a low number? |
@White-Tiger But its fine for me, so nevermind. |
+ also added "Restart Explorer" to advanced context menu.
You might try my new release: https://github.com/White-Tiger/T-Clock/releases/tag/v2.4.4%23492-rc Bear in mind that T-Clock does a proper shutdown, or rather tries to.. this means it'll give Explorer 15 seconds of time to exit. It'll kill it otherwise though your desktop icons etc. should be saved anyway. (means T-Clock will be slower than your kill script) However: if you insist on using your kill script, you can kill the Explorer and call |
@White-Tiger Thanks for the fix, but it still says about it even after i say T-Clock about "proper" exit, but it happens less often though. |
How does your script look like? If you execute Also, did you yet try to execute |
I can't see the restart explorer in context menu. My script is: taskkill /IM explorer.exe /F
start explorer.exe called by h.exe from my AutoHotkey program(script) by global hotkey which i can press at any time to restart explorer. #NoTrayIcon
#SingleInstance Force
#Persistent
#!F3:: ; Hotkey Win+Alt+F3
run h D:\Program\Scripts\Batch\exres.cmd ; Call script
return And so you are saying that i should start explorer with |
either would work... And the Exit/Restart options are accessible the same way the usual "Exit Explorer" would be avaible... Ctrl+Shift+Right Click on the Taskbar area (or in this example, on T-Clock) |
@White-Tiger After i replaced with |
hmm... something must be wrong in that case. What kind of background apps are running? Especially stuff that modifies parts of Windows (like something that modifies the taskbar like T-Clock, your AV, toolbars, startmenu, explorer extensions etc.) From what you describe, it seems like something causes multiple TaskbarCreated messages to be send when Explorer restarts.. though it's weird... you also said you'll only receive it if you use the restart 3 times in a row... though each one resets the counter so that shouldn't be possible. |
That would be helpful.
I'we been thinking same, but its ends up otherwise.
Nope, i have only T-Clock, i also, tested with only Explorer and T-Clock running, same result. About Classic Shell i mentioned earlier, i'm not using it anymore. |
sorry for the delay, I've I've made some other tweaks as well, so we'll see if they change anything. Just post your log when you've received the "nag screen" and closed T-Clock |
Here is the log: T-Clock.log.gz (Tried a bunch of times to restart through taskkill /IM explorer.exe /F
taskkill /IM Clock64.exe /F
start explorer.exe
start D:\Path\To\Clock64.exe |
Thank you so far for your patience and help. I think this one might fix it: T-Clock.zip Would be nice if you could try that one out and post your log. (even if it's working, I'd like to know how it's working just in case there's something to improve) I can't really comment on the "safety" when you're killing T-Clock... (though you might also exit it properly... I mean, there's a switch for it) I wouldn't trust Windows on that^^ But yeah, if you're not currently editing a timer or stuff like that, there's nothing that should be lost. |
@White-Tiger Well now it says about explorer crashes exactly after 3+ explorer crashes(e.g. 3+ explorer restarts from taskkill) when not using the taskkill /IM explorer.exe /f
Clock64.exe /restart-explorer T-Clock.log.gz
My, my! I think the same way. |
I'll push the changes first thing tomorrow morning. So that'll be about 11h for now :P Yet, I still don't quite get why the TaskbarCreated message is sent so often... I originally wanted to add some logging about the program that sent it, but I couldn't find a way to do it... Seems like Windows doesn't allow one to find the origin of a message. |
I think it is send by explorer itself when it is started, no mather what the program called it.
I think its because i restart explorer like crazy, just for testing :3 |
…ash" count #118 ! fixed recursive/overlapping injection calls ! fixed sending MAINM_CLOCKINIT early
…prevents multiple messages) #118
do you really need a build? you've compiled it yourself before :P |
You can use AppVeyor for that, as i done for my project:
before_deploy:
# Combine commit message and commit message description.
ps: $env:de = $env:APPVEYOR_REPO_COMMIT_MESSAGE + $env:l + $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
deploy:
provider: GitHub
# Tag to which to deploy, you also can use here something like "nightly $(appveyor_build_version)"
tag: latest-commit
# This is our release title
release: Mahou latest commit release. ($(appveyor_build_version))
# Release description( variable from before_deploy)
description: $(de)
auth_token: # secure
artifact: /.*\.zip/ # Artifacts to publish
prerelease: true # E.g. Nightly
force_update: true # Re-write my latest-commit tag.
Yay source code! |
well... I thought about using a "dynamic" tag on Github... but it doesn't feel right^^ Not even sure if that's error free. Though I have my own requirements..
|
Travis has similar deploy to GitHub releases.
Just after you push commit to github, travis builds, then deploys.
But why not? Just use same tag and same file naming to get same link e.g. github tag "dynamic", filename "TClockRedux.zip" and configure overwrite in travis, so it will use that only tag, and latest binary for it. The link then will be
It is safe enough, look here at my project's "dynamic" release. Even though it says 300+ commits to master since this release^^ it is the build by latest commit. |
so... you're in fact using a static tag... I thought at first that you're "moving" the tag with each commit... (this is the "not safe" part I've been talking about) I still have to tryout some options and see how it works before I decide what to do. |
Goodluck finding out your own way. |
Thanks for T-Clock Redux, i like it so much(the fonts are rendered way better than in T-Clock), there is one more thing I want to ask you about:
Sometimes i restart explorer(to refresh icon, etc.) and T-Clock keep saying that it causes these restarts or detects multiple restarts. I want you to add an option in ini settings for advanced users to disable that message.
The text was updated successfully, but these errors were encountered: