Jump to content

Recommended Posts

Posted

Is there a way to pass parameter(s) to the function call by hotkeyset? eg. how do I pass a parameter to TogglePause for hotkey defined as followed:

HotKeySet("{PAUSE}", TogglePause")

Posted

either have a Hotkeyset call a func that calls a function with paramaters or try looking at _ispressed with an if then , but i remember a topic on this not to long ago, i think it was resolved as a no you cant

Posted

well using ur example he wanted it to have the hotkey set wtih the Actualfunction("These Words are Magic!") as the function so it directly calls the function with the paramaters but the way you showed i believe is the only way around it

Posted

basically, I would like to pass a parameter to the same function from different hotkeysets. It looks something like this but this code will not work:

HotKeySet("^#1", "GoOnline('www.google.com')")
HotKeySet("^#2", "GoOnline('www.yahoo.com')")

Func GoOnline($site)
   ;do something
EndFunc

Maybe thatsgreat2345 is right, I can't.

Thanks.

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
×
×
  • Create New...