Windows snipping tool highlight straight












11















In the Windows Snipping Tool, I would like to know how I can use the highlighter tool to draw straight lines?










share|improve this question


















  • 1





    Steady hand?! As I know there is no option to draw a straight line. I can suggest you another light software instead, if you wish.

    – User552853
    Mar 29 '17 at 7:30






  • 1





    @User552853 This option doesn't exist? Foolishness, it's the first thing I want to do with a tool like that... If it's a light and convenient one, I wish!

    – zatenzu
    Mar 29 '17 at 7:39






  • 1





    There are 2 tools that I like. First is LightShot app.prntscr.comand and the second is GreenShot getgreenshot.org/downloads. I find Lightshot easier because I edit the capture on screen right away, while GreenShot opens an editor (like snipping tool does). GreenShot does have the option to make straight lines, shapes with a highlighter.

    – User552853
    Mar 29 '17 at 7:51













  • & many more options like upload, share, search similar images on google, etc. :)

    – User552853
    Mar 29 '17 at 7:55






  • 1





    @User552853 I have installed both but I prefere greenshot because you can directly highlight text in a straight way. Plus, it has a Jira plugin and it's very usefull in my job. Thanks for your replies!

    – zatenzu
    Mar 29 '17 at 8:44


















11















In the Windows Snipping Tool, I would like to know how I can use the highlighter tool to draw straight lines?










share|improve this question


















  • 1





    Steady hand?! As I know there is no option to draw a straight line. I can suggest you another light software instead, if you wish.

    – User552853
    Mar 29 '17 at 7:30






  • 1





    @User552853 This option doesn't exist? Foolishness, it's the first thing I want to do with a tool like that... If it's a light and convenient one, I wish!

    – zatenzu
    Mar 29 '17 at 7:39






  • 1





    There are 2 tools that I like. First is LightShot app.prntscr.comand and the second is GreenShot getgreenshot.org/downloads. I find Lightshot easier because I edit the capture on screen right away, while GreenShot opens an editor (like snipping tool does). GreenShot does have the option to make straight lines, shapes with a highlighter.

    – User552853
    Mar 29 '17 at 7:51













  • & many more options like upload, share, search similar images on google, etc. :)

    – User552853
    Mar 29 '17 at 7:55






  • 1





    @User552853 I have installed both but I prefere greenshot because you can directly highlight text in a straight way. Plus, it has a Jira plugin and it's very usefull in my job. Thanks for your replies!

    – zatenzu
    Mar 29 '17 at 8:44
















11












11








11


2






In the Windows Snipping Tool, I would like to know how I can use the highlighter tool to draw straight lines?










share|improve this question














In the Windows Snipping Tool, I would like to know how I can use the highlighter tool to draw straight lines?







windows-10 snipping






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 29 '17 at 7:14









zatenzuzatenzu

58114




