Sign in to follow this  
Followers 0
Greydrako

HotKeySet + Function with variable

3 posts in this topic

#1 ·  Posted (edited)

Hi Guys. This is my fist post here... Im starting in editing/create AutoIt scrips.

So, my doubt is this.

I need to set a HotKeySet to a function. But this funciton have a parameter variable tha mus be sent.

Heres is the code

func Main ()
HotKeySet ("{F5}",  CountMembers(2)  )

endfunc



func CountMembers($member)
MsgBox(4096,"", "Members: "& $member)
endfunc

But Im getting a Error....

How can I solve this?

Thanks for any help =]

Edited by Greydrako

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hotkeyset requires a string for the function name and cannot pass parameters.

Edited by weaponx

Share this post


Link to post
Share on other sites

Hotkeyset requires a string for the function name and cannot pass parameters.

=/ Thanks

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