Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old June 19, 2008, 16:18   #1
Zero
Apprentice
 
Join Date: Jan 2008
Posts: 83
Zero is on a distinguished road
Macro problem

Let's say I want to create a macro for:

Holding shift, keypad 6

This generates P:\[Right] as the trigger, which is the same as if I just pressed the right arrow key. But I already have macros that start with the right arrow key, which makes the new macro have a delay after shift-KP6 is pressed. Is there a way to differentiate the right arrow key from shift-KP6?

Enabling/disabling num lock doesn't help with my problem.
Zero is offline   Reply With Quote
Old June 20, 2008, 01:05   #2
Garrie
Adept
 
Join Date: Feb 2008
Location: Sydney, Australia
Posts: 147
Garrie is on a distinguished road
I believe this is because the IBM keyboard is wired to pass the same signal for both keypresses... the software doesn't even know there is more than one way to make that signal so there is no way to tell the software to do different things for each instance.
__________________
Best /favorite character
Garrie is offline   Reply With Quote
Old June 20, 2008, 14:52   #3
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
Quote:
Originally Posted by Garrie View Post
I believe this is because the IBM keyboard is wired to pass the same signal for both keypresses... the software doesn't even know there is more than one way to make that signal so there is no way to tell the software to do different things for each instance.
No, it's an interpretation issue (if the program works with keycodes rather than interpreted keypresses they can be distinguished.) V uses the usual Windows APIs, so Windows is automatically translating the keycodes to keypresses.

It has been a critical bug to distinguish between right-arrow and shift-KP6 since at least DOS 2.0, so there is no reason to expect Windows to break this anytime soon.
zaimoni is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tunneling macro help... Skitzman69 Vanilla 3 April 30, 2012 05:39
Macro problem shevek Vanilla 9 May 19, 2008 20:43
shooting macro Andiiboi Vanilla 14 March 28, 2008 12:56
Macro question g. rodrigues Vanilla 1 March 5, 2008 11:23
problem with graphics mjtokarski Vanilla 11 July 8, 2007 00:40


All times are GMT +1. The time now is 04:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.