What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Changing Default Hotkeys

Unknown Buddy

Member
Joined
May 20, 2015
Messages
603
Reaction score
17
I know i read it was possible somewhere, but i dont remember where. I keep looking through all the links and can not find it again.

I believe it has something to do with the GlobalSettings.json file, but i am not sure where to find the key values.


All i really want is to change the default pause button from Shift+Alt+S to F1 and / or the Pause/Break key. Any help is appreciated.
 
I am interested in knowing to if there is a option for us to change. Sometimes I need to do things like transfer currency etc and its easier with for say F1 than shift alt s.

First world problem?
 
GlobalSettings.json has the settings you can edit manually (there's no configure in the GUI for it).

"StartStopBotEnabled": true,

That line is to enable that specific hot key.

"StartStopBotMod": 5,

That line is for the key modifiers:
Code:
[Flags]
	public enum ModifierKeys
	{
		Alt = 1,
		Control = 2,
		Shift = 4,
		Win = 8,
		NoRepeat = 0x4000,
	}

"StartStopBotKey": 83,

That line is for the key itself. Which by default is Keys.S (from System.Windows.Forms)

To help figure out the values you want new keys to be you can use the dev tab (or a C# program) and just dump the values. For example:
Code:
Log.InfoFormat("{0}", (int)Keys.S);
Log.InfoFormat("{0}", (int)(ModifierKeys.Shift | ModifierKeys.Alt));

To check F1, it'd be: Log.InfoFormat("{0}", (int)Keys.F1);

If you didn't want any modifiers, it'd now be 0.
 
Thanks for the info pushedx. While im not a programmer, you did give me just enough information to figure this out.

I was not able to figure out how to use the DevTab (which is fine) to get the hotkeys i wanted. After explaining "StartStopBotMod": 5, was the modifier keys, i was able to figure out the rest. Was a little confused at first since there is no modifier flag for the "5", (1 is alt, 2 is control, 4 is shift, 8 is winkey) but im assuming the 5 is how you use Alt(1) + Shift(4) together. 1+4=5.

The actual keylist i was able to get from http://www.evonsdesigns.com/2013/05/systemwindowsformskeys-integer-values.html


So for myself, the changes i made to the GlobalSettings.json file look like this:

"StartStopBotEnabled": true,
"StartStopBotKey": 112,
"StartStopBotMod": 0,
"FocusBotWindowEnabled": true,
"FocusBotWindowKey": 113,
"FocusBotWindowMod": 0,

"DumpFrameUnderCursorEnabled": true,
"DumpFrameUnderCursorKey": 114,
"DumpFrameUnderCursorMod": 0,


This simply changes the start/stop key from Alt+Shift+S to F1. (F1 = 112)
F2 now sets the focus to the bot GUI.
F3 i use to plot out talent paths easily.


Just wanted to elaborate a bit to help others that are not great at programming, but wanted to change the default hotkeys.
 
Adding a GUI to allow configuring that is on the todo list, but was a lower priority since it's a bit of time to add it correctly. It'll be done in the future though.
 
Back
Top