123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|518|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Shell_NotifyIcon?

Fri, 18 Jun 2010, 08:33
ShadowIce
Can someone show me an example of how to make an hta application minimize to the windows taskbar and show a little notification bubble if possible?

thanks!
Fri, 18 Jun 2010, 09:04
JL235
In your VBScript in the HTA you can minimize by creating a WScript shell and using it's 'sendKeys' method to send "(% )X" (key input for minimize). I got that from here.

There is also a Scripting Guy post that recommends moving the window offscreen in order to fake minimizing. I personally wouldn't recommend this as it's perfectly valid to have monitors displaying negative areas of the desktop. Essentially, in his example he moves the HTA to -2000 by -2000, however there is nothing to stop this region of the desktop being on screen.

I couldn't find any examples of how to do taskbar pop-ups from VBScript.
Fri, 18 Jun 2010, 11:16
Stealth
You should keep in mind that hta applications are very limited (part of the reason we recommended you didn't use them). HTML is generally rendered in a very sheltered environment because of the risk that viruses will be spread through them. This means for you that Windows isn't going to be too happy about letting your hta application control core components of the computer. I would expect lots of security prompts.

-=-=-
Quit posting and try Google.
Fri, 18 Jun 2010, 11:24
JL235
Stealth This means for you that Windows isn't going to be too happy about letting your hta application control core components of the computer. I would expect lots of security prompts.
I believe the security is a lot laxer in a HTA then within a browser.