Hotkey Plugin

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Hotkey Plugin

#1 Post by Raider »

Hello, I would like to start a project for a Hotkey Plugin.
There actually exists hotkeys in Openkore but there is no easy way to change or add them.
The goal would be to make a hotkey category in the advanced configuration where users could add, remove and/ or change them.

For now it's easy to change the hotkey for an option by just changing the existing hokey or adding one:

Code: Select all

$self->{mPause}  = $self->addMenu($opMenu, T('&Pause Botting') [b]. "\tAlt-1",[/b] \&onDisableAI, T('Pause all automated botting activity'));
I already noticed the catergories in advanced configuration:

Code: Select all

$cfg->addCategory('server', 'Grid', ['master', 'server', 'username', 'password', 'char', 'serverType']);
Maybe someone already has an idea to show the hotkeys of the different Openkore options?
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: Hotkey Plugin

#2 Post by Raider »

Is there someone who has any advice for me like where to start?
Maple
Noob
Noob
Posts: 14
Joined: 21 Mar 2013, 05:55
Noob?: No

Re: Hotkey Plugin

#3 Post by Maple »

maybe a bit more sample and demo would be better.
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: Hotkey Plugin

#4 Post by Raider »

Maple wrote:maybe a bit more sample and demo would be better.
That's the problem :) I don't know where to start. Only have the idea.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Hotkey Plugin

#5 Post by EternalHarvest »

Maybe you can start not with settings interface but with code which will actually change hotkeys. Can menu hotkeys be easily modified from a plugin?

Or with just adding user-defined hotkeys without changing existing ones.