Keyboard problems

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

iluvseq
Clueless Mudslinger
Posts: 269
Joined: Mon Apr 14, 2003 10:05 am

Keyboard problems

Post by iluvseq » Thu Apr 08, 2004 8:42 pm

Installed macroquest, works fine with two characters running under eqwindows.

Tried to run follow.mac on one character to follow the other.

The macro works, that character starts following.

However, my keyboard stops working.

I can still move the mouse, but cannot use the keyboard at all. Can't ctrl-alt-S to switch to the other character, can't type eq commands, can't do any keyboard commands at all.

Any ideas?

iluvseq
Clueless Mudslinger
Posts: 269
Joined: Mon Apr 14, 2003 10:05 am

Post by iluvseq » Thu Apr 08, 2004 9:03 pm

Actually, I think I've figured it out, but I'm not certain.

Here is "follow.mac" from the .zip file:

Code: Select all

#turbo
Sub Main
   :Loop
      /if n $target(distance)>60 /sendkey down up
      /if n $target(distance)<40 /sendkey up up
      /face fast
      /delay 0
   /if "$target()"=="TRUE" /goto :Loop

/return
Now, #turbo keeps it from running more than 500 commands per iteration, but I'm thinking it's not helping.

It seems that as long as the distance to the target is > 60, this macro will keep the "up" key pressed. I believe this will over-ride any actuall keypresses?

It will only release the up key if the target is < 40.

If I am correct, that "/sendkey key down" blocks all user keyboard commands, this macro should be re-written, because it is possible for /target to be permanently out of range yet still in the zone (say, if the character is stuck on a wall)

When this happens, the user cannot regain control of the character.

Maybe instead of perma-holding the movement key, the macro should turn autorun on/off since that doesn't involve keeping a key pressed... ?

Not sure, I'm no newb to EQ structures or programing, but I am new to Macroquest macro writing (for the last year or so, I've simply lurked here as a resource for EQ structure information)

Any thoughts?

homburg
orc pawn
orc pawn
Posts: 20
Joined: Wed Apr 07, 2004 9:52 am

Post by homburg » Wed Apr 14, 2004 8:37 pm

Prior to today's patch of MQ2, follow.mac worked just fine. Now, I have the same problem. Did you manage to fix it, or just stop using follow.mac?

In my case, the keyboard was so locked out that I had to hardboot the computer via Ye Olde Reset Button. Oddly enough, TS still worked when I hit the key I have mapped to the speak command, so I would guess that it is only EQ that is not interpretting keyboard commands.

Anyone have an idea?

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Wed Apr 14, 2004 8:44 pm

Try the newest .zip

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 14, 2004 10:17 pm

Try using /keypress instead of /sendkey, thats what its there for
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

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

Post by daerck » Thu Apr 15, 2004 5:38 am

For those of you that don't get it:

Code: Select all

#turbo 
Sub Main 
   :Loop 
      /if n $target(distance)>60 /keypress forward hold
      /if n $target(distance)<40 /keypress forward
      /face fast 
      /delay 0 
   /if "$target()"=="TRUE" /goto :Loop 

/return

homburg
orc pawn
orc pawn
Posts: 20
Joined: Wed Apr 07, 2004 9:52 am

Post by homburg » Thu Apr 15, 2004 3:32 pm

Hmm, changed the code, as specified, and instead of locking my computer out, it just crashes EQ. I'd love to use the proper method for reporting a bug, but I don't get error text or anything for this.

As an aside, I am using the latest version, compiled in the manner specified, and it worked beautifully prior to this most recent patch.

Guess I'll try recompiling it...

EDIT: /keypress seems to be what is crashing me. I can type an unadorned "/sendkey down up" and run forward no problems. When I enter "/keypress down up" or anything involving /keypress, I immediately crash to desktop. I realize this is insuffificent info for a proper debugging. I'm sorry. I will attempt attaching a debugger to it again.

EDIT, Part Duex: Attached a debugger to EQ. Got the following, but no green arrow or error tag that .NET found.

