Page 1 of 1

about functionKeys[solved]

Posted: Mon Apr 06, 2015 10:39 am
by atout66
Hi to all,
In my simple code below, I load the help file by pressing the key F1.

Code: Select all

on functionKey theKey
     switch theKey
         case 1 -- AIDE
etc...
But what to write in that script if i want the user to press for example (under Windows) the keys Ctrl+Uppercase+F1 to load a special help file ?

Thanks in advance.

Re: about functionKeys

Posted: Mon Apr 06, 2015 1:17 pm
by SparkOut

Code: Select all

on functionKey theKey
   switch theKey
      case 1
         if the controlKey is down and the shiftKey is down then
            -- do special help thing
         else
            -- do regular F1 help thing, maybe pass functionKey?
         end if
         break
      default
         pass functionKey
   end switch
end functionKey

Re: about functionKeys

Posted: Mon Apr 06, 2015 4:15 pm
by atout66
Waou ! great addon, thanks a lot ;-)