Toolbar Creator - v. 2.2 beta available for download!

Discussion in 'Software' started by lblb, Jun 27, 2014.

  1. moniz

    moniz Pen Pal - Newbie

    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    5
    Thanks, I am running Powerpoint 2016 on a Surface Pro 4 with 64 bit Windows 10. To switch to the arrow pointer I am using a type 1 button and the hotkey ctrl-A.
     
  2. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    @moniz

    Thanks for the information.
    I'm guessing you are using the mouse. and that's why you want to go back to the cursor? (Because if you only use pen and touch, it always differentiates between the two.)

    To go back to the cursor, try creating then assigning the following command (as you may be able to appreciate, in these codes PointerType := 1 means the arrow, and PointerType := 2 means the pen.)

    Code:
    PPT_Pointer:
    Try
        {
        WinActivate, ahk_class screenClass ahk_exe POWERPNT.EXE
        ppt := ComObjActive("PowerPoint.Application")
        MyView := ppt.ActivePresentation.SlideShowWindow.View
        MyView.PointerType := 1
        ppt:=""
        }
    Return
    
     
    Last edited: Sep 30, 2017
  3. moniz

    moniz Pen Pal - Newbie

    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    5
    Thanks very much, With a couple tweaks I was able to get this to work. Odd thing is, it works intermittently. To be clear, I'm not using the mouse, just the surface tablet with keyboard and touchpad removed. Picture a powerpoint slide in a show and on it is an embedded video or animation. To play the video I need to use the arrow pointer to click on the play button (all using the stylus). So I write with ink on slide, then switch to arrow pointer, then back to ink. I have buttons for different color ink pens, laser pointer, highlighter, new slide, volume, slide advance, etc. All this works flawlessly. It is just the arrow pointer button that is unreliable (even with script above). Sometimes it works on the first click but usually it takes multiple (sometimes many) clicks. Perhaps a timing issue? A conflict with windows or the surface system? Please let me know if you have any thoughts on this.
     
  4. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    @moniz

    Sounds like you now have a fine setup for your presentations!

    Thanks for the explanations, I understand what you mean now. Unfortunately, I think what you are trying to do will be difficult because in newer versions of PPT, they REALLY want you to use the pen for inking! In fact, I am a bit surprised the two codes even work sporadically: on my version of PPT 365, I am completely unable to get the arrow pointer on the pen. (By the way, this is new to PPT 2016/365, and in previous versions the pen was just detected as a mouse.) So when I want to start a video, I use touch input (which might be an option that also works for you?)

    But if you say you are having some amount success when you repeatedly click the button, maybe you could try sending the command a few times for one buttin press. For example, in the previous code, you could have it send the "change cursor" command three times if in the previous code you replaced
    Code:
    MyView.PointerType := 1
    with
    Code:
    Loop, 3
    MyView.PointerType := 1
    
    You could also see if repeating the command, but inserting a slight delay between repeats (in the example below, I set the delay to 20 ms), works better:
    Code:
    Loop, 3
    {
    MyView.PointerType := 1
    Sleep, 20
    }
    
     
  5. robinv

    robinv Pen Pal - Newbie

    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    6
    Every now and again I try to find other Toolbars and utilities that make the Surface Pen usable outside of art software. There's nothing - nothing out there except Toolbar Creator. I find it unbelievable that other users are happy to map copy/paste to the buttons on the pen... and that's it. Having a toolbar of shortcuts is so fundamentally useful, so key to any kind of enjoyable workflow - what are people doing out there? Even Dell's Canvas screen with the custom software doesn't seem to have prompted Microsoft to add anything similar to the Surface Pen controls.

    Anyway - keep on going lblb, it's still the greatest pen companion out there and maybe the only one. I'm going to be featuring it in my next round of videos on running DAWs on the Surface Pro 2017.

    Thanks again for a great piece of software.
    http://www.surfaceproaudio.com
     
    thatcomicsguy likes this.
  6. moniz

    moniz Pen Pal - Newbie

    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    5
    Ibib, very clever - it worked! I had to include the repetition and delay. A short delay like 20 wasn't enough but 5 repetitions with 200 ms delays made it quite reliable. Probably something less would suffice. I have no idea why this works but thanks for the suggestion.
     
  7. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    @Naiplak
    You can assign a hotkey to a button very easily either to the existing toolbars or to a toolbar you designed. Have you been able to open the Toolbar Options? In there, go on the "Toolbar customization" tab, on that tab select the button you want to modify on the toolbar mockup, and on the right pane set "Type of button" to "Hotkey". Then you can press the hotkey you nee in the "Hotkey" textbox. Note that you'll need a physical keyboard to type in the hotkey.

    Let me know if you need more help!
     
    thatcomicsguy likes this.
  8. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    @Naiplak

    Are you using a physical keyboard (i.e., not a software keyboard) to set your shortcuts?
     
  9. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    @Naiplak

    We can try a few things.

    First: When you try to set a shortcut to something like Ctrl + s, does it actually show that in the textbox in the Toolbar Creator options?

    Second: Set a shortcut to something like Ctrl + s (whether it shows it correctly or not in the textbok), then quit Toolbar Creator. If you then restart Toolbar Creator and look at that button in the Options, does it now correctly show Ctrl + s in the textbox?

    Third: An easy solution (once you know how to do it) is to manually edit the .ini file of your toolbars (each toolbar is saved as a .ini file in the Files\Toolbars subfolder). For example, if you open the ini file of your toolbar in a text editor (I use the free Notepad++), you can scroll about 90 lines and you will see that each button is defined by a long series of entries. For example, look at your Button1. The 13th entry labeled "Button1_Type" is where the button type (i.e., 1 for simple hotkey) is saved. Then if your button is of type 1, it will send the shortcut on the following line labeled "Button1_Type1".
    If you saved a button to be Ctrl + s, the shortcut should be Button1_Type1=^{s}, which you can adjust manually (then restart Toolbar Creator if it's already running). If you see that ^{s} is already written, it means that the button is correctly sending Ctrl + s. If that's the case but the shortcut still doesn't work in your program, you can try replacing ^{s} with {Ctrl down}{s}{Ctrl up}. (If you are not familiar with AutoHotkey programming, you can look at the list of notations (i.e., where you'll see that Ctrl is ^) on the first two pages of the pdf file I uploaded in the first post of this thread.)

    Let me know what comes out of your investigations!
     
  10. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    Does it work if you you run Cubase as Admin (by right-clicking on its icon to launch it)?

    Also, if it (weirdly!) only works with a toggle (type 3), have you tried with a timed toggle (type 4), which would release it automatically? (In the options, the shortest delay is 200 ms, but you could shorten it manually in the .ini file to something like 50.)
     

Share This Page