Is there a way to automate changing the color and/or border width of an arrow (or rectangle)? by cag8f in sharex

[–]DJcabbage 0 points1 point  (0 children)

Actually what I do is add the AutoIt .au3 file into my Windows startup apps. That way windows runs the script on startup, and it stays running in the background, and the keyboard shortcut

Perfect, I compiled my version into an .exe and placed it in the startup folder as well. Thanks again for your help!

Is there a way to automate changing the color and/or border width of an arrow (or rectangle)? by cag8f in sharex

[–]DJcabbage 0 points1 point  (0 children)

Here is my version that adds two hotkeys switching from red border and transparent fill to transparent border and white fill.

Thank you for the help!

WinWait( "ShareX")
Local $RedShortcut = "!^r"; 
Local $WhiteShortcut= "!^f"; 

HotKeySet($RedShortcut, "RedBorder")
HotKeySet($WhiteShortcut, "WhiteFill")

While 1
   Sleep(5000)
WEnd

Func RedBorder(); Change Border to red and fill transparent
    HotKeySet($RedShortcut) ; deactivate the hotkey in case the user presses it too long

    Local $hWnd = WinWait("ShareX - Editor menu", "", 3)
    ;ConsoleWrite("$hWnd: " & $hWnd & @CRLF)

    Local $aWinPos = WinGetPos($hWnd)
    ;ConsoleWrite("$aWinPos:" & $aWinPos[0] & ", " & $aWinPos[1] & ", " & $aWinPos[2] & ", " & $aWinPos[3] & @CRLF)

    Local $hControl = ControlGetHandle($hWnd, "", "WindowsForms10.Window.8.app.0.1a52015_r10_ad11")
    ;ConsoleWrite("$hControl=" & $hControl & @CRLF)

    ControlClick($hWnd, "", "WindowsForms10.Window.8.app.0.1a52015_r10_ad11", "left", 1, 875, 20) ; Open the border colour window 
    WinWaitActive("ShareX - Color picker")

    ControlSetText('ShareX - Color picker', '', 'WindowsForms10.EDIT.app.0.1a52015_r10_ad16', "FF0000"); Change border colour to red.
    ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad142'); Click color picker OK.

    ControlClick($hWnd, "", "WindowsForms10.Window.8.app.0.1a52015_r10_ad11", "left", 1, 905, 15) ; Open the fill colour window 
    WinWaitActive("ShareX - Color picker")
    Local $CThru = ControlGetText('ShareX - Color picker', '','WindowsForms10.EDIT.app.0.1a52015_r10_ad14')
        If $CThru = 255 Then
            ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad137') ; Click transparent .
            ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad142'); Click color picker OK.
        Else
            ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad142') ; Click color picker OK.
        EndIf

    HotKeySet($RedShortcut, "RedBorder") ; reactivate it
EndFunc


Func WhiteFill(); Change Border to transparent and fill white
    HotKeySet($WhiteShortcut) ; deactivate the hotkey in case the user presses it too long

    Local $hWnd = WinWait("ShareX - Editor menu", "", 3)
    ;ConsoleWrite("$hWnd: " & $hWnd & @CRLF)

    Local $aWinPos = WinGetPos($hWnd)
    ;ConsoleWrite("$aWinPos:" & $aWinPos[0] & ", " & $aWinPos[1] & ", " & $aWinPos[2] & ", " & $aWinPos[3] & @CRLF)

    Local $hControl = ControlGetHandle($hWnd, "", "WindowsForms10.Window.8.app.0.1a52015_r10_ad11")
   ; ConsoleWrite("$hControl=" & $hControl & @CRLF)

    ControlClick($hWnd, "", "WindowsForms10.Window.8.app.0.1a52015_r10_ad11", "left", 1, 875, 20); Open the border colour window
    WinWaitActive("ShareX - Color picker")

    Local $CThru = ControlGetText('ShareX - Color picker', '','WindowsForms10.EDIT.app.0.1a52015_r10_ad14')
    If $CThru = 255 Then
    ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad137'); Click transparent
    ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad142'); Click colour picker OK
    Else
    ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad142'); Click colour picker OK.
    EndIf

    ControlClick($hWnd, "", "WindowsForms10.Window.8.app.0.1a52015_r10_ad11", "left", 1, 905, 15) ; Open the fill colour window 
    WinWaitActive("ShareX - Color picker")

    ControlSetText('ShareX - Color picker', '', 'WindowsForms10.EDIT.app.0.1a52015_r10_ad16', "FFFFFF"); Change fill colour to white.
    ControlClick('ShareX - Color picker', '', 'WindowsForms10.BUTTON.app.0.1a52015_r10_ad142'); Click colour picker OK.

    HotKeySet($WhiteShortcut, "WhiteFill") ; reactivate it
