Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Using Queue to process Alias
Using Queue to process Alias
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Kotokz
(4 posts) Bio
|
Date
| Sat 08 Feb 2020 01:07 PM (UTC) |
Message
| I'm using Queue to throttle all the commands from my script.
The problem is the cmds including Alias from Mush itself.
Execute is able to run Alias, but Queue seems not handle it well.
Any idea how i can let Queue to run Alias?
I use speedwalk prefix "#" to indicate speedwalk then call EvaluateSpeedwalk before put in Queue.
How about Alias? | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #1 on Sat 08 Feb 2020 06:02 PM (UTC) Amended on Sat 08 Feb 2020 06:03 PM (UTC) by Fiendish
|
Message
| I think you'll have to stop using Queue for this and implement the throttling yourself. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 08 Feb 2020 09:30 PM (UTC) |
Message
| Have you tried to set the alias to send to "World (speedwalk delay)"?
That uses the queue. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Kotokz
(4 posts) Bio
|
Date
| Reply #3 on Sun 09 Feb 2020 02:04 AM (UTC) |
Message
| thanks all!
just want to clarify, my question is more about how to use Queue to send Alias. Execute is able to, but not Queue.
for example i have list on commands, on of them is actually Mush Alias. i have created function to split the commands one by one then put in Queue..
Any idea i could know which of them is Alias instead of Mud command... | Top |
|
Posted by
| Nick Gammon
Australia (23,131 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sun 09 Feb 2020 05:15 AM (UTC) |
Message
| See this post about building pauses into Lua scripts.
You could have a (Lua) table of things you wanted to do, loop through the table, and then send them to Execute function, pausing after each one.
Alternatively, make a timer that fires every so often (eg. 0.5 seconds) and sends the first item in your table to Execute, and then deletes it from the table.
An alias could add more items to the table (queue).
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,423 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top