Jump to content

How to set my own taskbar-icon for a msg-box


didiboo
 Share

Recommended Posts

Hell and Greetings,

i tried and searched the helps, and the net, and did'nt found the solution:

If i create a msg-box, so everytime in the taskbar (I mean the bar that ist for most users on the bottom of the desktop) the standard-icon of autoit is beeing showed. Also the icon of the Window-Bar (the bar that is on top of the msg-box)

Can i use my own Icon?

Thanks you much for a little help,

J. Dietrich Boock

Link to comment
Share on other sites

Sure can didiboo,

Use the compile script to .exe program that gets installed with AutoIT

and you can manually specify the icon to be used for the program.

i think there may be a line to add at the start of a script, but im not sure.

Ahh. No. My Programm is a kind of daemon/service, who is resident in the systemtray as an icon.

There is a little menu, too. from one of the items in this menu i can open a messagebox. this messagebox has then an entry in the taskbar. and the icon in the taskbar-button/entry is the default-icon of autoit.

I compiled my programm with the option: /icon myicon.ico, but this doesnt help.

Link to comment
Share on other sites

  • Moderators

Ahh. No. My Programm is a kind of daemon/service, who is resident in the systemtray as an icon.

There is a little menu, too. from one of the items in this menu i can open a messagebox. this messagebox has then an entry in the taskbar. and the icon in the taskbar-button/entry is the default-icon of autoit.

I compiled my programm with the option: /icon myicon.ico, but this doesnt help.

You have reshacker in the AutoIt3\SciTE\AutoIt3Wrapper directory?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

You have reshacker in the AutoIt3\SciTE\AutoIt3Wrapper directory?

Solved!

I did it like this:

GuiCreate("Sample GUI", 400, 400)

$statusmessage = GUICreate("Statusausgabe: ", 300, 200)

GuiSetIcon(@ScriptDir & "\online.ico")

GUISetOnEvent($GUI_EVENT_CLOSE, "closeStatus")

GUICtrlCreateEdit ( $logline, 10, 10 , 280 , 150 , $WS_VSCROLL )

$okbutton = GUICtrlCreateButton("OK", 120, 170, 60)

GUICtrlSetOnEvent($okbutton, "closeStatus")

GUISetState(@SW_SHOW)

this way, my icon is used in the taskbar and in the programmbar (upper left in the statuswindow)

Edited by didiboo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...