Macro help
/macro hibernate "powexecname Hibernate$$inspexecname Respite"
Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net
Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.
/macro hibernate "powexecname Hibernate$$inspexecname Respite"
|
I don't think it'll be possible to do what the OP asks. The closest you could get without using binds instead would be:
/macro HIB "inspexecname Respite$$powexectoggleon Hibernate"
Except that would turn on Hibernate first, and then any further clicks would use Respites... so that wouldn't really help either.
That's right, inspirations follows the rules for powers.
Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net
Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.
Ok so then a bind instead? Is that possible?
Add a +down$$-down$$ in front and the respite will execute when you depress and the hibernate when you release
all_hell has posted a possible workaround, I will admit I have not heard of that method before so I don't know if it will work.
EDIT: I tried all_hell's suggestion but could not make it work.
+down$$-down$$powexecname Hibernate$$inspexecname Respite
I use a variation to turn on all my toggles
I think you may be able to use something else thats shorter than my prefix, but I forget what it is.
Some patch broke the shorter version and UI havent checked to see if it's been fixed
+down$$-down$$powexecname Hibernate$$inspexecname Respite
I use a variation to turn on all my toggles I think you may be able to use something else thats shorter than my prefix, but I forget what it is. |
So +$$powexecname Hibernate$$inspexecname Respite will work but you will enter Hibernation before using the inspiration which is the opposite of the OPs request (I believe because you can't use inspirations while hibernated although I've never had a character with it so I don't know for sure).
So +$$powexecname Hibernate$$inspexecname Respite will work but you will enter Hibernation before using the inspiration which is the opposite of the OPs request (I believe because you can't use inspirations while hibernated although I've never had a character with it so I don't know for sure).
|
??
Auto only works with clicks.
Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net
Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.
using "down" makes your character go down. The fact that you have + and - next to each other simply cancel each other out.
All you need is "+". The "+down" is outdated logic that is not needed. |
Thanks for reposting the reminder.
Once upon a time some patch broked it. I am glad it is fixt again.
In order to do what the OP wants with binds, you would need a couple bind files.
Untested, it would go something like this:
File1.txt
KEY "+$$inspexecname Respite$$bindloadfilesilent File2.txt"
File2.txt
KEY "+$$powexectoggleon Hibernate$$bindloadfilesilent File1.txt"
Then /bindloadfile File1.txt
There might be problems with that code, but I'm sure some fine-tuning could get it to work. If nobody can get it figured out by the time I get back later today, I'll do more research on it.
Basically, when finished, it would use the Respite on keypress, then Hibernate on keyrelease.
Edit:
I was able to test it before I left, and it works just fine for me. I highlighted the important parts above. I hope it helps.
+down$$-down$$powexecname Hibernate$$inspexecname Respite
I use a variation to turn on all my toggles I think you may be able to use something else thats shorter than my prefix, but I forget what it is. Some patch broke the shorter version and UI havent checked to see if it's been fixed |
The reason this won't work is the + at the start runs the whole bind on press and release. It works for toggles as you use toggel on and if it's on it skips to the next bit. This will look for respite every time and if it finds one stop. If it doesn't it will probably then activate hibernate.
|
The command will still try to activate Hibernate every time, but as mentioned, it will fail every time there is a Respite still in the tray because it will instantly interrupt the Hibernate. When there is no Respite left, the final execution command can't run, and wont interrupt the Hibernate, meaning the bind he used might still work.. but only if there is just a single Respite in the tray.
You are right and wrong. The + will certainly run the command both on keypress and keyrelease, but you might have the mechanics wrong. Despite popular belief, commands are always read from left to right. The reason toggleon binds in a string are activated from right to left on each press is because the next execution interrupts the previous one. That makes it appear that it's reading the command from right to left, when it's really not.
The command will still try to activate Hibernate every time, but as mentioned, it will fail every time there is a Respite still in the tray because it will instantly interrupt the Hibernate. When there is no Respite left, the final execution command can't run, and wont interrupt the Hibernate, meaning the bind he used might still work.. but only if there is just a single Respite in the tray. |
True.. I did know that, but always forget cos of the way it appears to work.
|
Anyway, I'm finally headed out now for a while. I hope the OP and some other people get a chance to test out the code I posted above. I have it working flawlessly for me using a different power and inspiration, but they should be interchangeable for any two executions. I'll be back later on and check for feedback so we can fine tune anything that needs fixing.
I am looking for a macro that will click a respite and then activate hibernate, in that order. Ty if anyone is able to help me!