Triggering Events with Key Presses

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

User avatar
a_troll_01
a lesser mummy
a lesser mummy
Posts: 46
Joined: Sat Dec 06, 2003 6:06 am
Location: Memphis, TN
Contact:

Triggering Events with Key Presses

Post by a_troll_01 » Fri May 14, 2004 4:07 pm

First off, just wanted to say you guys have done great work on the CHM manual. I love it. Much cleaner and easier to use than the old HTML version on the site or TXT version. On to my question:

If I wanted to end a macro by simply hitting <ENTER> or such ... is that possible? Example:

Code: Select all

|=============================================================================
|------------------------------- Tell Alert v1.0 ------------------------------
|--------------------------- Audio /tell Notification ------------------------
|-----------------------------------------------------------------------------
|--- Usage: /macro Tell
|--- Spouts out a series of beeps when you've recieved a tell. Handy
|--- for being AFK while LFG for example.
|-----------------------------------------------------------------------------
|--- By: a_troll_01 (5/14/04) 
|--- Enjoy! 
|=============================================================================

#event Tell "#*#tells you#*#" 

|=============================================================================

Sub Main 
   /echo Tell Alert Activated!
   :MainLoop 
   /doevents
   /delay 2s
   /goto :MainLoop 
/endmacro 

|=============================================================================

Sub Event_Tell 
   :BeepLoop
   /beep
   /delay 1s 
   /goto :BeepLoop
/return
In the following, I want to put something saying "If the <ENTER> key is pressed, /endmacro" somewhere in the :BeepLoop. Sure, you can just type in /endmacro manually, but I was looking for something cleaner. Is that possible?

Code: Select all

Sub Event_Tell 
   :BeepLoop
   /beep
   /delay 1 
   /goto :BeepLoop
/return
Thanks in advance for any help you guys can provide. Much appreciated.
-- a_troll_01

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri May 14, 2004 4:56 pm

look up custom binds in the plugins portion of the readme.chm :)
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Fri May 14, 2004 5:13 pm

Always have a hotkey for /endm.

Nothing worse than accidently targeting a merchant or guard with an attack macro going.