Skip to content

Commit

Permalink
fix(common): use AutoHotkey path from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcincichocki committed Sep 22, 2021
1 parent 7117a86 commit c46f2b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/node/robot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface RobotSettings {
screenshotDir: string;
autoExit: boolean;
useScaling: boolean;
ahkBinPath: string;
}

export enum BreachProtocolRobotKeys {
Expand Down Expand Up @@ -146,7 +147,7 @@ export class AhkRobot extends BreachProtocolRobot {
[BreachProtocolRobotKeys.Right]: 'Right',
};

protected readonly binPath = 'C:/Program Files/AutoHotkey/AutoHotkey.exe';
protected readonly binPath = this.settings.ahkBinPath;
private readonly scriptPath = './resources/win32/ahk/robot.ahk';

override async bin(command: string) {
Expand Down
1 change: 0 additions & 1 deletion src/electron/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export interface AppSettings
experimentalBufferSizeRecognition: boolean;
outputDevice: 'mouse' | 'keyboard';
engine: 'nircmd' | 'ahk' | 'xdotool';
ahkBinPath: string;
resolveDelay: number;
}

Expand Down

0 comments on commit c46f2b1

Please sign in to comment.