didiboo Posted February 18, 2007 Posted February 18, 2007 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
tAKTelapis Posted February 19, 2007 Posted February 19, 2007 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.
didiboo Posted February 19, 2007 Author Posted February 19, 2007 Sure can didiboo,Use the compile script to .exe program that gets installed with AutoITand 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.
Moderators SmOke_N Posted February 19, 2007 Moderators Posted February 19, 2007 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.
didiboo Posted February 19, 2007 Author Posted February 19, 2007 (edited) 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 February 19, 2007 by didiboo
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now