58114








  • 1





    Steady hand?! As I know there is no option to draw a straight line. I can suggest you another light software instead, if you wish.

    – User552853
    Mar 29 '17 at 7:30






  • 1





    @User552853 This option doesn't exist? Foolishness, it's the first thing I want to do with a tool like that... If it's a light and convenient one, I wish!

    – zatenzu
    Mar 29 '17 at 7:39






  • 1





    There are 2 tools that I like. First is LightShot app.prntscr.comand and the second is GreenShot getgreenshot.org/downloads. I find Lightshot easier because I edit the capture on screen right away, while GreenShot opens an editor (like snipping tool does). GreenShot does have the option to make straight lines, shapes with a highlighter.

    – User552853
    Mar 29 '17 at 7:51













  • & many more options like upload, share, search similar images on google, etc. :)

    – User552853
    Mar 29 '17 at 7:55






  • 1





    @User552853 I have installed both but I prefere greenshot because you can directly highlight text in a straight way. Plus, it has a Jira plugin and it's very usefull in my job. Thanks for your replies!

    – zatenzu
    Mar 29 '17 at 8:44
















  • 1





    Steady hand?! As I know there is no option to draw a straight line. I can suggest you another light software instead, if you wish.

    – User552853
    Mar 29 '17 at 7:30






  • 1





    @User552853 This option doesn't exist? Foolishness, it's the first thing I want to do with a tool like that... If it's a light and convenient one, I wish!

    – zatenzu
    Mar 29 '17 at 7:39






  • 1





    There are 2 tools that I like. First is LightShot app.prntscr.comand and the second is GreenShot getgreenshot.org/downloads. I find Lightshot easier because I edit the capture on screen right away, while GreenShot opens an editor (like snipping tool does). GreenShot does have the option to make straight lines, shapes with a highlighter.

    – User552853
    Mar 29 '17 at 7:51













  • & many more options like upload, share, search similar images on google, etc. :)

    – User552853
    Mar 29 '17 at 7:55






  • 1





    @User552853 I have installed both but I prefere greenshot because you can directly highlight text in a straight way. Plus, it has a Jira plugin and it's very usefull in my job. Thanks for your replies!

    – zatenzu
    Mar 29 '17 at 8:44










1




1





Steady hand?! As I know there is no option to draw a straight line. I can suggest you another light software instead, if you wish.

– User552853
Mar 29 '17 at 7:30





Steady hand?! As I know there is no option to draw a straight line. I can suggest you another light software instead, if you wish.

– User552853
Mar 29 '17 at 7:30




1




1





@User552853 This option doesn't exist? Foolishness, it's the first thing I want to do with a tool like that... If it's a light and convenient one, I wish!

– zatenzu
Mar 29 '17 at 7:39





@User552853 This option doesn't exist? Foolishness, it's the first thing I want to do with a tool like that... If it's a light and convenient one, I wish!

– zatenzu
Mar 29 '17 at 7:39




1




1





There are 2 tools that I like. First is LightShot app.prntscr.comand and the second is GreenShot getgreenshot.org/downloads. I find Lightshot easier because I edit the capture on screen right away, while GreenShot opens an editor (like snipping tool does). GreenShot does have the option to make straight lines, shapes with a highlighter.

– User552853
Mar 29 '17 at 7:51







There are 2 tools that I like. First is LightShot app.prntscr.comand and the second is GreenShot getgreenshot.org/downloads. I find Lightshot easier because I edit the capture on screen right away, while GreenShot opens an editor (like snipping tool does). GreenShot does have the option to make straight lines, shapes with a highlighter.

– User552853
Mar 29 '17 at 7:51















& many more options like upload, share, search similar images on google, etc. :)

– User552853
Mar 29 '17 at 7:55





& many more options like upload, share, search similar images on google, etc. :)

– User552853
Mar 29 '17 at 7:55




1




1





@User552853 I have installed both but I prefere greenshot because you can directly highlight text in a straight way. Plus, it has a Jira plugin and it's very usefull in my job. Thanks for your replies!

– zatenzu
Mar 29 '17 at 8:44







@User552853 I have installed both but I prefere greenshot because you can directly highlight text in a straight way. Plus, it has a Jira plugin and it's very usefull in my job. Thanks for your replies!

– zatenzu
Mar 29 '17 at 8:44












4 Answers
4






active

oldest

votes


















8














Windows snipping tool doesn't have any way to let us draw straight lines by pressing Shift. Windows Ink Workspace is another tool that supports snipping and drawing the snipped portion. It has a virtual ruler that helps us to draw straight lines.





To enable Windows Ink Workspace




Right-click anywhere on the taskbar and from the context menu select
Show Windows Ink Workspace button. An icon of a pen writing in an “S”
shape will appear in the notifications area to the far right.




To launch the workspace, click or tap the pen-shaped Windows Ink Workspace icon that appears in your notification area.



Icon in the notification area





