How to set Taskbar progress from a console app? #14268
-
I'm using I have checked #6700, but I'm not sure how to actually make it work from a C# console app. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Don't call What you'll need is "\x1b]9;4;1;50\x1b\\" (My C# is rusty so I might not have escaped that string correctly) |
Beta Was this translation helpful? Give feedback.
Don't call
GetConsoleWindow
. That's not gonna work right in plenty of scenarios.What you'll need is
SetConsoleMode
withENABLE_VIRTUAL_TERMINAL_PROCESSING
. Then, write to the console something like"\x1b]9;4;1;50\x1b\\"
(My C# is rusty so I might not have escaped that string correctly)