Jump to content
Sign in to follow this  

Few Quick Questions

Recommended Posts


Hey there, just wanted to get a few things cleared up for the program I'm making...

--PROBLEM 1 FIXED--- (used wrong function)

Additionally, I was wondering whether its possible to call a function with parameters with a hotkey.


HotKeySet("testfunc(param1, param2)", "^a")

thanks in advance for any help you can give me.

Edited by ame1011

[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post

Link to post
Share on other sites

You can't call a function from HotKeySet with parameters.

I would advice you to create a second function to call that one with the right parameters, like:

HotKeySet("^a", "CallTestfunc")

Func CallTestFunc()
   testfunc(param1, param2)

Func testfunc(param1, param2)
  ;Do something here

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.