 |
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Mon Jan 05, 2009 5:49 am
Activating a macro off of any key |
I was wondering if anyone can think of a way where any key hit would send a command, basically so if you are automating a process while doing something else you can just type normally and the commands would be sent without effecting what you are currently doing. An example of this would be maybe some alchemy work, where you are waiting for a process to finish and killing mobs in the meantime or writing a note on the mud board. So the trigger when the alchemy was done would activate this macro that works off anykey, and would be sent when you were typing your note. Essentially what * does to oninput but for a macro.
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Jan 05, 2009 8:02 am |
So, what you're looking for is a macro that triggers on any key, but also still sends the keypress normally? Not possible, I don't think.
But repeating tasks is easy - just set up an alarm to do them over and over, or set up a loop that'll keep executing and #waiting over and over. You can either build in a "finish looping now" check in by having some variable set to true when you want to exit, like:
#loop 999999 {do stuff;#if (@abort=1) {#break}}
Or you can put the loop in a thread and use #stop to stop the thread once you want to finish. But an alarm is probably the best way to go about it.
Oh, and wouldn't you NOT want this to work while you're writing a note? Otherwise you'll end up with loads of "prac alchemy" or whatever everywhere in your note. Or do you mean a note on forums, separate from the game? Because there's certainly no way to capture keypresses when CMUD doesn't have focus, not without using some other utility. |
|
|
 |
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Tue Jan 06, 2009 12:59 am |
I meant this:
Quote: |
So, what you're looking for is a macro that triggers on any key, but also still sends the keypress normally? Not possible, I don't think.
|
And many muds have commands when you can send commands through notes/ect, like !look will look regardless of if you are in a note, mail, ect. The only way i could think of doin git would be having a class with all macros in it that would send a variable/que with all your commands in so you can enable/disable it |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Tue Jan 06, 2009 10:22 am |
CTRL-SHIFT-ENTER will bring up the Editor window. You can type up your note there, and then send it in a burst. You can use CTRL-TAB to switch to your main window if something happens requiring your attention. If that isn't what you will really want to do then you will have to explain what you want to do more fully.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
 |
|
|