adding
id=WaitEvent(0)
If KeyHit(60) Or id=$401; <<- F1 and F2
to your final loop will make it work, but it appears that once you assign a hotkey you can't change it. In your example above pressing the hot key keeps generating the $401 event even though it has been changed.
id=WaitEvent(0)
If KeyHit(60) Or id=$401; <<- F1 and F2
to your final loop will make it work, but it appears that once you assign a hotkey you can't change it. In your example above pressing the hot key keeps generating the $401 event even though it has been changed.