beckham894 wrote: ↑Sun Mar 14, 2021 7:17 pm
I also found one strange thing while testing the code.
lets say i have the below code setup:
sendAll("get water from bag", "give water to (profile A/B)", false)
expandAlias("#bid (profile A/B) put water in bag", false)
when fire from profile A, the code work perfectly. (profile A get water from bag and pass it to profile B then profile B put water in bag)
but when fire from profile B, somehow the #bid code is executed first in profile A then sendAll code is executed in profile B. (profile A put "water (which is none) in bag first then profile B get water from bag and pass it to profile A)
Any idea why?
Sorry, i didnt notice this message
I am not sure if the last message means that it is not an issue when using cpc:handleCommand or if the issue occurs with both modes.
I'll see if i can reproduce it, sounds really strange though, I dont really know how the sendAll works, it almost sounds like it gets placed onto the execution thread as an event, and for some reason it is then handled after the #BID event.
A workaround may be to use a tempTimer to force delay of the #BID command, though if handleCommand solves it, i would rather recommend using that.
(personally i use #BID for anything i execute manually, e.g. things i type in, or place on my F-keys. And i use cpc:handleCommand for anything i script)