Jump to content

hide from taskbar + transparent background


mem
 Share

Recommended Posts

Hi every1. 1st off I love autoit, its been an ideal solution for many repetitive tasks I do in windows.

I use a db frontend at work thats, well, needlessly complicated - to make life easier I made myself a 6 scripts which are launched by my main script "gui - control pannel.au3".

My two questions are:

1) is it possible to hide the program from the taskbar ?

2) is there an easy way to make my background transparent ?

I have tried using Bitor + ext styles but do to my lack of exp Im unable to mix and match.

#include <GUIConstants.au3>

Opt("GUIOnEventMode",1)

GUICreate("Jacobs Fireman Shortcuts", 540, 20, 340, 0, $WS_POPUP,$WS_EX_TOPMOST)


$button1  = GUICtrlCreateButton("Service Que", 10, 0, 80, 20)
GUICtrlSetOnEvent($button1,"button1_func")
$button2  = GUICtrlCreateButton("Machine Info", 90, 0, 80, 20)
GUICtrlSetOnEvent($button2,"button2_func")

$button3  = GUICtrlCreateButton("Service Call", 190, 0, 80, 20)
GUICtrlSetOnEvent($button3,"button3_func")
$button4  = GUICtrlCreateButton("Log Training", 270, 0, 80, 20)

GUICtrlSetOnEvent($button4,"button4_func")
$button5  = GUICtrlCreateButton("Luke Calendar", 370, 0, 80, 20)
GUICtrlSetOnEvent($button5,"button5_func")
$button6  = GUICtrlCreateButton("Tony Calendar", 450, 0, 80, 20)
GUICtrlSetOnEvent($button6,"button6_func")

GUISetOnEvent($GUI_EVENT_CLOSE,"OnExit")
GUISetState() ; display the GUI

While 1
   Sleep (1000)
WEnd

;--------------- Functions ---------------
Func button1_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Service Que.au3"')
EndFunc

Func button2_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Machine Info.au3"')
EndFunc
Func button3_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Service Call.au3"')
EndFunc
Func button4_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Log Customer Training.au3"')
EndFunc
Func button5_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Luke Calendar.au3"')
EndFunc
Func button6_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Tony Calendar.au3"')
EndFunc

Func OnExit()
    Exit
EndFunc

Thanks all and keep up the good work.

Link to comment
Share on other sites

Oh sorry, I get it now. Use this extended style: $WS_EX_TOOLWINDOW

#include <GUIConstants.au3>

Opt("GUIOnEventMode",1)

GUICreate("Jacobs Fireman Shortcuts", 540, 20, 0, 0, $WS_POPUP,$WS_EX_TOPMOST+$WS_EX_TOOLWINDOW)


$button1  = GUICtrlCreateButton("Service Que", 10, 0, 80, 20)
GUICtrlSetOnEvent($button1,"button1_func")
$button2  = GUICtrlCreateButton("Machine Info", 90, 0, 80, 20)
GUICtrlSetOnEvent($button2,"button2_func")

$button3  = GUICtrlCreateButton("Service Call", 190, 0, 80, 20)
GUICtrlSetOnEvent($button3,"button3_func")
$button4  = GUICtrlCreateButton("Log Training", 270, 0, 80, 20)

GUICtrlSetOnEvent($button4,"button4_func")
$button5  = GUICtrlCreateButton("Luke Calendar", 370, 0, 80, 20)
GUICtrlSetOnEvent($button5,"button5_func")
$button6  = GUICtrlCreateButton("Tony Calendar", 450, 0, 80, 20)
GUICtrlSetOnEvent($button6,"button6_func")

GUISetOnEvent($GUI_EVENT_CLOSE,"OnExit")
GUISetState(); display the GUI

While 1
   Sleep (1000)
WEnd

;--------------- Functions ---------------
Func button1_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Service Que.au3"')
EndFunc

Func button2_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Machine Info.au3"')
EndFunc
Func button3_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Service Call.au3"')
EndFunc
Func button4_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Log Customer Training.au3"')
EndFunc
Func button5_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Luke Calendar.au3"')
EndFunc
Func button6_func()
    Run(@AutoItExe & ' "' & @ScriptDir & '\Tony Calendar.au3"')
EndFunc

Func OnExit()
    Exit
EndFunc
Link to comment
Share on other sites

Thanks alot, that worked a treat for me.

Now if I can get a transparent background as well I will be very happy :)

WinSetTrans() will make your whole window transparent based on the number you put in.

If you want to make it so that you have solid buttons then and a slightly see through background for you GUI, I would use a .png picture... But for that you would have to use some of AutoItlib which can be confusing

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
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...