/sendkey up up question

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

Moderator: MacroQuest Developers

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

/sendkey up up question

Post by Shocks » Wed Jul 23, 2003 11:55 pm

I am having a problem with /sendkey up up not doing anything.
Here is a small .mac file I set up to test /sendkey

sub main
/sendkey up up
/return

the macro just ends.
Im not sure if im using the /sendkey wrong or whats up.

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 » Thu Jul 24, 2003 2:50 am

Uh, what are you expecting it to do?

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

Whole Section

Post by Shocks » Thu Jul 24, 2003 8:37 am

Ok I got one working. Maybe someone could explain the /sendkey to me please. Does /sendkey up up - /sendkey up down - /sendkey down down do anything. The only macro I can get to do anything is /sendkey down up and that moves me forward.

Sub main
|*** This is where I set my locs and delay so I can run a bit away to test
/varset v70 $char(y)
/varset v71 $char(x)
/delay 5s

|*** I was just looking to get the right values here****

/1 $distance($char(y),$char(x))
/1 $distance($v70,$v71)

|***Just a simple loop where I was trying to get my char to run to a loc

:camprescan
/if n $distance($v70,$v71)<=20 /goto :end
/face loc $v70,$V71
/sendkey down up
/goto :camprescan

:end
/return



Thanks for everyones help. I really enjoy making macros :)

The stray . has been removed. It was a mistake on the cut and paste.
Last edited by Shocks on Thu Jul 24, 2003 9:14 am, edited 3 times in total.

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Thu Jul 24, 2003 8:45 am

hey, is that a stray period I see in there?

Code: Select all

/if n $distance($v70,$v71).>=9 { 

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

Re: Whole Section

Post by dont_know_at_all » Thu Jul 24, 2003 12:46 pm

Shocks wrote:Ok I got one working. Maybe someone could explain the /sendkey to me please. Does /sendkey up up - /sendkey up down - /sendkey down down do anything. The only macro I can get to do anything is /sendkey down up and that moves me forward.
/sendkey <verb> <key>

"/sendkey down up" tells EQ that the up arrow key has been pressed (but not released).

"/sendkey up up" tells EQ that the up arrow key has been released.

Is the documentation unclear on this?

Shocks
a ghoul
a ghoul
Posts: 101
Joined: Tue Feb 18, 2003 3:26 pm
Contact:

No im just a dip sh$t

Post by Shocks » Thu Jul 24, 2003 8:53 pm

Thanks for the help. The docs are fine I was just thick in the head. Its working great now.

Shocks