How to change the taskbar icon of vbscript message box? - vbscript

I tried some tools like VBS to EXE, but the message box is still showing wscript.exe's icon.

Related

Hide console when running shortcut pinned to taskbar

I'm trying to create a shortcut (.lnk) file that will launch scrcpy without showing the console window, but I need to be able to pin it to the taskbar and have the window and shortcut merge. Scrcpy is bundled with a vbs script that launches scrcpy through wscript, hiding the console, but when I made a shortcut opening that through wscript that made a duplicate window (icon?). I also found a somewhat promising question here about Pinning advertised shortcuts on the taskbar, which led me to an MS Docs page about AppUserModelIds, the only problem being I don't really understand how they work, or how to make a shortcut with them.

unable to retrieve overlayicons for dialog box window in my visual studio application

I'm trying to display overlay icons on specific set of files in explorer window.
I have written shellextensionhandler class which has ismemberof(),getoverlayinfo() and getpriority() functions and it works fine if I open a new window in explorer, all these APIs are getting hit and overlay icons are getting displayed.
However, if I try to open a dialog box from any application, none of these APIs are getting hit and hence overlay icons are not getting set for files inside dialog box. And also I have observed that if I open dialog box it is not showing under explorer app (probably because of that reason since it is not treated as explorer window, for dialog box these APIs are not getting hit). Could anyone please provide solution on how to implement this?
The problem is with our code, where we are ignoring dialog boxes. Thanks Denis for helping. As Denis mentioned handler works correctly in Explorer if it is installed properly.

How to determine title and additional infos from an open window for use with Autohotkey?

To access and control a window, dialog or popup with Autohotkey the title of that specific window is needed. For some windows the title can be read directly if its visible, but some windows hide it. The window class and the exe (ahk_class and ahk_exe) aren't visible at all. How to gather this information reliable?
Use the Window Spy tool, which is installed together with AHK, it can be started various ways:
Right click the tray icon of a running AHK script and select Window Spy
Start the AU3_Spy.exe in the AHK installation folder
Use the Windows search to search for Window Spy
You will get a window called Active Window Info with various infos about your current active (topmost) window. The first box is the one you need.
Example
The box gives title, class and .exe to detect the target window of which every line can be used to identify the window. Now you should activate the window you want to address and copy the information.
Hint: You can (un-)freeze the display with Win + A

jumplist not showing up on the pinned icon (c++/cli - windows 7)

When i pin my app to the taskbar, I don't see the jumplist when the app is to running.
Jumplist: recently opened files that show up when you right click on a taskbar icon in windows 7.
When I run the app, a new taskbar icon opens, instead of the same icon. The jumplist shows up on the running icon, but not on the pinned icon.
Here are the things I have done..
SetCurrentProcessExplicitAppUserModelID
added the registry items for the file type.
Jumplist works fine when the app is running. Except that jumplist does not show up on the pinned icon.
My questions are:
how do I show the jumplist when the app is not running? or why is it not working? Is it a different registry entry?
Why is windows creating a new taskbar icon, instead of opening on the same pinned icon. (I don't change the AppUserModelID)?

Which Windows API opens the print properties dialog?

I would like to hook into an Office application just before the print properties dialog is opened (the dialog where you choose the paper, printer, etc.).
Which Windows API opens this dialog?
Here are some links which document this
http://support.microsoft.com/kb/167345
http://msdn.microsoft.com/en-us/library/dd183576%28VS.85%29.aspx
and this SO question:
How to show printer properties/preferences dialog and save changes?

Resources