Tap the "Screen sketch" block. It will be the third block in the list. It will automatically take a screenshot of your display and load it for your sketching.



Screen Sketch in Windows Ink Workspace





Navigate to the pen bar at the top right of the screen.





Select the ruler icon. This looks like a diagonal ruler.





Place the mouse on top of the ruler and use mouse scroll wheel to rotate and position the ruler.



Sample Sketch
A sample sketch





Hope this helps.




Note: Screen Sketch is a new feature available in the Windows 10 Anniversary Update







share|improve this answer



















  • 2





    Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

    – zatenzu
    Mar 29 '17 at 8:23






  • 1





    Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

    – oliver-clare
    Jun 20 '18 at 14:40



















7














User 3DWizard has a nice AutoHotKey script which I slightly modified to helped me solve this problem. Hold Shift inside the Snipping Tool window to restrict the mouse to horizontal movement.



SendMode Input ; Recommended for new scripts due to its superior speed and reliability
SetTitleMatchMode 2 ; Allows for partial matches in window titles

; Commands specific to when Snipping Tool is open
#IfWinActive, Snipping Tool
$*Shift::
Send {Shift Down}
CoordMode, Mouse, Screen
MouseGetPos, SetX, SetY
; clip the cursor to a rectangle that consists just of a line in x-direction
ClipCursor(true, -1000000, SetY, 1000000, SetY+1)
KeyWait Shift
return

$*Shift Up::
Send {Shift Up}
ClipCursor(false, 0, 0, 0, 0) ; unclip the cursor
return

ClipCursor(Confine=True, x1=0 , y1=0, x2=1, y2=1)
{
VarSetCapacity(R, 16, 0), NumPut(x1, &R+0), NumPut(y1, &R+4), NumPut(x2, &R+8), NumPut(y2, &R+12)
Return Confine ? DllCall("ClipCursor", UInt, &R) : DllCall("ClipCursor")
}
#IfWinActive





share|improve this answer
























  • Brilliant use of AHKs to make ad-hoc UX improvements.

    – Screenack
    Jan 3 '18 at 18:58











  • You Sir are genius!!!

    – Vesselin Obreshkov
    Jan 26 '18 at 15:53



















1














The Answer by @HaveSpacesuit wasn't working for me in Windows 10.



Releasing Shift didn't release the cursor.



To fix it, change third line from the back to:



Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )


Entire, working code:



SendMode Input ; Recommended for new scripts due to its superior speed and reliability
SetTitleMatchMode 2 ; Allows for partial matches in window titles
CoordMode, Mouse, Screen

; Commands specific to when Snipping Tool is open
#IfWinActive, Snipping Tool
$*Shift::
Send {Shift Down}
MouseGetPos, SetX, SetY
ClipCursor( true, -10000, SetY, 10000, SetY+1 ) ;clip the cursor to a rectangle that consists just of a line in x-direction
KeyWait Shift
return

$*Shift Up::
Send {Shift Up}
ClipCursor( false, 0, 0, 0, 0 ) ; unclip the cursor
return

ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )
}
#IfWinActive





