/press vs. /sendkey?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

night
orc pawn
orc pawn
Posts: 24
Joined: Sat Jun 22, 2002 7:08 pm

/press vs. /sendkey?

Post by night » Thu Aug 22, 2002 3:31 pm

What is the difference between /press and /sendkey? I see both of those commands used in various macros. When should you use one or the other?

Also, what programing language are these macro's written in? I spend alot of time in our local bookstore, in the computer section and next time Id like to find a book on this language, maybe I will learn something :lol:

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Thu Aug 22, 2002 4:08 pm

When all else fails, RTFM.

Anyways, /press is the same as if you pressed then released the key, and /sendkey can set whether the keystate is up or down, as if you continued holding down the key, or let it go.

The language used by MQ is MQ#, it's own proprietary language.
Opinions are like assholes, everyone has one, but most of them stink.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Sun Aug 25, 2002 8:47 pm

Synopsis.

/press works for keys like ASDF and 1234 etc.

/sendkey shift down presses and holds the shift key down.. then any presses will be effected by that until you do /sendkey shift up.