Hello all, Playing around with GlobalKeyCommand and TriggerKey, I discovered 2 things:
1)On a piece, if a globalkey is not assigned a menu text, to hide it from the rigthclick menu, I get "An untrapped error has occured. ArrayIndexOutOfBoundsException 0". 2)On a piece, I have a movefixeddist trait trigged by alt c, followed by 2 GKC traits that modify graphics on the board (needed because 2 different range needed), both triggered by alt b The repeated sequence of keys (alt c, alt b) works just fine. So I decide to use a triggerkey with no menu nor shortcut, just to watch for alt c and trigger alt b automatically It doesn't work fine because alt b seems to be triggered from the starting position, not the moved to position (old location versus new location) It is the same if I change traits place in the piece definition same with a trigger triggering both alt c and alt b technics same if I change the order of shortcuts on the 'to be trigger' definition same if I use a trigger to fire alt c, followed by a 'nested' 2nd trigger watching alt c and firing alt b Is there a way to turn this around? Regards, Gorodoff ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/IMSolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vassalengine/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
