EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
How to use ctrl and alt modifiers?
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
Yaunm





Joined: 28 Jun 2018
Posts: 8 on topic

Thank you for registering your game
modified
PostPosted: Thu, 28. Jun 18, 09:45    Post subject: How to use ctrl and alt modifiers? Reply with quote Print

I can use shift, but ctrl and alt just bind the button itself.

Also i would like to bind shift-numpad6 and i can't do that either.



Last edited by Yaunm on Thu, 28. Jun 18, 10:03; edited 1 time in total
Back to top
View user's profile Send private message
Alan Phipps
Moderator (English)
Moderator (English)

MEDALMEDALMEDAL

Joined: 16 Apr 2004
Posts: 17963 on topic
Location: Stonehenge, UK
Thank you for registering your game
PostPosted: Thu, 28. Jun 18, 12:21    Post subject: Reply with quote Print

I think this has been a long-term characteristic for X games. I believe that some users have tried to try to get around this limitation with external key-mapping applications (other than dedicated programmable keyboard macros) but have often come across unforeseen UI issues in-game when using them.


_________________
A dog has a master; a cat has domestic staff.
Back to top
View user's profile Send private message
Yaunm





Joined: 28 Jun 2018
Posts: 8 on topic

Thank you for registering your game
PostPosted: Thu, 28. Jun 18, 13:33    Post subject: Reply with quote Print

Thank you for doing the search for me. Shift is sufficient i suppose once i found the free look button. And i could bind shift-numpad with disabled NumLock. I can't even begin to imagine how and why this is working.

Back to top
View user's profile Send private message
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Tue, 3. Jul 18, 18:24    Post subject: Reply with quote Print

There is a program called AutoHotKey that you can use to add modifiers to the controls. Thing is, although powerful it is not as straight forward to use as assigning the keys via the game option menu.

To get an idea of what I am saying take a look at this:

https://forum.egosoft.com/viewtopic.php?p=4716944#4716944

I use AHK myself with X3AP, among other things, to add Ctrl and Alt as well as Ctrl+Alt as modifier. However in my incapacity as a "scripter" I have bodged up something that was, most probably, crashing my game. I am currently looking into it, I hope it's fixed now.

If you are interested and are patient enough to experiment, I am willing to help you, at least I can tell you where I have gone wrong.

Back to top
View user's profile Send private message
Yaunm





Joined: 28 Jun 2018
Posts: 8 on topic

Thank you for registering your game
PostPosted: Wed, 4. Jul 18, 01:51    Post subject: Reply with quote Print

Thanks for the help too, but honestly, despite the intimidating look, turns out there aren't that many buttons in the game, considering that MMB acts as a modifier and so does the mouse, replicating Steer/Camera + Directions ( that's about 2x9 buttons saved) and the rest can be spread around the keyboard more or less easily.

Mixing modifiers together is not a great idea because they are used by Windows, for example alt+shift is the default shortcut to switch keyboard profiles in Windows.

Back to top
View user's profile Send private message
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Wed, 4. Jul 18, 09:19    Post subject: Reply with quote Print

It's just as well, the game is still crashing consistently when I use AHK (though it may be different with Rebirth).

I am interested in what you said though, you can use the mouse buttons as modifiers?
Is that via the game options?

Back to top
View user's profile Send private message
Yaunm





Joined: 28 Jun 2018
Posts: 8 on topic

Thank you for registering your game
PostPosted: Thu, 5. Jul 18, 11:04    Post subject: Reply with quote Print

Yes i meant Mouselook, being bound to MMB by default. As for the script, are you using something like the linked one? It is waay to unprecise. AHK approximates and assumes a lot. Which is fine for easy changes for notepad, but doesn't really work for heavy games, taxing the CPU like the X games do. Couple it with competing with Windows functions, and a rapid repeated execution and i can totally expect things to crash.

For example, i just checked for x-rebirth
This script, that rebinds the Wheel to X and Y, and is the default way of doing things in AHK, doesn't work ( or barely)
Code:

WheelUp::Y
WheelDown::X



This on the other hand does
Code:

WheelUp::
sendinput {Y down}
sleep, 100
sendinput {Y up}
sleep, 200
return

WheelDown::
sendinput {X down}
sleep, 100
sendinput {X up}
sleep, 200
return

Basically you need to put timers on everything, and don't let AHK assume anything, no loops, no nothing.

Back to top
View user's profile Send private message
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Thu, 5. Jul 18, 14:51    Post subject: Reply with quote Print

After trying MMB in Albion Prelude it looks like it can only be used as a hot key not as a modifier.

With regards to AHK it is not that it doesn't work, providing that the syntax is correct, it does all that it is supposed to do.
The script on the thread that I mentioned is a more advanced example of what I used it for.

https://forum.egosoft.com/viewtopic.php?p=4716944#4716944

In my case it looks like it is the fact that AHK is running that causes the crash, meaning that it occurs not when I use the shortcuts but often enough when I am not touching the controls, however always when on patrol/protect missions.

Having said that, it is not a big deal the game is more than playable with the hotkeys available, more so as it lets us use the "Hold Key" option for many binds.

Just as a curiosity I do wonder why no script has been made to extend the functionality of the Keys configuration menu. The obvious example would be the addition of more Modifiers (Ctrl,Alt.etc.) as you yourself mentioned in this thread, another one is what WoB has done in "-Intelligent Targeting System" where you can multipress the same key for different results.

I am guessing it is just not possible.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Control Panel
Login Data
The time now is Fri, 21. Sep 18, 08:05

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.10872 seconds, sql queries = 22