Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadkybdmacro Micros3700 Max Macro Keys Error

Status
Not open for further replies.

savissimo

Programmer
Oct 6, 2008
42
RS
Hello everybody,

can someone help me with loadkybdmacro command. The idea is to use this command to automatically void all current round menu items from guest check.

So i go with the for loop though check; I am using loadkybdmacro key(1, 458753),key(1, 458753) to void current round items. When there is more then 50 lines in check i get following error message: Max Macro Keys

I am aware that the 100 loadkybdmacro macros is the limit per SIM script, but is there any chance that i can implement some trick solution where i can use loadkybdmacro without number limitation?
 
what if you do a for loop

for x = (@numdtlt = @numdtlr +1) to @numdtlt

...

then void the x because x will the detail number of each item in the current round.

 
I think for x = (@numdtlt = @numdtlr +1) to @numdtlt is not possible because @numdtlt is read only variable.

I found solution and its a good one. Before the Max Macro Keys is reached in one Event, the last loadkybdmacro command in Event should be a call to another event.

For example, if i am in Event inq : 25 and before i reach Max Macro Keys in that Event i will call another event with loadKybdMacro key(24,16384*4+7) where number 4 is the number of Event(Event inq :4). When script loads another event the number of macro keys will be reset to zero.

Another good thing is that it is possible for Event to call itself with loadKybdMacro command. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top