Jump to content

Floating,Fading,Resizable,Dockable,Multipurpose TOOLBAR

Recommended Posts


Not the most eloquent nor efficient, to be sure, but with the following functionality:

MULTI_BAR Features: ----------------------------------------------------------------
    * Floating MULTIBAR Toolbar with four(4) Docking Positions
    * Drag MULTI bar to Dock at any Edge  position
    * Drag Edge bar to screen center to Float as a MULTI bar
    * All 4 EDGE BARS and MULTI BAR can exist and execute at one time
    * All Toolbars use common INI file format
    * Any Toolbar  can be displayed by any positional Service EXE
    * All ToolBars have common Controls
        Return to calling BAR [ORIGIN}
        Manual Edit the INI file [INIEDIT]
        Create and place a NEW Toolbar on a button [NEWBAR]
        Search Icon Initiator - search for a Toolbar or a Button Function
        Set AUTO mode for EDGE bar show/fade on cursor or click, [AUTOSW]
        Set AUTO mode for FLOAT bar to close or stay open on button click [AUTOSW]
        Rotate thru 3 button sizes, small, medium and large w/label [B-SIZE]
        EXIT this bar [EXIT]
    * User specifies Number of BUTTONS and Number of ROWS
    * Change Dynamically Number of BUTTONS or ROWS
        via NEWBAR Function Specifying SAME BARNAME with Changed BUTTONS & ROWS
    * Three(3) Button sizes - User can change on demand
    * Shrink to Fit - Will Auto reduce Button size on DOCKING if Bar too long    
    * Buttons can be any File OPEN function, web link, or Open another TOOLBAR_BAR
    * ToolBars can be cascaded down(DRILL DOWN - Button points to another ToolBar) to additional Toolbars
        with Return to previous Toolbar via Origin Function
    * 2 BAR TYPES:
        ACTION(Buttons do TOOLBAR, FILE or URL OPENS)
            User drops a Link on Button
        DROP(Buttons are Folder Targets)dropped files are sorted to destination
            MOVE or COPY: FILE, FILE(s) or FOLDERS(DIRs) to Button target
            Recycle Bin(a Shortcut) is supported as a DROP target for FILE, FILE(s) or FOLDERs
    * Button Context functions
        DELETE the current function - empty the button
        EDIT the TOOLTIP for this Button
        EDIT the LABEL displayed on Large Button
        PLUCK this Button for move to new location on this bar -or-
            ANY other Bar (in this TOOLBOX)  
        PLACE any PLUCKED Button, or PLACE any NEW TOOL_BAR
        OPEN file location of Button file

UNZIP the attached to a folder which will be the folder for all toolbar definitions
    and executables. THIS FOLDER IS YOUR TOOLBOX.
    TOOLBOX\MULTIBAR\]README.doc or ]README.pdf provides detail on functions and implementing.
Appreciate all the SILENT help from the AUTOIT community for this and my many projects. Thanks to all menbers who have provided the best self help book on applied AutoIt.
Please advise on errors or suggestions. MULTIBAR was developed on Windows 10. Other targets or themes may present errors.For your personal use. Accept no responsibility for its functionality. Enjoy, olbitpicker


Edited by Bitpicker
Complaint on language

Share this post

Link to post
Share on other sites
1 hour ago, Bitpicker said:

Appreciate all the SILENT help from the AUTOIT community for this and my many projects.

Curious as to what you mean with this, as it reads as though you are stating the community has not been helpful. I would say it might be a language-barrier issue, but as you're from the Armpit of the West I would guess not :)


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post

Link to post
Share on other sites

I read it as „you mentioned no questions about this from me but I got a lot of help while searching and reading the forum”.

That's how I get help here most of the time and maybe the OP did, too.


SciTE4AutoIt =   AutoIt =   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post

Link to post
Share on other sites

Indeed there is no intent to disparage the many many members who have unknowingly helped me through their thoughtful and polite responses to others. Perhaps my only third post in  several years, so apologize for any language problems. If this is not the type of example application you are looking for, please take it down, or instruct me as to how to remove it. 


Share this post

Link to post
Share on other sites

New to AutoIt and my first post :-)

From description this looks like something I'm looking for.

I got error messages as shown and I hope someone can point me in the right direction to make this work.

On the other hand I'd appreciate if someone could post code or link to the floating toolbar with 2 or more buttons sending keyboard shortcuts (Ctrl+C & Ctrl+V for example) to another application. I searched couple of days but I all I found was this example from 10 years ago

I figured out how to create toolbar in Koda but I have difficulty adding my icons from ico files and keyboard shortcuts commands. I hope that's possible.



Share this post

