Jump to content

Beginner looking for Help


Recommended Posts

Hi everyone

I just came across AutoIT and was wondering if something i'm trying to achieve is even possible and if you guys could help a noob out with this :).

I would like to create an executable that when launched has a hidden/invisible gui but has a windows taskbar button entry (not the system tray).

If at all possible, i would like to be able to change that buttons title and icon at any given time. Or atleast change the icon on start to a specified .ico file.

I then would like to to intercept the events on that button (maximize, minimize, close) so i can send them to another application (simply by calling a little helper utilty i have).

Is this possible? And if so, how do i achieve this, since i have no idea where to start :)

Thanks a bunch for all your help!

Link to comment
Share on other sites

#include <GuiToolBar.au3> ;; This is for the toolbar (_GUICtrlToolbar_*) function

HotKeySet('{ESC}', '_EXIT')

Global $hGui = GUICreate('Title', -200, -200, 0, 0)
GUISetState()

While 1
    Sleep(40)
WEnd


Func _EXIT()
    If Not WinActive($hGui) Then
        HotKeySet('{ESC}')
        Send('{ESC}')
        HotKeySet('{ESC}', '_EXIT')
        Return
    EndIf
    
    GUIDelete($hGui)
    Exit
EndFunc

The help file might 'help' from here.

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...