Sign in to follow this  
Followers 0
fxg4758

Send Function once time

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



If the same hot has two purposes in two different programs, you should set the optional hotkey to another available key

8)


NEWHeader1.png

Share this post


Link to post
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]

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