Pausing macros using Fn keys?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Boredbard
a ghoul
a ghoul
Posts: 89
Joined: Thu Nov 27, 2003 11:49 am

Pausing macros using Fn keys?

Post by Boredbard » Tue Feb 17, 2004 1:18 pm

Is there any way to have a macro pause when you press a 'Fn' key. Ideally I'd like to make a twist mac that runs one set, but say you need to mezz a mob, just hit F12 and go for it. Otherwise the mac keeps twisting, attacking or not. (would be handy for clickies, and for XP where mobs die so fast you cant spin up fast enough before it dies... you are on attack song 2 before the mob dies).


If someone could show me how to pause it using F12, I can prolly hack up Twist2 enough to do exactly what I want.

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Tue Feb 17, 2004 2:27 pm

Just make a hotkey with /mqp
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

Boredbard
a ghoul
a ghoul
Posts: 89
Joined: Thu Nov 27, 2003 11:49 am

Post by Boredbard » Tue Feb 17, 2004 2:37 pm

That would work, but i'm looking for a better solution... ie. press F12 and it finishes the song, then grants me control.

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Wed Feb 18, 2004 2:03 am

remap your F-12 key to do something that will trigger an /alias of /mqp?

Ohh...too many steps....
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

Gumby
a ghoul
a ghoul
Posts: 99
Joined: Sat Jan 24, 2004 5:27 pm

Post by Gumby » Wed Feb 18, 2004 10:02 am

Boredbard wrote:That would work, but i'm looking for a better solution... ie. press F12 and it finishes the song, then grants me control.
Would take some amount of effort to tweak properly, but why not set a pair of hotkeys to something like /echo Suspend and /echo Unsuspend, use an event to set a flag, and then place various breakpoints into the script to stop processing where you want? Quick skeleton code in an attempt to explain better:

Code: Select all

#event Suspend "[MQ2] Suspend"
#event Unsuspend "[MQ2] Unsuspend"

Sub Main

/declare SuspendFlag global
/varset SuspendFlag 0

// stuff

:Loop
/if n @SuspendFlag==1 {
   /doevents
   /delay xxx
   /goto :Loop
}

// more stuff

/return

Sub Event_Suspend
   /varset SuspendFlag 1
/return

Sub Event_Unsuspend
   /varset SuspendFlag 0
/return
I tend to dump it all into a dummy subroutine for the script to hang out while I'm doing other thing instead of individual loops placed throughout the script but it gives some more control rather than simply ninja smacking /mqpause (which left my toons in amusing yet not beneficial spots... nowhere I'd want to be in a group).

G

ztilleto
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Jan 21, 2004 10:33 am
Location: Denmark
Contact:

Post by ztilleto » Wed Feb 18, 2004 10:02 am

hi,

With the different twisting.mac that have been made for bards for MQ2, one of the things I found was lacking, was the interrupt spells you wanted to cast in the middle of a macroed twist.

I did it by adding an event where I looked for a string with a song name in it. This works perfect for those situations, where i need to stand back mezz or charm adds, or pull up the Selo's for a quick escape, or lul for those pullin situation, all while the macro is running, and will continue to run after i've twisted in an extra song.

You can check out the modified code to Twist2.mac I've done at this link http://macroquest2.com/phpBB2/viewtopic.php?t=5079

This uses the event of missing a note from the original version, so you will automatic recast the song if you fizzle.
"[i]Heart of a Lion, and the Wings of a Bat.... Because it's midnite.[/i]" - Limozeen

MrSmallie
a hill giant
a hill giant
Posts: 167
Joined: Fri Oct 11, 2002 11:18 am

Post by MrSmallie » Wed Feb 18, 2004 10:19 am

Boredbard wrote:That would work, but i'm looking for a better solution... ie. press F12 and it finishes the song, then grants me control.
If you /mqp it will grant you "control" immediately. Then you can wait for it to finisg a song, or you can interrupt that song, or anything else you like. You can even set up different function keys to do different added tasks. F12=/pause 3, /mqp, /stop, /cast <mez>, F11= /mqp, /stop, /cast <snare>, F10=/pause 3, /mqp, /stop, /cast <charm>, F9 = /mqp (now you have control, and guess what? you can restart the macro just by hitting this one again).
Basically, the tools are there for you to use, and their are many more options then just a standard <break>.
Me
[img]http://home.comcast.net/~mrsmallie/ches.JPG[/img]

Boredbard
a ghoul
a ghoul
Posts: 89
Joined: Thu Nov 27, 2003 11:49 am

Post by Boredbard » Fri Feb 20, 2004 1:14 pm

Thanks for all the replies. What I had been using was an alias that did /stopsong /mqp and it worked rather well, but i was just curious if there was a better way.

Main reason I dont like using just flag MQP, I dont always know what song it'll start back on when it continues and could be very hazardous to have a debuff go off if I'm targetting mobs to help tank pretarget (ie nameds).