Page 1 of 1
Wrong number of parameters supplied to keyboardPress
Posted: Thu Dec 17, 2009 9:40 pm
by bussdee
I updated the script to 409 and now i got this error:
.../rom/classes/player.lua:1751: Wrong number of parameters supplied to keyboardPress()
Code: Select all
keyboardPress(settings.hotkeys.TARGET.key, settings.hotkeys.TARGET.modifier);
any idea how to fix this?
Re: Wrong number of parameters supplied to keyboardPress
Posted: Thu Dec 17, 2009 10:40 pm
by Administrator
Probably an outdated copy of MicroMacro. I thought everyone would be up to date by now, so I went ahead and made some changes that will allow key modifiers (such as CTRL+1) to work.
http://www.solarstrike.net/downloads.php
Re: Wrong number of parameters supplied to keyboardPress
Posted: Fri Dec 18, 2009 12:51 pm
by Perk
Excuse my ignorance, I have the same or similar issue,
yellow error=
...micromacro/scripts/rom/classes/player.lua:1751: Wrong number of parameters supplied to keyboardPress()
started today after I did SVN update. I am running micromacro 1.0 (I re-dloaded from your supplied link and still came up with the same errors.)
any ideas as to what I need to do at this point, (Please be detailed as I am a novice at this) *I have been running and updating rombot for several months though without issue
Re: Wrong number of parameters supplied to keyboardPress
Posted: Fri Dec 18, 2009 6:27 pm
by Administrator
You probably didn't update all files, then. I've seen countless times before where someone will download a new copy of MicroMacro and only copy over one file (for whatever reason) and things don't work. I would strongly suggest extracting the new version straight from that zip and copy your rombot folder into the new micromacro/scripts directory. Delete the old one.
I've just downloaded and tested it myself and everything works properly with keyboardPress().
Re: Wrong number of parameters supplied to keyboardPress
Posted: Fri Dec 18, 2009 6:39 pm
by Perk
I've seen countless times before where someone will download a new copy of MicroMacro and only copy over one file (for whatever reason) and things don't work.
thats exactly what i did,, i will wipe and re-do tonight.. thanks!!
EDIT/ UPDATE
You were excactly right, All is good..
thanks for taking the time to get me straight!!
