आप विंडोज़ के भीतर से माउस क्लिक पर विज़ुअल इफ़ेक्ट कैसे जोड़ सकते हैं?


22

मैं बस एक छोटी सी उपयोगिता चाहता हूं जो माउस क्लिक पर नज़र रखता है ताकि जब कोई दृश्य बबल इफ़ेक्ट (या ऐसा ही कुछ) होता है, तो कुछ उसी तरह जैसा कि आप एक स्क्रीनकास्ट में देख सकते हैं।

जवाबों:


21

मूल Windows विकल्प

माउस गुण> सूचक विकल्प> सूचक का स्थान दिखाएँ

AutoHotkey के साथ संयुक्त

~LButton::
Send {Ctrl}
return

~LButton UP::
Send {Ctrl}
return

हर माउस-क्लिक (नीचे और ऊपर) एक Ctrlसंक्षिप्त फायर करता है ।

जैसा कि पाओलो ने बताया है कि आप माउस सेटिंग को स्क्रिप्ट के भाग के रूप में भी बदल सकते हैं:

DllCall("SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 1, UInt, 0) ;SPI_SETMOUSESONAR ON

OnExit, ExitSub
ExitSub:
   DllCall("SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 0, UInt, 0) ;SPI_SETMOUSESONAR OFF
   ExitApp

1
मैंने यहां सुझाव तय किया है (और मुझे ऑटोहॉटके पर डालने के लिए धन्यवाद)। यह तय करने में मुझे घंटों लग गए। मैंने एक एकल चरित्र (टिल्ड ~) जोड़ा , जो माउस के सामान्य संचालन से गुजरने में सक्षम था। मैंने उदाहरण को भी संशोधित किया है ताकि न केवल माउस-क्लिक रिलीज़ हो, बल्कि इंटलियल माउस-क्लिक भी प्रभाव उत्पन्न करता है।

1
माउस सेटिंग्स को स्वचालित रूप से बदलना संभव है। इस लिंक को देखें: autohotkey.com/board/topic/…
पाओलो फुलगोनी

मैंने जो बदलाव किया, वह ~ LButton को हटाने और ~ ~ LButton Up का उपयोग करने के लिए था, क्योंकि दोनों होने से एक असम्बद्ध सोनार प्रभाव पैदा होता है, लेकिन केवल ऊपर क्लिक का उपयोग करने से यह सही काम करता है।
20

1

यह RJFalconer के जवाब का एक प्रकार है, जिसमें पाओलो फुलगोनी के परिवर्तन शामिल हैं। मैं हमेशा अपने माउस को नहीं देखना चाहता था जब CTRL बटन दबाया गया था, और मुझे उम्मीद थी कि DllInfoसंशोधन गतिशील रूप से सेटिंग को चालू और बंद कर देगा, लेकिन मैं इसे काम करने के लिए नहीं प्राप्त कर सकता था (स्क्रिप्ट बस बाहर निकल जाएगी)। इसमें कोई संदेह नहीं है कि एएचके में कोई और अधिक परिष्कृत व्यक्ति यह बता सकता है कि मैं क्या गलत कर रहा था, लेकिन मैंने आगे बढ़कर अपना संस्करण बनाया।

जब माउस बटन दबाया जाता है, तो यह "माउस को नियंत्रित करता है जब नियंत्रण दबाया जाता है" विकल्प पर स्विच करता है, और उसके बाद इसे बंद कर देता है। यह सीमित परीक्षण में ठीक काम करता है, हालांकि कभी-कभी माउस पॉइंटर गायब हो जाता है। अगर किसी को पता है कि इसे कैसे ठीक किया जाए, या कोई अन्य सुधार किया जाए, तो बेझिझक अंदर कूद सकते हैं।

यह (अत्यधिक) प्रलेखित है, क्योंकि मैं जल्दी से चीजों को भूल जाता हूं, और जब मुझे फिर से प्रयास करने की आवश्यकता होती है, तो मुझे अपनी लिपियों को पर्याप्त जानकारी प्रदान करना पसंद है जो मुझे उन सभी पुराने संदर्भों को खोजने के लिए खोज करने की आवश्यकता नहीं है जिन्हें मैंने पहले स्थान पर उपयोग किया था।

;Visualize mouse clicks by showing radiating concentric circles on mouse click
;Author: traycerb
;Date/Version: 01-31-2018
;
;Source:
;/superuser/106815/how-do-you-add-a-visual-effect-to-a-mouse-click-from-within-windows
;https://autohotkey.com/board/topic/77380-mouse-click-special-effects-for-presentationsdemos/

;Dynamically switch on the Windows accessibility feature to show the mouse when the control key is pressed
;when the script is executed, then switch off afterwards
;Windows settings > Mouse > Pointer Options tab > Visibility group > Show location of pointer when I press CTRL key



;Window's SystemParametersInfo function, retrieves or sets the value of one of the 
;system-wide parameters.  AHK DllCall fxn with SystemParameterInfo parameter is used to access
;this Windows API.
;https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx
;BOOL WINAPI SystemParametersInfo(
;  _In_    UINT  uiAction,
;  _In_    UINT  uiParam,
;  _Inout_ PVOID pvParam,
;  _In_    UINT  fWinIni
;);

;uiParam [in]
;Type: UINT
;
;A parameter whose usage and format depends on the system parameter being queried or set. 
;For more information about system-wide parameters, see the uiAction parameter. 
;If not otherwise indicated, you must specify zero for this parameter.

;pvParam [in, out]
;Type: PVOID
;
;A parameter whose usage and format depends on the system parameter being queried or set. 
;For more information about system-wide parameters, see the uiAction parameter. 
;If not otherwise indicated, you must specify NULL for this parameter. 
;For information on the PVOID datatype, see Windows Data Types.

;fWinIni [in]
;Type: UINT
;
;If a system parameter is being set, specifies whether the user profile is to be updated, 
;and if so, whether the WM_SETTINGCHANGE message is to be broadcast to all top-level 
;windows to notify them of the change.

;This parameter can be zero if you do not want to update the user profile 
;or broadcast the WM_SETTINGCHANGE message or it can be set to the following [...]

;Accessibility parameter    
;S0x101D PI_SETMOUSESONAR
;Turns the Sonar accessibility feature on or off. This feature briefly 
;shows several concentric circles around the mouse pointer when the user 
;presses and releases the CTRL key. 
;The pvParam parameter specifies TRUE for on and FALSE for off. 

;Press the control button each time mouse button is pressed, showing location of mouse pointer.
~LButton::
{
  DllCall("user32\SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 1, UInt, 0) 
  Send {Ctrl}
  DllCall("user32\SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 0, UInt, 0) 
  return
}

~RButton::
{
  DllCall("user32\SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 1, UInt, 0) 
  Send {Ctrl}
  DllCall("user32\SystemParametersInfo", UInt, 0x101D, UInt, 0, UInt, 0, UInt, 0) 
  return
}

यह उपयोगी था धन्यवाद। मैंने #SingleInstance forceडबल क्लिक के दौरान कष्टप्रद पॉपअप संदेश से बचने के लिए लाइन भी जोड़ी ।
फिल बी
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.