Jump to content

clip release


myspacee
 Share

Recommended Posts

You can detect when user presses Ctrl + V easily. Checking when the Edit > Paste buttons are pressed is harder.

Ctrl + V detection:

HotKeySet("^v", "_Paste")

$i = 0

While 1
    Sleep(100)
WEnd

Func _Paste()
    HotKeySet("^v")
    Send("^v")
    
    ClipPut(" " & $i)
    $i = $i + 1
    
    HotKeySet("^v", "_paste")
EndFunc

With this you may press Ctrl + V repeatedly and this will be the output:

0 1 2 3 4 5 6 7 8 9 10

It spazzes when you hold Ctrl + V down for too long, so make sure people know how to use it.

Link to comment
Share on other sites

Link to comment
Share on other sites

In some of the examples they have "hooked" CTRL+C. There may be a part that has "hooked" CTRL+V...

I haven't looked closelt and it was just a suggestion of something to look into.

Cheers,

Brett

Edited by BrettF
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...