Jump to content

Recommended Posts

Posted

HEllo to all,

want to help my user and put in their clipboard some values, for very boring office job.

There is a way to understand if clipboard is released, so i can cicle/refresh value in their clipboard ?

thank you for any help,

m.

Posted

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.

Posted (edited)

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

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
×
×
  • Create New...