bind question

The one stop shop for information relating to CFG files and binds

Moderator: MacroQuest Developers

Sporked
orc pawn
orc pawn
Posts: 28
Joined: Tue Jan 06, 2004 7:08 am

bind question

Post by Sporked » Tue May 04, 2004 1:37 pm

If this is in the FM, i apologize in advance and open the doors to any sort of constructive flaming ;)

Is there a way to bind the same keypress, with different scancodes to reflect the keys new state?

E.G.

h hail
l_alt + shift + h == set MA heal
H (l_shift/r_shift + h) == group heal.

c consider
l_alt + c (set cheal target)
C (l_shift/r_shift + c) (cheal chain msg)
ctl-alt-c

I know it looks confusing, but it's not always convenient to map every key a new funciton, would be nice to say

attack
shift + a MAIN_ASSIST
then alt -a set MA to current target

I understand how to store the information in variable, and recall it inside MQ.. but my command of the scancodes are a bit sketchy

Many thanks for any info. even if its a simple "It can't be done"

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 » Tue May 04, 2004 1:51 pm

you cant differentiate between left/right alt or ctrl or shift, but you could certainly do what you're asking for. In fact, examples were given somewhere I think..

Anyway, here's what you do. in autoexec.cfg make a global string variable for each bind you want to do different things based on your setting.
autoexec.cfg

Code: Select all

/declare ConsiderCmd global
/declare HailCmd global
/declare AttackCmd global
Then add custom binds

Code: Select all

/custombind add myconsider
/custombind add setconsider1
/custombind add setconsider2
/custombind add setconsider3
/custombind add myhail
/custombind add setmyhail1
/custombind add setmyhail2
/custombind add setmyhail3
/custombind add myattack
/custombind add setmyhail1
/custombind add setmyhail2
/custombind add setmyhail3
Set up the base custom binds like so:

Code: Select all

/custombind set myconsider ${ConsiderCmd}
/custombind set myhail ${HailCmd}
/custombind set myattack ${AttackCmd}
Set up the "set" ones like so:

Code: Select all

/custombind set setmyconsider1 /varset ConsiderCmd /keypress consider
/custombind set setmyconsider2 /varset ConsiderCmd /keypress hot7 (or whatever you do to complete heal)
/custombind set setmyconsider3 /varset ConsiderCmd /keypress hot8 (chain complete heal)
Clear the binds for the ones you're replacing

Code: Select all

/bind attack clear
/bind ~attack clear
/bind consider clear
/bind ~consider clear
/bind hail clear
/bind ~hail clear
Set your new binds

Code: Select all

/bind myattack a
/bind myconsider c
/bind myhail h
/bind setmyattack1 alt+a
/bind setmyattack2 ctrl+a
/bind setmyattack3 shift+a
/bind setmyconsider1 alt+c
and so on.

That's how I read your post anyway.. this would let you hit alt+c to make c do consider, ctrl+c to make c do something else, etc...but if you were just asking if you could add a bind for alt+c in addition to c instead of having a key to set what c does... then just add a custom bind and bind it to alt+c.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Sporked
orc pawn
orc pawn
Posts: 28
Joined: Tue Jan 06, 2004 7:08 am

Post by Sporked » Tue May 04, 2004 3:38 pm

Thank you, that is indeed my question.. Now for the sticky part

ALT+KEY are refusing to bind into the actual loaded environment.

IE if i set ALT+A to /g barks like an ardwhaz... then load it into the confi. it says A set to /g blah blah.

... Isthere a trick to mapping the ALT into the key structure? SHIFT it knows the difference betwee. but ALT seems to have it stuck

Edit: Spelled Actual correctly. and dropped the CTL nonsense.. CTRL works wonders... Edit: Spelled actual correctly this time. oops

Now how do i spell ALT correctly? *ponder*