Jump to content

Recommended Posts

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
Posted (edited)

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

Edited by weaponx

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...