Sign in to follow this  
Followers 0
myspacee

clip release

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

thank you,

Nice and simple, adapt code to my script.

m.

Share this post


Link to post
Share on other sites

please BrettF,

can you explain your idea ?

m.

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
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
Sign in to follow this  
Followers 0