Attemps at using /keypress and control futile

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

Tinkoman
orc pawn
orc pawn
Posts: 10
Joined: Tue Apr 06, 2004 12:04 pm

Attemps at using /keypress and control futile

Post by Tinkoman » Tue Apr 06, 2004 12:16 pm

I can't seem to get the control keypress to work.

The following:

/keypress ctrl down

/keypress right_ctrl down

seems they should be right by the manual keymap, but 'ctrl' and 'right_ctrl' won't parse. (have tried capitalizing first letter, in the event that it might be case sensitive).

I hope that my searches and reading didn't miss something simple somewhere, but any help would be greatly appreciated.

daerck
a ghoul
a ghoul
Posts: 134
Joined: Mon Jan 12, 2004 8:44 pm

Post by daerck » Tue Apr 06, 2004 1:29 pm

From the changes.txt
29 Mar 2004 by Lax (even more)
- Added /ctrl /alt and /shift commands:
/ctrl <command>
/alt <command>
/shift <command>
These execute a command while telling the window manager that a key is pressed. This can
be used in conjunction with /itemnotify to pick up a stack or a single item... example:
pick up a single item from a stack: /ctrl /itemnotify pack1 leftmouseup
pick up an entire stack: /shift /itemnotify pack1 leftmouseup
Because they execute a command, they can also be used together, as in
/ctrl /alt /shift <command>...
and later
Lax wrote:the new /alt /ctrl /shift commands are renamed to /altkey /ctrlkey /shiftkey. /ctrl and /shift will still do the commands just fine

Tinkoman
orc pawn
orc pawn
Posts: 10
Joined: Tue Apr 06, 2004 12:04 pm

Post by Tinkoman » Tue Apr 06, 2004 2:14 pm

I guess I was a bit vague on what I am trying to do.

Instead of all the Math for finding a point behind the mob, and then moving there, I'm trying to strafe left/right as needed to stay behind.

cutting the code down after conditionals:

/<here's where I need to press and hold control key>
/keypress left hold
/timed 5
/keypress left
/<here i want to release control key>


Attempted to /ctrlkey <various forms of left>
no luck. 'hold' is not in the command set to meet the syntax:

/ctrlkey <command>

also looked for a right mouse click hold, which would in effect do the same thing, but can't find that it is implemented.

As a bandaid, I am currently using:
/sendkey down ctrl
/sendkey up ctrl

but... would like to migrate it to a keypress or some current implementation.
Thanks,

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Tue Apr 06, 2004 3:35 pm

See if this works:

Code: Select all

/keypress STRAFE_LEFT hold
/delay 5
/keypress STRAFE_LEFT

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 » Wed Apr 07, 2004 3:00 pm

You misread the usage of /timed.

Code: Select all

/keypress left hold
/timed 5 /keypress left
Will press "LEFT" (note ml2517's use of STRAFE_LEFT) for 5 tenths of a second. /timed is to execute a command after exactly this amount of time, so you don't need to /delay or use timers to do something like this. /delay is a "blocking" method which prevents the next line from being executed for an amount of time. /timed is a "non-blocking" or "asynchronous" method which allows the next line to continue, and will execute your command no matter what is going on, after an amount of time.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0