JamesBond Posted January 4, 2008 Posted January 4, 2008 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
James Posted January 4, 2008 Posted January 4, 2008 (edited) You would need to do it like so: HotKeySet("{F1}", "MsgWithParam") While 1 Sleep(100) WEnd Func Msg($param) MsgBox(0, "", $param) EndFunc Func MsgWithParam() Msg("Hello world, I was called with Param!") EndFunc Same applies with AdLib Woops, added extra ". Edited January 4, 2008 by JamesB Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
JamesBond Posted January 4, 2008 Author Posted January 4, 2008 Yes, this is a solution...=) Thank you, JamesB!
James Posted January 4, 2008 Posted January 4, 2008 I asked for this to be built in. But I was just told to do it like this. Sort of loses the idea of AutoIt however. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now