DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: notice user when Ctrl-C (or whatever) is pressed  (Read 11,298 times)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
IDEA: notice user when Ctrl-C (or whatever) is pressed
« on: September 28, 2005, 10:23 AM »
Hi,

is there a way to play a sample when I hit Ctrl-C to copy something, so that I know I really copied it? Might be useful for other hotkeys too where you don't immediately see that you really pressed it. Would be even better if the script could determine the volume of that sample, so one could set it like one likes it.

After thinking a bit about that I wonder if it might be even better to use a gfx solution instead - maybe display a 0.5 inch x 0.5 inch big object in one of the screen corners (definable in which)?

Or flash the mouse cursor?

Or....? Any ideas/comments? :)

Thank you.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: notice user when Ctrl-C (or whatever) is pressed
« Reply #1 on: September 28, 2005, 10:28 AM »
:) Try AutoHotkey from www.autohotkey.com.

A simpel script like this will work:

Code
;Notify.ahk
~^c::
ToolTip,Ctrl-C pressed.
Sleep,2000
ToolTip
Return

~!Tab::
ToolTip,
Return


You'll find more scripts at Skrommel Software.

Skrommel
« Last Edit: September 28, 2005, 10:52 AM by skrommel »

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
Re: IDEA: notice user when Ctrl-C (or whatever) is pressed
« Reply #2 on: September 28, 2005, 10:42 AM »
Awesome, really awesome! :)

Is it possible that the ToolTip will auto-hide if I press Alt-TAB before the timer reached stopped? That way I could use a bigger value for the timer while keeping it limited to the window where I clicked it.

Thanks!!
Thank you.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: notice user when Ctrl-C (or whatever) is pressed
« Reply #3 on: September 28, 2005, 10:53 AM »
:) Try now. There was a small typo, too...

Skrommel

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,261
Re: IDEA: notice user when Ctrl-C (or whatever) is pressed
« Reply #4 on: September 28, 2005, 11:10 AM »
Hehe, I just noticed that type :) I changed it a bit:

Code
;Notify.ahk Skrommel @2005-09-28
~^c::
ToolTip,Ctrl-C pressed. Thanks for your attention. You can move on now ;)
Sleep,2000
ToolTip
Return

~!Tab::
ToolTip,
Return
;Notify.ahk Skrommel @2005-09-28

:)
Thank you.

Original address: https://www.donationcoder.com/forum/index.php?topic=1029.0