[MQ2]CCommandHook::Detour(/keypress down up)
First-chance exception at 0x0304fa34 (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000000.
The thread 'Win32 Thread' (0x3c0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xdc4) has exited with code 0 (0x0).
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssmp3.asi'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssvoice.asi'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssa3d.m3d'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssds3d.m3d'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssdx7.m3d'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\msseax.m3d'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssrsx.m3d'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\msssoft.m3d'
'eqgame.exe': Unloaded 'C:\Program Files\EverQuest\mssdsp.flt'
The thread 'Win32 Thread' (0x83c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x6fc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x550) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x838) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x82c) has exited with code 0 (0x0).
The thread 'calloc' (0x54c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x2d4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x6c4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x4ec) has exited with code 0 (0x0).
[MQ2]MQ2CustomBinds Module Unloaded
[MQ2]MQ2ChatWnd Module Unloaded
[MQ2]MQ2FPS Module Unloaded
[MQ2]MQ2ItemDisplay Module Unloaded
[MQ2]MQ2Map Module Unloaded
[MQ2]MQ2Labels Module Unloaded
The program '[852] eqgame.exe: Native' has exited with code 0 (0x0).

I hope this is what you were looking for.
Last edited by homburg on Thu Apr 15, 2004 4:05 pm, edited 1 time in total.

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 » Thu Apr 15, 2004 4:04 pm

"down" is not a valid /keypress. see the /keypress list
http://macroquest2.com/includes/manual.php#keypress

This bug should be fixed next zip.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Tuffy
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Oct 02, 2003 9:20 am

Post by Tuffy » Fri Apr 16, 2004 10:10 am

Lol, thanks lax I came looking for another problem and found out what I was doing on a couple.

homburg
orc pawn
orc pawn
Posts: 20
Joined: Wed Apr 07, 2004 9:52 am

Post by homburg » Fri Apr 16, 2004 11:44 am

Cool, thanks Lax!

I realized that my mouse was working fine and functioned normally. So I just made a hotkey for /endmacro. That has proven to be good enough to fix the issue for now as keyboard functionality returns once the macro has ended.

Interesting, but dumb, a friend and I were whacking skellie commanders for the heck of it last night. He gets feared, and decides to use follow.mac to see what happens. Well, while the fear kills any control over directional keys, it does not stop the /face command. So instead of fleeing the mob, he keeps runnings towards it again and again spastically due to the looped /face commands. And his keyboard locks up same as mine does. And he has no handy /endmacro key. I about died laughing at it over Teamspeak before killing the mob. Luckily no one was around to see it. Fairly obvious what was occurring.

Still, nice to know that /face has another usage =)

FrankJScott
naggy
naggy
Posts: 2128
Joined: Sun Feb 19, 2023 7:11 am

Excellent 322TOTO Tips

Post by FrankJScott » Fri Apr 25, 2025 9:06 am

In reply to the person asking about slot bank mandiri, website resmi bank bri, cara transfer bank bni ke bank mandiri, di bank bri, deposit ke, mengisi link, peraturan bank mandiri terbaru, bank mandiri aplikasi, cara transfer dari rekening bri ke bca, cara transfer melalui hp, I highly recommend this more hints on 322TOTO forum or cara saldo, cara mengisi link aja, cara tf bank, mandiri atau bca, bca link aja, cara transfer dari bank mandiri ke dana, cara tf di bank mandiri, transfer dari bank bri ke mandiri, hubungi kami, transaksi bank bni, not to mention this homepage about 322 toto site on top of cara memasukan saldo dana, cara buat bank bni, cara transfer dari bank mandiri ke bank mandiri, transfer bank bri ke mandiri, cara mengisi e money, bg mandiri, cara mentransfer dari bank bri ke dana, cara mengisi link aja, bank indonesia bca, transfer bank bni, which is worth considering with this discover more here on 322TOTO forum which is also great. Also, have a look at this article source for 322 toto advice alongside all cara mengisi akun, cara transfer di mandiri, cara transfer bank ke akun dana, bri atau mandiri, pembayaran online, bg mandiri, e money bank bni, cara transfer ke bri dari bca, aplikasi untuk bank mandiri, cara ke bank, and don't forget this recommended reading on 322 toto details which is worth considering with bank bri bank apa, gopay e money, bank mandiri 24 jam, cara transfer melalui dana, aplikasi bank mandiri online, read this post here on together with cara transfer ke bank bri dari bca mobile, pembayaran dengan, hubungi kami, kebijakan bank mandiri terbaru, bank mandiri web, for good measure. Check more @ Useful Car Parts Guide 89a61d1