ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Request: Left-mouse-click triggers a PrtScr press in the background

(1/3) > >>

davidvan:
Basically, I am currently using Screenshot Captor and I defined the PrtScr button to capture the active window each time I press it.  What I hope to do is to eliminate the need to press the PrtScr button by leveraging the left-button click on mouse to trigger it.  The left-mouse button click must still function as normal but now with an added function of simulating a press of the PrtScr button.  Is there such a program available that can help me do this?  Or can someone create a script to do this?  Thank you in advance for any suggestions.

mouser:
when we talked earlier i think an important aspect of what you wanted was not to trigger the hotkey every time you pressed the left mouse button, but only when you clicked left mouse button on the title bar of a menu.

davidvan:
Yes, you are correct.  However, after giving it some thoughts, I figured it may be easier to implement for every click then conditional clicks.  If by making the request simpler, my hope is that I can find a close-enough solution sooner.   Thanks.

skwire:
This AutoHotkey code will send a PrintScreen every time you left click a titlebar.  Save it out to something.ahk, run it, and left click a titlebar.  Let me know if you have issues.


--- Code: AutoIt ---~LButton::{    CoordMode, Mouse, Screen    SetMouseDelay, -1    SetKeyDelay, -1    MouseGetPos, X, Y, hWnd        ; 0x84 is WM_NCHITTEST    SendMessage, 0x84, , ( x & 0xFFFF ) | ( y & 0xFFFF ) << 16, , ahk_id %hWnd%    If ErrorLevel in 2,3,8,9,20,21    {        Send, {PrintScreen}        ; Send, !{PrintScreen} ; Sends an alt-printscreen.    }}Return

mouser:
just tested it.. works.  very cool  :up:
to make it trigger Alt+Prtscr (screenshot captor's default for capturing the active window) skwire said to use "Send, !{PrintScreen}"

That may be a small amount of code.. but there's a fair amount of knowledge behind it.  Kudos to skwire for another amazing job.  :Thmbsup: :Thmbsup: :Thmbsup:

Navigation

[0] Message Index

[#] Next page

Go to full version