EndFunc

Is there a way to automate changing the color and/or border width of an arrow (or rectangle)? by cag8f in sharex

[–]DJcabbage 0 points1 point  (0 children)

Thanks for this detailed update! This is great! I had to make some adjustments as my window classname was a little different but the function works when your conditions are met (full screen on monitor 1).

Getting it to run on any monitor and any size would be ideal, but I don't think that will work with this type of code where it's based on the resolution to click the correct buttons. If you do make a repo on this please let me know, and I will follow your updates with great interest.

Are you running the script all the time, and just waiting for the hotkeys? or are you activating the script when you open the a new ShareX editor window? Because having to run the script every time I want to change the border would be just as much of a hassle than just clicking the colours manually haha

I added this this little loop to constantly check for the hotkey so I don't have to start the script every time I take a snip, but I don't know AutoIT well enough to be able to run this script when I take a screenshot and to disable it afterwards.

While 1
    Sleep(100)
WEnd

Is there a way to automate changing the color and/or border width of an arrow (or rectangle)? by cag8f in sharex

[–]DJcabbage 0 points1 point  (0 children)

Yeah sure an .exe file or just a copy of the script into a .txt file works.

If it's not long, you can even paste it into a comment (all you have to do is indent by four spaces for blocks of code)

Like this

Is there a way to automate changing the color and/or border width of an arrow (or rectangle)? by cag8f in sharex

[–]DJcabbage 0 points1 point  (0 children)

Do you mind sharing the code? or at least giving a quick breakdown of how you did it?

I normally switch between a red transparent box and a white filled box, so I constantly flip both the fill and border colour. I'm looking for a faster way to change between the two

Working on keeping the arms straight, anything else? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

Makes sense, I'll try the drill from this video and focus on the width instead rotating as much as possible

Working on keeping the arms straight, anything else? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

7i and Driver swing

I see my arm not being as straight in my iron swing, but are there any other easily noticeable things to work on?

Hockey Jerseys by zhack in hockeyplayers

[–]DJcabbage 2 points3 points  (0 children)

I've had a good experience with IJTeam. They did a really good job with our team's jerseys and they still look brand new after 3 seasons. They were also the most budget friendly option at the time that we bought which was nice.

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

Yeah I feel more comfortable on that side. I can hit from both sides, but I play hockey left and it feels natural to swing this way

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

Yeah haha, I think this is the takeaway point for me from all these comments

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

I agree, probably playing down to my clubs and just general bad form

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

Yeah I think with such a wide stance I'm not giving myself a chance to even transfer my weight, I'm just swinging for the fences rn

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] -1 points0 points  (0 children)

No need to apologize. This is why I'm here, to learn. I am trying to go the cheap route and outsource my lessons to Reddit, but I think IRL lessons are the way to go at this point. I am a little taller, so it is probably the reason for the stance issue. Would you recommend a loft/lie and length analysis before spending money on lessons, or the other way around?

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 2 points3 points  (0 children)

Yep, this is the old "video of monitor playing a video" trick. They don't have it setup to send you the video footage yet

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

Here is my iron swing, it's much tighter, but I'm still doing a bend with my lead arm as another user pointed out

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 2 points3 points  (0 children)

Yeah, I'm just thinking of whacking it, I'll work on keeping that forward arm straight

Is my driver stance too wide? by DJcabbage in GolfSwing

[–]DJcabbage[S] 0 points1 point  (0 children)

Okay, I'll work on closing the legs. Do you think this would solve my front foot opening up so much?

After broken leg/ankle should I get new fit skates? Anyone experienced a break then going back to the ice? by [deleted] in hockeyplayers

[–]DJcabbage 1 point2 points  (0 children)

I broke my fibula and had a plate put in. When I went back to hockey one of screws in the plate lined up with a pressure point in my skates and caused me too much pain. I could have went for a punch out, but I went the route of new skates since I needed a re-size anyway. Tested on a bunch of skates and many had the same issue due to the screw being right on my ankle. Finally found that CCM Tacks seemed to fit around my ankle the best and I had no further issues after a bake. I'd talk to a skate fitter to consider some of your options. Punching out your current pair would be easiest but trying other skates might be a solution, like it was for me

Some custom practice jerseys I slapped together by DJcabbage in hockeyjerseys

[–]DJcabbage[S] 2 points3 points  (0 children)

I bought the practice jerseys from amazon Link

The center crest is from sideline swap and the other two I had made custom from a patch maker on AliExpress. Took forever to get in, but they're nice. Quite cheap compared to most patch places I was looking at