Sign in to follow this  
Followers 0
sir

How to extent the "^c" function

3 posts in this topic

Can I extent the hotkey "^c" function, ie. when i press "^c" it will copy the selected and also do another function.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

HotKeySet("^c", "myFunc")

While 1
    Sleep(10)
WEnd

Func myFunc()
    HotKeySet("^c") ; un-register hotkey, so next line wont call it again
    Send("^c") ; send Ctrl+C
    
    ; do stuff  
    MsgBox(64, "", ClipGet())

    HotKeySet("^c", "myFunc") ; register hotkey again
EndFunc

edit : forgot something :lmao:

Edited by Helge

Share this post


Link to post
Share on other sites

HotKeySet("^c", "myFunc")

While 1
    Sleep(10)
WEnd

Func myFunc()
    HotKeySet("^c") ; un-register hotkey, so next line wont call it again
    Send("^c") ; send Ctrl+C
    
    ; do stuff  
    MsgBox(64, "", ClipGet())

    HotKeySet("^c", "myFunc") ; register hotkey again
EndFunc

edit : forgot something :lmao:

I forgot the un-register hotkey :geek:

Anyway, thank you very much :ph34r:

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