Link to post
Share on other sites
  • Welcome to the wonderful world of Autoit. This  was my first submitted example, so apologize for any errors in packaging. HOME_BAR was created just as an example and does contain an error in second line NAME=STARTINGMULTI_BAR should be NAME=HOME_BAR.  You should be able to just Delete HOME_BAR  function on the button. To accomplish what you mention, use NEWBAR function to create a TOOLBAR eg. YOURTOOLS_BAR,10,1.
  • Create an Autoit Program, YourProgram.au3
  • WinActivate ( "YourProgramtitle" ,[ "text"] )
  • From explorer, drag YourProgram.au3 to the button of your choice.

Share this post

Link to post
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

  • Similar Content

    • BrewManNH
      By BrewManNH
      I was looking for a toolbar modification for SciTE and I was checking various versions of SciTE that were available on the internet. They all had some problems for how I wanted to use the editor, so I looked here to see if there were any toolbar modifications for Scite. I found one very old script by YogiBear (Volly) from 2006 that looked promising, though there were issues with it. I decided to see what I could do to modify this script, and make some improvements to it if possible. This script is the result of that work.

      It's not perfect and definitely could use some tweaking, but I thought that it had matured enough, and was mostly stable enough to release the updated version.

      Version 2.0.1
      Minor update to remove all the old Obfuscator directives and replaced them with #Au3Stripper directives instead. I also corrected a minor bug that only showed up for me on one computer I tried this on, and caused the tool bar to crash for others as well.
      SciTE toolbar version 2.0
      Changed the settings values to use constants instead of 'magic numbers' The icons on the toolbar weren't lining up with the separator characters or with the toolbar GUI because they weren't set with the resize setting for the icons, only for the separators. Changed to using arrays for everything, it makes it a lot easier to loop through the controls Added a line to use an alternate path to the SciTE program, so you can start it using, for example, the portable version instead of installed version for those that don't install AutoIt and/or SciTE4AutoIt3. It will accept a commmand line parameter that points to the SciTE executable. Removed a lot of Global variables by moving the GUI creation and monitoring to the Main function and passing variables from it. I embedded the icon files into the script so that there isn't a separate download of the icon files used here. Saves download time and makes the package smaller. Modification of tools is easier because the icon names, tooltip text, and SciTE command codes are saved in the INI file upon first start up. These can be modified after the script has been run once, even after it's been compiled, by changing the ini file information, you can modify this script to automate it, or you can change it manually in any text editor. The icon files are now using, in just my opinion, better looking icons, after all it's been 7 years and icon files have matured. I have included a file with all of the constants that SciTE uses for its menu commands which comes from the SciTE source file "scite.h", so you can use this file to help you modify the commands that the toolbar works with, by figuring out what each of these values represent in SciTE. The core of the script is pretty much the same, I've just fixed a couple of issues that it had, tweaked a few things, added some new functionality and "prettied" it up a bit.

      If anyone has any suggestions as to improvements, bugs/bugfixes, etc. please let me know.

    • SteveJM
      By SteveJM
      I have a working program currently driven largely through menu selections. I would like to add a toolbar where most of the tollbar button actions are basically the same as menu items, but quicker to access. I have been wading around in toolbar examples, MSDN pages etc, it's clearly going to be a bit of a slog to get everything right, including tooltips etc. I thought I would start with something simple to prove the principle.
      Using bits from the help file examples I have a small program that successfully displays a toolbar. However, what seemed like the most elegant way to deal with the button commands does not seem to work. My understanding was that a toolbar button fires a WM_COMMAND message, with the command Id set by the second parameter in the call to
      _GUICtrlToolbar_AddButton ( $hWnd, $iID, $iImage)
      so I though it would be a good idea to set this Id to the same value as my menu item Id; then it would run the same task which is what I wanted. This did not work. I am using message loop mode and would like to stick with this because some of my scripts run hardware at the same time as the gui; it is easier if I don't have to worry about code being interrupted with the hardware in an unknown state . So I added a handler for WM_COMMAND, with some cribbed display code to try and see why. The toolbar button defintely fired a WM_COMMAND message and the Id looked the same, so no explanation there.
      I guess the issue is with GUIGetMsg() which may be constructed to ignore all but a limited number of control handles, i.e. those made with the GuiCtrlCreate... commands; this is speculation.
      I would dearly love to find a tidy way to get around this. Having some controls handled in the message loop and some in a WM_COMMAND handler, performing the same task, feels ugly. I would be very grateful for further insight from someone experienced with handling a toolbar. Perhaps I should be trying to fire the menu item. I have attached a code snippet to try and illustrate the issue.
    • Queener
      By Queener
      This is the info of the interface:
      Title:    Password Safe
      Class:    #32770
      Class:    ToolbarWindow32
      Instance:    2
      ClassnameNN:    ToolbarWindow322
      Advanced (Class):    [CLASS:ToolbarWindow32; INSTANCE:2]
      1:    32003    Make New Database
      2:    32002    Open Another Database
      3:    32004    Close Database
      4:    32005    Save Database
      5:    0    
      6:    32066    Copy Password to Clipboard
      7:    32068    Copy Username to Clipboard
      8:    32069    Copy Notes to Clipboard
      9:    32065    Clear the clipboard contents
      10:    0    
      I wanted to click on 1:    32003    Make New Database. But unfortunately, I'm unable to click on that. Any help is much appreciated. Below are the code I tried:

      $Title = "Password Safe" $Class = "[CLASS:ToolbarWindow32; INSTANCE:2]" WinWaitActive($Title) Sleep(500) Dim $hWnd = WinGetHandle($Title,"") Dim $hToolBar = ControlGetHandle($hWnd, '', $Class) ConsoleWrite($hWnd & @TAB & $hToolBar & @LF) _GUICtrlToolbar_ClickIndex($hToolBar, 32003)
    • OldGuyWalking
      By OldGuyWalking
      I want to click on a button that is inside a custom ToolBar on a nonAutoIT created form.  I've been using MouseClick but that fails if the toolbar is detached or if the form is resized.
      There is no ID associated with the toolbar but there is a handle.  I'm thinking that to get the handle I need a ControlID but that only gets me to the toolbar and I'd then need to have a way to identify the position of a button in order to click on it.  
      I'd found a discussion about identifying the position of a noname button by, I believe, it's Tip text back in December but I can't find it now.  Memory is a bit fuzzy on how I even got to the topic because at the time I was searching for something else.   I'll continue to search but if anyone has seen the topic, or knows of another solution could you please point me in that direction. 
      Thank you.
    • BlazerV60
      By BlazerV60
      Hello everyone!
      I'm working on a GUI that has 2 explorer windows embedded inside of it.
      Eventually I'm going to put 4 explorer windows inside of the GUI since it's convenient to have 1 program opened with 4 explorer windows embedded inside it, than having 4 seperate explorer windows opened.
      Anyway, I ran into some space problems. I'm trying to remove the icons/toolbar that appears on top of the explorer windows since they take up so much space. Here's a pic of what I mean:

      Here's my code:
      #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #include <Constants.au3> Opt("WinTitleMatchMode", 4) Global $hMigration, $hExplHolder, $hExplorer, $hExplorer2, $sStartDir = "C:\" Global $iWidth = 800, $iHeight = 400 ;Create the Explorer GUI $hExplHolder = GUICreate("Explorer", $iWidth, $iHeight, Default, Default) Run('explorer.exe /n, "' & $sStartDir & '"') WinWait("[CLASS:CabinetWClass]") ;Wait until the window appears WinSetState("[CLASS:CabinetWClass]","",@SW_HIDE) WinMove($hExplorer, "", 0, 0, 400, 400) $hExplorer = WinGetHandle("[CLASS:CabinetWClass]") Run('explorer.exe /n, "' & $sStartDir & '"') WinWait("[CLASS:CabinetWClass]") ;Wait until the window appears WinSetState("[CLASS:CabinetWClass]","",@SW_HIDE) WinMove($hExplorer2, "", 400, 0, 400, 400) $hExplorer2 = WinGetHandle("[CLASS:CabinetWClass]") ;WinSetState($hExplorer, "", @SW_HIDE) ;WinMove($hExplorer, "", 0, 0, 400, 400) ;WinSetState($hExplorer2, "", @SW_HIDE) ;WinMove($hExplorer2, "", 400, 0, 400, 400) _WinAPI_SetParent($hExplorer, $hExplHolder) ;Puts the explorer window inside the GUI _WinAPI_SetWindowLong($hExplorer, $GWL_STYLE, -1064828928) ;Minuses the x button in the windows explorer (I think?) _WinAPI_SetParent($hExplorer2, $hExplHolder) ;Puts the explorer window inside the GUI _WinAPI_SetWindowLong($hExplorer2, $GWL_STYLE, -1064828928) ;Minuses the x button in the windows explorer (I think?) ControlListView($hExplorer, "", "[CLASS:SysListView32; INSTANCE:1]", "ViewChange", "list") ControlListView($hExplorer2, "", "[CLASS:SysListView32; INSTANCE:1]", "ViewChange", "list") $hList = GUICtrlCreateListView ("File", $iWidth + 4, 4, 292, 200, 0x0003 + 0x0008 + 0x0004) GUICtrlSetState (-1, 8) WinSetState($hExplorer, "", @SW_SHOW) WinSetState($hExplorer2, "", @SW_SHOW) GUISetState(@SW_SHOW, $hExplHolder) While 1 $msg = GUIGetMsg() Switch $msg Case -3 Exit Case -13 GUICtrlCreateListViewItem (@GUI_DRAGFILE, $hList) EndSwitch WEnd How can I remove those top icons/toolbar so that there's more room for the file listing?
      Edit: Extra props to whoever can make it so that the 2 explorer windows not do the brief flash before it disappears into the GUI.