Jump to content

Send Function once time


fxg4758
 Share

Recommended Posts

Hi all. I have a external app with a key (F10), that save a record. I create a hotkeyset with this key, but how i can run the key F10 to do the original function and my function. When i try it creates a loop every time i press the F10. Thanks.

Link to comment
Share on other sites

like this?

HotKeySet("{F10}", "_Func")
HotKeySet("{ESC}", "_Exit")

While 1 
    Sleep(100)
WEnd

Func _Func()
    MsgBox(0,"HotKeySet", "F10 only one time")
    HotKeySet("{F10}")
EndFunc

Func _Exit()
    Exit
EndFunc

Greetings.

[list][font="Century Gothic"]If nothing is certain, everything is possible.[/font][/list][font="Century Gothic"]Experience is something you get, just after you need it.[/font]

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