Re: place an icon on the task bar
- From: billy <wcasse@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 20:04:51 -0700
On Jun 25, 6:54 pm, 2xdserd54tht...@xxxxxxxxx wrote:
hi
i use a litle script file to do a few things and it works great. one
thing though is there is never a related icon when the file is
launched.
in this case, the script opens an excel file, and i want my own little
icon to appear on the task bar as long as the excel file is in use.
then, when the excel file is done the icon will disappear.
you might be thinking "why not just open the file with excel?" well,
for the purpose of my program it is somewhat inelegant. the vbs script
opens excel invisbly and all that appears is the form to run all the
various controls of the program. this creates this adds to the
customized nature of the program. it *uses* excel but it is *not*
excel, etc.
the only glitch is if there are a few windows open, the form is
naturally hidden, and w/o an icon on the taskbar, one could forget the
program is open and then reopen another instance of it inadvertantly.
the only way to see if it is open is to do the A;t-Tab thing, which i
forget to do all the time anyway, so it would be very helpful to kick
an icon out onto the taskbar when the vbs script opens the excel file,
and then have it close once excel quits.
this might call for some VBA code within excel.
any suggestions would be great.
.
wrap your script up as an HTA. (vbscript with HTML for user
interface). and everything you need is already installed in your
computer.
http://www.microsoft.com/technet/scriptcenter/hubs/htas.mspx
in the HTA header, make sure SINGLEINSTANCE="yes" is in the
<HTA:APPLICATION> tag and you won't have a problem. you will also like
the SHOWINTASKBAR="yes" and ICON="<your_icon.ico>"
.
- References:
- place an icon on the task bar
- From: 2xdserd54thtww1
- place an icon on the task bar
- Prev by Date: Re: Running an HTA Function from outside the HTA
- Next by Date: Modify PwdLastSet value
- Previous by thread: Re: place an icon on the task bar
- Next by thread: pls HELP me do a script that will sort data in an Excel document & add more data to it
- Index(es):
Relevant Pages
|