Tablet Friend - a decent toolbar

Discussion in 'Software' started by Martenfur, Sep 7, 2021.

  1. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    wassup

    So, you win. Tablet Pro crashes explorer.exe on a daily basis, Toolbar Creator does not respect my clipboard's personal boundaries, I'm writing my own thing.

    Just starting out, but here's the idea so far:

    - The toolar will be a floating semi-transparent window. May or may not add docking in the future.
    - The toolbars will be described as YAML configs. Will try to keep the configs as simple as possible to avoid the monster inis from toolbar creator.
    Code:
    cut:
        action: A+Ctrl
        icon: icons/cut.svg
        position: 0,0
    cut:
        action: A+Ctrl
        text: Cut
        icon: icons/cut.svg
        position: 0,0
        size: 1,1
    copy:
        action: toggle Ctrl
    button:
        actions:
            - key A+Ctrl
            - cmd dotnet new
    
    - Several toolbars will be possible. Will make an option to choose them from the tray icon menu.
    - Each button will be able to have the following actions:
    - Button/button combo press
    - Button toggle
    - Waiting for a certain amount of time (useful for chaining)
    - Executing an arbitrary cmd line (infinite extensibility and a huge security risk but who cares lole)
    - Chaining any of the events above.

    And the best part is. it will be free and opensource, licensed under MIT. Here's the repo:
    https://github.com/Martenfur/TabletFriend

    So yeah, make your suggestions, and stuff.
     
    Tams and Marty like this.
  2. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    Decided to ditch the manual positions and opted for self-stacking based on provided button sizes and overall desired toolbar width. Work pretty well so far.
    upload_2021-9-8_2-17-28.png

    upload_2021-9-8_2-19-5.png
     
  3. Marty

    Marty Pen Pro - Senior Member Senior Member

    Messages:
    3,632
    Likes Received:
    3,746
    Trophy Points:
    231
    This is a really cool project!

    I was wondering if you had any plans to support hover 'flicks'. Basically, imagine a radial menu that appears when you press the pen button:

    [​IMG]

    When you release the pen button over one of the icons, it executes a command, like toggling the CTRL down/up state.
     
  4. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    Ye, not really. I don't see a decent way to integrate it without butchering the right click. I have a surface pen, so I am targeting it first, and the thing has only one easily accessible button.
     
  5. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,202
    Likes Received:
    250
    Trophy Points:
    101
    I'm glad you've decided to make your own. Hopefully, you are able to make it so that it answers all your needs and solves the problems that you see in the other toolbar programs.

    I'm not sure why you choose to project so much negativity. There is no reason to bash other people's projects in order to promote yours. No one is against you. You can just highlight the differences and showcase the advantages of your program: if your product is good enough, people will adopt it.

    Anyway, best of luck with this project! Such programs are needed.
     
    Tams likes this.
  6. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    It's just my straightforwardness that gets interpreted as negativity. I don't sugarcoat, that's it.
     
  7. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    Progress so far:

    Got core functionality to work, the thing can press keys, do key combinations, type and chain arbitrary events. Layout system is also working very well. For example, this config

    Code:
    layout_width: 4
    button_size: 64
    
    buttons:
        chain:
            actions:
                - A
                - wait 500
                - B
                - wait 500
                - C
                - wait 500
                - type ARRG ARRG!!!!!
                - wait 500
            size: 4,1
            text: Chain
        spacer1:
            spacer: true
            size: 4,1
        copy:
            action: Control+C
            text: Copy
            size: 2,1   
        paste:
            action: Control+V
            text: Paste
            size: 2,1
        spacer2:
            spacer: true
        cut:
            action: Control+X
            text: Cut
            size: 2,1
    produces this fully working window.

    upload_2021-9-8_22-15-30.png

    Having some troubles with toggle buttons, tho. Those are quite a pain.
     
  8. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    Experimenting with material design.
    upload_2021-9-15_1-10-19.png
    upload_2021-9-15_1-15-17.png
     
    Marty likes this.
  9. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    Added different material design styles. Each style can be set on per-button basis with a common palette. Additionally, the default windows style is available. Colors are currently hardcoded, but I'll fix that shortly.
     

    Attached Files:

    Last edited: Sep 16, 2021
    Marty likes this.
  10. Martenfur

    Martenfur Pen Pal - Newbie

    Messages:
    27
    Likes Received:
    24
    Trophy Points:
    6
    A more proper toolbar with all available button types (except default windows button, it's ugly lul) used.
    On the left is the config that produces it. Configs can be edited live - the toolbar will update automagically.
    upload_2021-9-16_21-9-54.png
     
Loading...

Share This Page