Results 1 to 3 of 3

Thread: VBScript tray icon

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2001
    Posts
    574

    VBScript tray icon

    Hello,

    Is it possible to have a vbscript (.vbs or .hta) put an icon in the systemtray and listen to the dblclick event? I don't want external applications or so. Some api's from standard windows libraries are fine. It must run on windows XP (or above?). Does anyone have an idea/example for this or knows whether it is possible or not?

    Thanks in advance
    Don't Hate Me Cause You Ain't Me

  2. #2
    Junior Member
    Join Date
    Mar 2006
    Posts
    22

    Re: VBScript tray icon

    Hi jacsoft:

    I did a google and didn't find much...it doesn't look like it is possible.
    http://bytes.com/forum/thread681420.html

    I know you state that you don't want to use a third party tool but have you considered AutoHotKey? You could write simple code in AHK that will give you what you want, an icon in the tray (even customizable to an icon you want). You can then compile the script into an exe and distribute it to other machines, with no other software installation required.

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Re: VBScript tray icon

    I'd suggest looking into using pure VB, separate application rather than VBScript here, as you'll need to interact with the Windows API. There's a Shell_NotifyIcon API call if you do want to go down that route, and there's more help on this here http://allapi.mentalis.org/apilist/S...tifyIcon.shtml

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width