Macro help


Adeon Hawkwood

 

Posted

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!


 

Posted

/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.

 

Posted

Quote:
Originally Posted by Rajani Isa View Post
/macro hibernate "powexecname Hibernate$$inspexecname Respite"
That wont work. As long as there is still a Respite in inventory, that macro will only keep using the inspirations and never activate the power.

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.


 

Posted

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.

 

Posted

Ok so then a bind instead? Is that possible?


 

Posted

Add a +down$$-down$$ in front and the respite will execute when you depress and the hibernate when you release


 

Posted

Quote:
Originally Posted by CriticalKat View Post
Ok so then a bind instead? Is that possible?
The basic problem is that the power engine only allows you to have one power queued at a time (and for our purposes Inspirations count as powers). As such macros and binds are limited to one "power" per click. The common workaround is to set one of the powers to autofire but that won't work with toggles and inspirations.

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.


 

Posted

+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


 

Posted

Quote:
Originally Posted by all_hell View Post
+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.
Ah, that explains it, I was testing with click powers. I did a few tests and it seems like it does work with two toggle powers or a toggle power followed by a click power but it won't work with two click powers or a click power followed by a toggle power (in the former case you simply activate the second click power twice, in the latter case you activate the single click power twice). Also, the short version seems to work, you just need a +$$ at the start.

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).


 

Posted

Quote:
Originally Posted by Adeon Hawkwood View Post
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).
+down$$-down$$powexecauto Hibernate$$inspexecname Respite

??


 

Posted

Quote:
Originally Posted by all_hell View Post
+down$$-down$$powexecauto Hibernate$$inspexecname Respite

??
Hibernate is a toggle.

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.

 

Posted

Quote:
Originally Posted by all_hell View Post
+down$$-down
using "down" makes your character go down (if you are flying). 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, redundant, and messy.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
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.
I think you may be able to use something else thats shorter than my prefix, but I forget what it is.

Thanks for reposting the reminder.

Once upon a time some patch broked it. I am glad it is fixt again.


 

Posted

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.

Quote:
Originally Posted by CriticalKat View Post
Ok so then a bind instead? Is that possible?
It certainly is. Enjoy!


 

Posted

Quote:
Originally Posted by all_hell View Post
+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.


 

Posted

Quote:
Originally Posted by Diggis View Post
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.
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.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
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.


 

Posted

Quote:
Originally Posted by Diggis View Post
True.. I did know that, but always forget cos of the way it appears to work.
No worries. It just seems there are a lot of people still using the old and clunky approach to binds before we learned more about how they really work internally. Older bind methods may still work, but I feel it's better to tell WHY something works the way it does so we can understand them and make them even better and more reliable.

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.