share|improve this answer































    1














    I came up with a very low-tech solution for this: MouseKeys!



    I simply have it set up so that whenever I turn off NumLock, MouseKeys is activated. Then I just line up the highlighter cursor, "click" by pressing NumPad-0, then slide to the right using NumPad-6. NumPad-5 seems to consistently "unclick" at the end; I had mixed results pressing NumPad-0 again.



    Note, this "MouseKeys always on" solution is probably only convenient on a desktop full keyboard. If you have a shared QWERTY/NumPad you'd want to use the MouseKeys hotkey instead to activate/deactivate.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1193439%2fwindows-snipping-tool-highlight-straight%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      8














      Windows snipping tool doesn't have any way to let us draw straight lines by pressing Shift. Windows Ink Workspace is another tool that supports snipping and drawing the snipped portion. It has a virtual ruler that helps us to draw straight lines.





      To enable Windows Ink Workspace




      Right-click anywhere on the taskbar and from the context menu select
      Show Windows Ink Workspace button. An icon of a pen writing in an “S”
      shape will appear in the notifications area to the far right.




      To launch the workspace, click or tap the pen-shaped Windows Ink Workspace icon that appears in your notification area.



      Icon in the notification area





      Tap the "Screen sketch" block. It will be the third block in the list. It will automatically take a screenshot of your display and load it for your sketching.



      Screen Sketch in Windows Ink Workspace





      Navigate to the pen bar at the top right of the screen.





      Select the ruler icon. This looks like a diagonal ruler.





      Place the mouse on top of the ruler and use mouse scroll wheel to rotate and position the ruler.



      Sample Sketch
      A sample sketch





      Hope this helps.




      Note: Screen Sketch is a new feature available in the Windows 10 Anniversary Update







      share|improve this answer



















      • 2





        Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

        – zatenzu
        Mar 29 '17 at 8:23






      • 1





        Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

        – oliver-clare
        Jun 20 '18 at 14:40
















      8














      Windows snipping tool doesn't have any way to let us draw straight lines by pressing Shift. Windows Ink Workspace is another tool that supports snipping and drawing the snipped portion. It has a virtual ruler that helps us to draw straight lines.





      To enable Windows Ink Workspace




      Right-click anywhere on the taskbar and from the context menu select
      Show Windows Ink Workspace button. An icon of a pen writing in an “S”
      shape will appear in the notifications area to the far right.




      To launch the workspace, click or tap the pen-shaped Windows Ink Workspace icon that appears in your notification area.



      Icon in the notification area





      Tap the "Screen sketch" block. It will be the third block in the list. It will automatically take a screenshot of your display and load it for your sketching.



      Screen Sketch in Windows Ink Workspace





      Navigate to the pen bar at the top right of the screen.





      Select the ruler icon. This looks like a diagonal ruler.





      Place the mouse on top of the ruler and use mouse scroll wheel to rotate and position the ruler.



      Sample Sketch
      A sample sketch





      Hope this helps.




      Note: Screen Sketch is a new feature available in the Windows 10 Anniversary Update







      share|improve this answer



















      • 2





        Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

        – zatenzu
        Mar 29 '17 at 8:23






      • 1





        Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

        – oliver-clare
        Jun 20 '18 at 14:40














      8












      8








      8







      Windows snipping tool doesn't have any way to let us draw straight lines by pressing Shift. Windows Ink Workspace is another tool that supports snipping and drawing the snipped portion. It has a virtual ruler that helps us to draw straight lines.





      To enable Windows Ink Workspace




      Right-click anywhere on the taskbar and from the context menu select
      Show Windows Ink Workspace button. An icon of a pen writing in an “S”
      shape will appear in the notifications area to the far right.




      To launch the workspace, click or tap the pen-shaped Windows Ink Workspace icon that appears in your notification area.



      Icon in the notification area





      Tap the "Screen sketch" block. It will be the third block in the list. It will automatically take a screenshot of your display and load it for your sketching.



      Screen Sketch in Windows Ink Workspace





      Navigate to the pen bar at the top right of the screen.





      Select the ruler icon. This looks like a diagonal ruler.





      Place the mouse on top of the ruler and use mouse scroll wheel to rotate and position the ruler.



      Sample Sketch
      A sample sketch





      Hope this helps.




      Note: Screen Sketch is a new feature available in the Windows 10 Anniversary Update







      share|improve this answer













      Windows snipping tool doesn't have any way to let us draw straight lines by pressing Shift. Windows Ink Workspace is another tool that supports snipping and drawing the snipped portion. It has a virtual ruler that helps us to draw straight lines.





      To enable Windows Ink Workspace




      Right-click anywhere on the taskbar and from the context menu select
      Show Windows Ink Workspace button. An icon of a pen writing in an “S”
      shape will appear in the notifications area to the far right.




      To launch the workspace, click or tap the pen-shaped Windows Ink Workspace icon that appears in your notification area.



      Icon in the notification area





      Tap the "Screen sketch" block. It will be the third block in the list. It will automatically take a screenshot of your display and load it for your sketching.



      Screen Sketch in Windows Ink Workspace





      Navigate to the pen bar at the top right of the screen.





      Select the ruler icon. This looks like a diagonal ruler.





      Place the mouse on top of the ruler and use mouse scroll wheel to rotate and position the ruler.



      Sample Sketch
      A sample sketch





      Hope this helps.




      Note: Screen Sketch is a new feature available in the Windows 10 Anniversary Update








      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Mar 29 '17 at 7:55









      CodeItCodeIt

      1,20311124




      1,20311124








      • 2





        Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

        – zatenzu
        Mar 29 '17 at 8:23






      • 1





        Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

        – oliver-clare
        Jun 20 '18 at 14:40














      • 2





        Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

        – zatenzu
        Mar 29 '17 at 8:23






      • 1





        Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

        – oliver-clare
        Jun 20 '18 at 14:40








      2




      2





      Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

      – zatenzu
      Mar 29 '17 at 8:23





      Nice! I didn't know this tool. Thanks for the tip but I found it heavy. I can't directly select the area to snip and the ruler tool appears in a diagonal way, I have to scroll to put it horizontally etc ... I need a faster tool!

      – zatenzu
      Mar 29 '17 at 8:23




      1




      1





      Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

      – oliver-clare
      Jun 20 '18 at 14:40





      Wow, Windows Ink Workspace Sketch would be such a great tool if the ruler wasn't so crap! Ruler should start horizontal and should be easily rotatable via mouse or keyboard shortcuts.

      – oliver-clare
      Jun 20 '18 at 14:40













      7














      User 3DWizard has a nice AutoHotKey script which I slightly modified to helped me solve this problem. Hold Shift inside the Snipping Tool window to restrict the mouse to horizontal movement.



      SendMode Input ; Recommended for new scripts due to its superior speed and reliability
      SetTitleMatchMode 2 ; Allows for partial matches in window titles

      ; Commands specific to when Snipping Tool is open
      #IfWinActive, Snipping Tool
      $*Shift::
      Send {Shift Down}
      CoordMode, Mouse, Screen
      MouseGetPos, SetX, SetY
      ; clip the cursor to a rectangle that consists just of a line in x-direction
      ClipCursor(true, -1000000, SetY, 1000000, SetY+1)
      KeyWait Shift
      return

      $*Shift Up::
      Send {Shift Up}
      ClipCursor(false, 0, 0, 0, 0) ; unclip the cursor
      return

      ClipCursor(Confine=True, x1=0 , y1=0, x2=1, y2=1)
      {
      VarSetCapacity(R, 16, 0), NumPut(x1, &R+0), NumPut(y1, &R+4), NumPut(x2, &R+8), NumPut(y2, &R+12)
      Return Confine ? DllCall("ClipCursor", UInt, &R) : DllCall("ClipCursor")
      }
      #IfWinActive





      share|improve this answer
























      • Brilliant use of AHKs to make ad-hoc UX improvements.

        – Screenack
        Jan 3 '18 at 18:58











      • You Sir are genius!!!

        – Vesselin Obreshkov
        Jan 26 '18 at 15:53
















      7














      User 3DWizard has a nice AutoHotKey script which I slightly modified to helped me solve this problem. Hold Shift inside the Snipping Tool window to restrict the mouse to horizontal movement.



      SendMode Input ; Recommended for new scripts due to its superior speed and reliability
      SetTitleMatchMode 2 ; Allows for partial matches in window titles

      ; Commands specific to when Snipping Tool is open
      #IfWinActive, Snipping Tool
      $*Shift::
      Send {Shift Down}
      CoordMode, Mouse, Screen
      MouseGetPos, SetX, SetY
      ; clip the cursor to a rectangle that consists just of a line in x-direction
      ClipCursor(true, -1000000, SetY, 1000000, SetY+1)
      KeyWait Shift
      return

      $*Shift Up::
      Send {Shift Up}
      ClipCursor(false, 0, 0, 0, 0) ; unclip the cursor
      return

      ClipCursor(Confine=True, x1=0 , y1=0, x2=1, y2=1)
      {
      VarSetCapacity(R, 16, 0), NumPut(x1, &R+0), NumPut(y1, &R+4), NumPut(x2, &R+8), NumPut(y2, &R+12)
      Return Confine ? DllCall("ClipCursor", UInt, &R) : DllCall("ClipCursor")
      }
      #IfWinActive





      share|improve this answer
























      • Brilliant use of AHKs to make ad-hoc UX improvements.

        – Screenack
        Jan 3 '18 at 18:58











      • You Sir are genius!!!

        – Vesselin Obreshkov
        Jan 26 '18 at 15:53














      7












      7








      7







      User 3DWizard has a nice AutoHotKey script which I slightly modified to helped me solve this problem. Hold Shift inside the Snipping Tool window to restrict the mouse to horizontal movement.



      SendMode Input ; Recommended for new scripts due to its superior speed and reliability
      SetTitleMatchMode 2 ; Allows for partial matches in window titles

      ; Commands specific to when Snipping Tool is open
      #IfWinActive, Snipping Tool
      $*Shift::
      Send {Shift Down}
      CoordMode, Mouse, Screen
      MouseGetPos, SetX, SetY
      ; clip the cursor to a rectangle that consists just of a line in x-direction
      ClipCursor(true, -1000000, SetY, 1000000, SetY+1)
      KeyWait Shift
      return

      $*Shift Up::
      Send {Shift Up}
      ClipCursor(false, 0, 0, 0, 0) ; unclip the cursor
      return

      ClipCursor(Confine=True, x1=0 , y1=0, x2=1, y2=1)
      {
      VarSetCapacity(R, 16, 0), NumPut(x1, &R+0), NumPut(y1, &R+4), NumPut(x2, &R+8), NumPut(y2, &R+12)
      Return Confine ? DllCall("ClipCursor", UInt, &R) : DllCall("ClipCursor")
      }
      #IfWinActive





      share|improve this answer













      User 3DWizard has a nice AutoHotKey script which I slightly modified to helped me solve this problem. Hold Shift inside the Snipping Tool window to restrict the mouse to horizontal movement.



      SendMode Input ; Recommended for new scripts due to its superior speed and reliability
      SetTitleMatchMode 2 ; Allows for partial matches in window titles

      ; Commands specific to when Snipping Tool is open
      #IfWinActive, Snipping Tool
      $*Shift::
      Send {Shift Down}
      CoordMode, Mouse, Screen
      MouseGetPos, SetX, SetY
      ; clip the cursor to a rectangle that consists just of a line in x-direction
      ClipCursor(true, -1000000, SetY, 1000000, SetY+1)
      KeyWait Shift
      return

      $*Shift Up::
      Send {Shift Up}
      ClipCursor(false, 0, 0, 0, 0) ; unclip the cursor
      return

      ClipCursor(Confine=True, x1=0 , y1=0, x2=1, y2=1)
      {
      VarSetCapacity(R, 16, 0), NumPut(x1, &R+0), NumPut(y1, &R+4), NumPut(x2, &R+8), NumPut(y2, &R+12)
      Return Confine ? DllCall("ClipCursor", UInt, &R) : DllCall("ClipCursor")
      }
      #IfWinActive






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Aug 10 '17 at 16:23









      HaveSpacesuitHaveSpacesuit

      21828




      21828













      • Brilliant use of AHKs to make ad-hoc UX improvements.

        – Screenack
        Jan 3 '18 at 18:58











      • You Sir are genius!!!

        – Vesselin Obreshkov
        Jan 26 '18 at 15:53



















      • Brilliant use of AHKs to make ad-hoc UX improvements.

        – Screenack
        Jan 3 '18 at 18:58











      • You Sir are genius!!!

        – Vesselin Obreshkov
        Jan 26 '18 at 15:53

















      Brilliant use of AHKs to make ad-hoc UX improvements.

      – Screenack
      Jan 3 '18 at 18:58





      Brilliant use of AHKs to make ad-hoc UX improvements.

      – Screenack
      Jan 3 '18 at 18:58













      You Sir are genius!!!

      – Vesselin Obreshkov
      Jan 26 '18 at 15:53





      You Sir are genius!!!

      – Vesselin Obreshkov
      Jan 26 '18 at 15:53











      1














      The Answer by @HaveSpacesuit wasn't working for me in Windows 10.



      Releasing Shift didn't release the cursor.



      To fix it, change third line from the back to:



      Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )


      Entire, working code:



      SendMode Input ; Recommended for new scripts due to its superior speed and reliability
      SetTitleMatchMode 2 ; Allows for partial matches in window titles
      CoordMode, Mouse, Screen

      ; Commands specific to when Snipping Tool is open
      #IfWinActive, Snipping Tool
      $*Shift::
      Send {Shift Down}
      MouseGetPos, SetX, SetY
      ClipCursor( true, -10000, SetY, 10000, SetY+1 ) ;clip the cursor to a rectangle that consists just of a line in x-direction
      KeyWait Shift
      return

      $*Shift Up::
      Send {Shift Up}
      ClipCursor( false, 0, 0, 0, 0 ) ; unclip the cursor
      return

      ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
      VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
      Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )
      }
      #IfWinActive





      share|improve this answer




























        1














        The Answer by @HaveSpacesuit wasn't working for me in Windows 10.



        Releasing Shift didn't release the cursor.



        To fix it, change third line from the back to:



        Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )


        Entire, working code:



        SendMode Input ; Recommended for new scripts due to its superior speed and reliability
        SetTitleMatchMode 2 ; Allows for partial matches in window titles
        CoordMode, Mouse, Screen

        ; Commands specific to when Snipping Tool is open
        #IfWinActive, Snipping Tool
        $*Shift::
        Send {Shift Down}
        MouseGetPos, SetX, SetY
        ClipCursor( true, -10000, SetY, 10000, SetY+1 ) ;clip the cursor to a rectangle that consists just of a line in x-direction
        KeyWait Shift
        return

        $*Shift Up::
        Send {Shift Up}
        ClipCursor( false, 0, 0, 0, 0 ) ; unclip the cursor
        return

        ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
        VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
        Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )
        }
        #IfWinActive





        share|improve this answer


























          1












          1








          1







          The Answer by @HaveSpacesuit wasn't working for me in Windows 10.



          Releasing Shift didn't release the cursor.



          To fix it, change third line from the back to:



          Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )


          Entire, working code:



          SendMode Input ; Recommended for new scripts due to its superior speed and reliability
          SetTitleMatchMode 2 ; Allows for partial matches in window titles
          CoordMode, Mouse, Screen

          ; Commands specific to when Snipping Tool is open
          #IfWinActive, Snipping Tool
          $*Shift::
          Send {Shift Down}
          MouseGetPos, SetX, SetY
          ClipCursor( true, -10000, SetY, 10000, SetY+1 ) ;clip the cursor to a rectangle that consists just of a line in x-direction
          KeyWait Shift
          return

          $*Shift Up::
          Send {Shift Up}
          ClipCursor( false, 0, 0, 0, 0 ) ; unclip the cursor
          return

          ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
          VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
          Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )
          }
          #IfWinActive





          share|improve this answer













          The Answer by @HaveSpacesuit wasn't working for me in Windows 10.



          Releasing Shift didn't release the cursor.



          To fix it, change third line from the back to:



          Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )


          Entire, working code:



          SendMode Input ; Recommended for new scripts due to its superior speed and reliability
          SetTitleMatchMode 2 ; Allows for partial matches in window titles
          CoordMode, Mouse, Screen

          ; Commands specific to when Snipping Tool is open
          #IfWinActive, Snipping Tool
          $*Shift::
          Send {Shift Down}
          MouseGetPos, SetX, SetY
          ClipCursor( true, -10000, SetY, 10000, SetY+1 ) ;clip the cursor to a rectangle that consists just of a line in x-direction
          KeyWait Shift
          return

          $*Shift Up::
          Send {Shift Up}
          ClipCursor( false, 0, 0, 0, 0 ) ; unclip the cursor
          return

          ClipCursor( Confine=True, x1=0 , y1=0, x2=1, y2=1 ) {
          VarSetCapacity(R,16,0), NumPut(x1,&R+0),NumPut(y1,&R+4),NumPut(x2,&R+8),NumPut(y2,&R+12)
          Return Confine ? DllCall( "ClipCursor", UInt,&R ) : DllCall( "ClipCursor", UInt, 0 )
          }
          #IfWinActive






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 20 '18 at 9:12









          Bojan HrnkasBojan Hrnkas

          1,7771810




          1,7771810























              1














              I came up with a very low-tech solution for this: MouseKeys!



              I simply have it set up so that whenever I turn off NumLock, MouseKeys is activated. Then I just line up the highlighter cursor, "click" by pressing NumPad-0, then slide to the right using NumPad-6. NumPad-5 seems to consistently "unclick" at the end; I had mixed results pressing NumPad-0 again.



              Note, this "MouseKeys always on" solution is probably only convenient on a desktop full keyboard. If you have a shared QWERTY/NumPad you'd want to use the MouseKeys hotkey instead to activate/deactivate.






              share|improve this answer




























                1














                I came up with a very low-tech solution for this: MouseKeys!



                I simply have it set up so that whenever I turn off NumLock, MouseKeys is activated. Then I just line up the highlighter cursor, "click" by pressing NumPad-0, then slide to the right using NumPad-6. NumPad-5 seems to consistently "unclick" at the end; I had mixed results pressing NumPad-0 again.



                Note, this "MouseKeys always on" solution is probably only convenient on a desktop full keyboard. If you have a shared QWERTY/NumPad you'd want to use the MouseKeys hotkey instead to activate/deactivate.






                share|improve this answer


























                  1












                  1








                  1







                  I came up with a very low-tech solution for this: MouseKeys!



                  I simply have it set up so that whenever I turn off NumLock, MouseKeys is activated. Then I just line up the highlighter cursor, "click" by pressing NumPad-0, then slide to the right using NumPad-6. NumPad-5 seems to consistently "unclick" at the end; I had mixed results pressing NumPad-0 again.



                  Note, this "MouseKeys always on" solution is probably only convenient on a desktop full keyboard. If you have a shared QWERTY/NumPad you'd want to use the MouseKeys hotkey instead to activate/deactivate.






                  share|improve this answer













                  I came up with a very low-tech solution for this: MouseKeys!



                  I simply have it set up so that whenever I turn off NumLock, MouseKeys is activated. Then I just line up the highlighter cursor, "click" by pressing NumPad-0, then slide to the right using NumPad-6. NumPad-5 seems to consistently "unclick" at the end; I had mixed results pressing NumPad-0 again.



                  Note, this "MouseKeys always on" solution is probably only convenient on a desktop full keyboard. If you have a shared QWERTY/NumPad you'd want to use the MouseKeys hotkey instead to activate/deactivate.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 15 at 15:22









                  user985469user985469

                  111




                  111






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1193439%2fwindows-snipping-tool-highlight-straight%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Сан-Квентин

                      Алькесар

                      Josef Freinademetz