Jump to content
Sign in to follow this  

AdLibEnable & HotKeySet

Recommended Posts

Hi all, I'm new here... Firstly I inform you that my mothertongue isn't English; so, please, excuse me for the errors...:)

Well, I just want to ask you if it's possible using AdLibEnable (or HotKeySet) calling a function with parameters...

Thanks, JamesBond

Share this post

Link to post
Share on other sites

You would need to do it like so:

HotKeySet("{F1}", "MsgWithParam")

While 1

Func Msg($param)
MsgBox(0, "", $param)

Func MsgWithParam()
Msg("Hello world, I was called with Param!")

Same applies with AdLib

Woops, added extra ".

Edited by JamesB

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  

  • Create New...