Jump to content

How to extent the "^c" function


sir
 Share

Recommended Posts

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
Link to comment
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:

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...