Found you a great tool for your EP121, must see

Discussion in 'EP121 Slate' started by harbime, Sep 27, 2011.

Thread Status:
Not open for further replies.
  1. kamikaze458

    kamikaze458 Scribbler - Standard Member

    Messages:
    455
    Likes Received:
    0
    Trophy Points:
    31
    you forgot to sign your good work... :p

    thanks lblb
     
  2. kurt_hectic

    kurt_hectic Scribbler - Standard Member

    Messages:
    374
    Likes Received:
    1
    Trophy Points:
    31
    hey,

    I did my version for sketchbook pro:
    -close window
    -move window
    -space for move\zoom
    -undo \redo
    -and alt for color picking
    -window have low transparent

    It works fantastic! I have only one question: how to to delete the background of the window? I have marked these area by upper arrow:

    [​IMG]
     

    Attached Files:

  3. hunter99

    hunter99 To Old Now

    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    16
    kurt try this:


    ;############################### Window Settings ##############################

    ; Background color of window.
    #Window:Color=Black
    ; Default font color.
    #Window:FontColor=9B9B9B
    ; Font color when button is pressed.
    #Window:ActiveFontColor=00C0FF

    ; Specify Start-up window position by Left/Right/Top/Bottom. (alone or in combination)
    #Window:pos=LeftBottom
    ; You can also specify window position by the coordinate.
    ;#Window:X=0
    ;#Window:Y=0
    ;#Window:Minimize
    ; Window size (If not specified, window size will be set automatically.)
    ;#Window:Width=135
    ;#Window:Height=480
    ; Margin
    ;#Window:MarginLeft=5
    ;#Window:MarginTop=10
    ;#Window:MarginRight=0
    #Window:MarginBottom=5

    ; Window transparency: Full transparent 0 ~ 255 Opaque
    #Window:Transparent=200

    ;############################## Controls settings #############################


    In "#Window:Color=Black" you forgot the color.
    You can change "#Window:Transparent=200" value to your liking.

    have fun hunter
     
  4. kurt_hectic

    kurt_hectic Scribbler - Standard Member

    Messages:
    374
    Likes Received:
    1
    Trophy Points:
    31
    "#Window:Color=Black" makes my background black- that's even worse...

    I'm looking for sth like that :"#Window:Color=Transparent\none\empty\ect."
     
  5. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    kurt_hectic,

    Do the files in the zip file below work the way you want?

    I’ve had to modify both the ahk and text files so you will want to use them together. I think it works correctly but I haven't thoroughly tested it. Because of these modifications, you will probably want to make sure that all the buttons still work correctly and that I didn't break anything.

    If it works correctly, make sure to read the pdf file as you will now need to change the transparency level at a different place.
     

    Attached Files:

  6. kurt_hectic

    kurt_hectic Scribbler - Standard Member

    Messages:
    374
    Likes Received:
    1
    Trophy Points:
    31
    THX it works! I'm impressed ;]
     
  7. hunter99

    hunter99 To Old Now

    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    16
    kurt hectic,
    Sorry I misinterpreted your op, thought it was too easy and I'm to old and tired.
    Been retired too long.Thankfully lblb was on the job, he has a good head and is a really great writer.
    See now what you were trying to do, being able to place controls on the screen and having
    usable touch areas between them will be very handy with some programs.
    I changed the files lblb posted to now allow changing transparency from the text file.
    How he came up with his added lines is amazing, and it gave me a great starting point.
    All the lines he disabled should remain that way or removed.

    All controls must have a image assigned in the text file or buttons will not disappear
    when you approach them with your pen. With the control color being hidden they default
    to that sick cream color that windows usually uses. But being hidden the pen doesn't see it.

    The words "Transparent and TransColor" are attributes used by the AHK program itself,
    so when used in the text file and passed to the ahk script , then to the AHK program and it
    does ?. Without reading the source code I don't know where or what it does with the values .
    It was easier just to add a variable .

    Tested this on 4 different scripts I have, including RawInputControl_MultiPanel_2. Tried to run its bat file
    and they still ran the old way. Not to smart, forgot to recompile the ahk's to exe's as required by the bat file.


    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    NEW CHANGES in kurt_hectic_RawInputControlTest_EN.zip - mod'd by lblb 2/26/12
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    In the text file, under Heading : ;Window opacity:eek:paque transparent 0-255

    ADD: #Window:Opacity=180 ;Opacity is new variable used in lines 42,164 and 165 of the AHK FILE
    ------------------------------------------------------------------
    In AHK file:

    KEEP LINE 40 Gui, Color, red ;added by lblb 2/26/12 5:55pm
    CHANGE LINE 41 TO THIS WinSet, TransColor, red %Opacity% ;contains Opacity value from text file


    ADD LINES 164 and 165

    162 If (RegExMatch(readline, "^#Window:(.*?)=(.*)", match)) {
    163 Gui%match1% := match2
    164 If (match1 = "Opacity")
    165 Opacity := match2 ;value from text file is put in AHK as a var.
    166 If (match1 = "MarginLeft")
    167 base_x := match2
    168 If (match1 = "MarginTop")
    169 base_y := match2
    170 If (RegExMatch(match1, ".+Color"))
    171 Gui%match1% := "c" match2


    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I guess certain characters gives you faces. The first one should be a : and o ,the second one : and (
     
  8. lblb

    lblb Scribbler - Standard Member Senior Member

    Messages:
    1,198
    Likes Received:
    242
    Trophy Points:
    81
    hunter99,

    This is beautiful! Once I figured out the basic idea, I didn't have the heart (or time!) to try to figure out how to make it nicer and what you found works great! If I ever update the multipanel app again, I'll make sure to add this, it's way better.

    Since the forum seems very excited about your solution and inserts emoticons here and there, I had some difficulty figuring out your code. Could you instead upload your modified ahk and txt to make it easier for anyone interested (perhaps in a zip file)?

    Thanks, and great job figuring this one out!
     
  9. hunter99

    hunter99 To Old Now

    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    16
    Here you go, should added this the first time.
     
  10. hunter99

    hunter99 To Old Now

    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    16
    Should have waited on my previous post.
    Can now use either "#Window:Transparent=" or "#Window:Opacity=" in the text file. Just disable the one you
    don't need in the text file.
    "#Window:color=' will set the color of the window if using '#Window:Transparent=", if using "#Window:Opacity="
    there will be no color as the window is hidden. Remember with a hidden window you can touch right through it.

    "Window:Fontcolor=' and '#Window:ActiveFontColor" work in both.

    If there is no image assigned or enabled in any of the various controls, its color will the windows default.
    And the pen when near that control (ie. button), will not cause the window to hide.

    The following lines were added or changed in the AHK file: 41,44,245,and 246.

    Various changes made to the text file to easily see the added features.
     

    Attached Files:

    Last edited by a moderator: May 16, 2015
Thread Status:
Not open for further replies.

Share This Page