PerseusKeyBoard : A derivative version based on 3.2 ---
XYZ - Nov 01 (Sun), 2026 09:06 UTC No.23 A version with some minor improvements.
https://gist.github.com/f6fvy/adf5997d8e78922ca2563d9d795161b0 My thanks go to the original author, Laurent Haas (F6FVY) !!!
Numbers entered via the keyboard are temporarily buffered. (No frequency-input dialog appears during this process.) They are displayed only after being confirmed by pressing the Enter key.
Please note that we will be unable to provide further support.
;*************************************************************************************** ; *****My setting: [Wheel Step]-->100Hz, [CF Step]-->5kHz, Windows7-11 / 64bits ; ; Help: ; Right arrow => Frquency up (CF Step) / mouseWheel up ; Left arrow => Frquency down (CF Step) / mouseWheel down ; PageDown => 10 notches of the mouseWheel up ; Delet => 10 notches of the mouseWheel down ; Up arrow => Frquency up (Wheel Step) ; Down arrow => Frquency down (Wheel Step) ; Home => Decrease "wheel step" ***cancel ; PageUp => Increase "wheel step" ***cancel ; ; [ => Decrease "CF STEP" ; ] => Increase "CF STEP" ; Home => Toggle Zoom the frequency in waterfall ; / => Decrease "Ref Lev (dBm)" ; * => Increase "Ref Lev (dBm)" ; Enter => Opens the "Frequency (KHz) dialog for input, then close the keypad (with another Enter) ; 1, 2, 3, 4, 5, 6, 7, 8, 9, 0 => Input frequency directly (Buffered & Batch sent on Enter/k/m) ; a, s, c, r, l, u, f, d, e => Activate Modes: AM, SAM, CW, RTTY, LSB, USB, FM, DRM, usEr ; +, - (from Numpad) => Activate "USB" and "LSB" (as "u" and "l", but more quickly) ; - => Tuning up fm value of CF Step ; _ => Tuning up fm value of CF Step ; w => switch to waterfall ; t => switch to spectrum ; x => Center frequency in spectrum or waterfall ; b => Toggle Noise Blanker ON/OFF ; n, End => Toggle Noise Reducer ON/OFF ; j => Toggle "SpkRej" on off ; h => Activate Notch (to deactivate use "y" PBT) ; y => Activate PBT (to deactivate use "h" Notch and so on) ; g => Activate Autonotch ; m => 1. Mute or Activate Volume (If no digits typed) / 2. input as "MHz" (If digits typed) ; k => 1. CWPeak (If no digits typed) / 2. input as "kHz" (If digits typed) ; z => Wave Files change ; Shift q, ALT-F4 => Close Perseus and also the script ; Tab => Jump forwards in the PLAYBACK bar by the specified number of seconds ; Shift+Tab => Jump backwards in the PLAYBACK bar by the specified number of seconds ; Ctrl+Tab => A dialog will appear where the PLAYBACK jump step and the WAV file length can be changed
; (C) Laurent Haas - F6FVY - Nov 2008 (f6fvy _at_ free.fr) ; modified by Aldo Moroni (IW2DZX) and Salvo Micciche' (SWL IT9-4639) ; modified by WoodBoxRadio (IK3VIG) ; extended by Ferdinand Lenhardt (perseus_only) ; Thanks to Wolfgang OE1MWW for some important tips ;*************************************************************************************************
#SingleInstance force ; skips the dialog box and replaces a previous instance of this script automatically #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetDefaultMouseSpeed, 0 ; Move the mouse instantly.
SetTitleMatchMode RegEx
;--- Variables for input buffer management --- Global FreqBuffer := ""
;*** BEGIN of the PLAYBACK parameter section *** playback_step = 10 ; seconds playback_minutes = 5 playback_seconds = 0
playback_bar_start = 180 playback_bar_end = 1011 playback_bar_vpos = 603
playback_position := playback_bar_start playback_last_timestamp = 0
PlaybackJump(seconds) { global return (playback_bar_end - playback_bar_start) / (((playback_minutes * 60) + playback_seconds) / seconds) } ;*** END of the PLAYBACK parameter section ***
sendBufferToFreqWnd(unitKey:="") { If (FreqBuffer = "") { Click,,100,245,2 WinWait,ahk_class#32770,, 2 if ErrorLevel return IfWinNotActive,ahk_class#32770 WinActivate Click,,110,45 Send {Space}{BS} return }
CoordMode, Mouse, Screen MouseGetPos, cxpos, cypos CoordMode, Mouse, Relative
Click,,100,245,2 WinWait, ahk_class#32770,, 2 if ErrorLevel { FreqBuffer := "" return } ControlFocus, Edit1, ahk_class#32770 ControlClick, Edit1, ahk_class#32770, LEFT IfWinNotActive, ahk_class#32770 WinActivate Click,,110,45 SendRaw %FreqBuffer% FreqBuffer := "" if (unitKey = "k" || unitKey = "Enter") { Click,,64,184 Click,,104,186 } else if (unitKey = "m") { Click,,33,184 Click,,104,186 } CoordMode, Mouse, Screen Click,,%cxpos%,%cypos%,0 CoordMode, Mouse, Relative return }
;function for background mouse operation with recovery of the mouse cursor position UnnoticeableClick(xpos,ypos,attr="",clicks=1) { CoordMode,Mouse,Screen MouseGetPos,cxpos,cypos CoordMode,Mouse,Relative Click,%attr%,%xpos%,%ypos%,%clicks% CoordMode,Mouse,Screen Click,,%cxpos%,%cypos%,0 return }
; Activate Perseus if it isn't already active (with "realtime" priority) IfWinExist Perseus ahk_class (Afx:400000:2028:|Afx:00400000:2028:) { WinActivate } else { Run Perseus,,UseErrorLevel,NewPID if ErrorLevel = ERROR { MsgBox Can't find the Perseus program.`n`nCheck PerseusKeyboard and the Perseus software`nare located in the same directory. ExitApp } Process,Priority,%NewPID%,Realtime WinWait Perseus ahk_class (Afx:400000:2028:|Afx:00400000:2028:) WinActivate }
#IfWinActive Perseus ahk_class (Afx:400000:2028:|Afx:00400000:2028:) {
;*** Frequency Control *** Left::Click,,192,309 Right::Click,,987,308 Up::Click,WD,587,290 Down::Click,WU,587,290
PgDn:: Loop 10 { UnnoticeableClick(587,290,"WD") Sleep 1 } return
Delete:: Loop 10 { UnnoticeableClick(587,290,"WU") Sleep 1 } return
[::UnnoticeableClick(135,295) ]::UnnoticeableClick(150,295) -::UnnoticeableClick(130,333) _::UnnoticeableClick(155,334) /:: NumpadDiv::UnnoticeableClick(133,152,"ARROWD") *:: NumpadMult::UnnoticeableClick(157,152,"ARROWU") t:: +t::UnnoticeableClick(227,309) w:: +w::UnnoticeableClick(263,309) b:: +b::UnnoticeableClick(518,403) End:: n:: +n::UnnoticeableClick(969,402)
;--- Buffering process for numeric keys --- 0:: Numpad0::FreqBuffer .= "0" 1:: Numpad1::FreqBuffer .= "1" 2:: Numpad2::FreqBuffer .= "2" 3:: Numpad3::FreqBuffer .= "3" 4:: Numpad4::FreqBuffer .= "4" 5:: Numpad5::FreqBuffer .= "5" 6:: Numpad6::FreqBuffer .= "6" 7:: Numpad7::FreqBuffer .= "7" 8:: Numpad8::FreqBuffer .= "8" 9:: Numpad9::FreqBuffer .= "9"
;--- Finalization process --- Enter:: NumpadEnter::sendBufferToFreqWnd("Enter")
m:: +m:: if (FreqBuffer != "") { sendBufferToFreqWnd("m") } else { UnnoticeableClick(1002,405) } return
k:: +k:: if (FreqBuffer != "") { sendBufferToFreqWnd("k") } else { UnnoticeableClick(380,546) } return
;*** Mode selection and other keys *** l:: +L:: NumPadSub::UnnoticeableClick(408,353) u:: +U:: NumPadAdd::UnnoticeableClick(455,353) a:: +A::UnnoticeableClick(204,353) s:: +S::UnnoticeableClick(259,353) +c:: C::UnnoticeableClick(310,353) r:: +R::UnnoticeableClick(362,353) f:: +F::UnnoticeableClick(508,353) d:: +D::UnnoticeableClick(561,353) e:: +E::UnnoticeableClick(594,353) j:: +j::UnnoticeableClick(562,458) y:: +y::UnnoticeableClick(260,546) h:: +h::UnnoticeableClick(300,546) g:: +g::UnnoticeableClick(340,546) x:: +x::UnnoticeableClick(23,422) Home::UnnoticeableClick(300,310)
;Wave file change z:: +z:: UnnoticeableClick(playback_bar_end,playback_bar_vpos) playback_position := playback_bar_start playback_last_timestamp := A_TickCount Sleep, 1000 return
;*** PLAYBACK hotkey section *** Tab:: playback_current_timestamp := A_TickCount if(playback_last_timestamp = 0 or playback_last_timestamp > playback_current_timestamp) playback_last_timestamp := playback_current_timestamp playback_position += PlaybackJump((playback_current_timestamp - playback_last_timestamp) / 1000) playback_last_timestamp := playback_current_timestamp if(playback_position > (playback_bar_end - 1)) playback_position := playback_bar_start + mod(playback_position - playback_bar_start, playback_bar_end - playback_bar_start) playback_position += PlaybackJump(playback_step) if(playback_position > (playback_bar_end - 1)) playback_position := playback_bar_start UnnoticeableClick(playback_position,playback_bar_vpos) Sleep, 100 return
+Tab:: playback_current_timestamp := A_TickCount if(playback_last_timestamp = 0 or playback_last_timestamp > playback_current_timestamp) playback_last_timestamp := playback_current_timestamp playback_position += PlaybackJump((playback_current_timestamp - playback_last_timestamp) / 1000) playback_last_timestamp := playback_current_timestamp if(playback_position > (playback_bar_end - 1)) playback_position := playback_bar_start + mod(playback_position - playback_bar_start, playback_bar_end - playback_bar_start) if(playback_position > (playback_bar_start + PlaybackJump(1))) { playback_position -= PlaybackJump(playback_step) if(playback_position < playback_bar_start) playback_position := playback_bar_start UnnoticeableClick(playback_position,playback_bar_vpos) } Sleep, 100 return
;--- PLAYBACK settings dialog processing --- ^Tab:: InputBox,playback_step_tmp,PLAYBACK,Step (in seconds),,160,130,,,,,%playback_step% if (ErrorLevel) return
if playback_step_tmp is not digit { MsgBox,0x10,Error,Step invalid return } if (playback_step_tmp <= 0) { MsgBox,0x10,Error,Step invalid return } playback_step := playback_step_tmp
InputBox,playback_minutes_tmp,PLAYBACK,Minutes,,160,130,,,,,%playback_minutes% if (ErrorLevel) return
if playback_minutes_tmp is not digit { MsgBox,0x10,Error,Minutes invalid return } if (playback_minutes_tmp < 0 or playback_minutes_tmp > 59) { MsgBox,0x10,Error,Minutes invalid return } playback_minutes := playback_minutes_tmp
InputBox,playback_seconds_tmp,PLAYBACK,Seconds,,160,130,,,,,%playback_seconds% if (ErrorLevel) return
if playback_seconds_tmp is not digit { MsgBox,0x10,Error,Seconds invalid return } if (playback_seconds_tmp < 0 or playback_seconds_tmp > 59) { MsgBox,0x10,Error,Seconds invalid return } playback_seconds := playback_seconds_tmp return
;Close Perseus and the script +q:: !F4:: UnnoticeableClick(1010,12) ExitApp return
;--- Processing for maintaining compatibility --- #IfWinActive Frequency ahk_class#32770 Enter:: NumpadEnter:: k:: +k:: click,,64,184 click,,104,186 return m:: +m:: click,,33,184 click,,104,186 return }
Re: PerseusKeyBoard - This version run on AutoHotkey version 2.
XYZ -
Nov 01 (Sun), 2026 13:38 UTC No.24
..... I apologize if it doesn't work.
PerseusKeyBoard with AutoHotKey 2
AutoHotKey v2 : https://www.autohotkey.com/v2/
** This version run on AutoHotkey 2. ** This is derived from PerseusKeyBoard v3.2.
#Requires AutoHotkey v2.0 #SingleInstance Force
SetDefaultMouseSpeed 0 ; Move the mouse instantly. SetTitleMatchMode "RegEx"
global FreqBuffer := ""
;*** BEGIN of the PLAYBACK parameter section *** global playback_step := 10 ; seconds global playback_minutes := 5 global playback_seconds := 0
global playback_bar_start := 180 global playback_bar_end := 1011 global playback_bar_vpos := 603
global playback_position := playback_bar_start global playback_last_timestamp := 0
PlaybackJump(seconds) { return (playback_bar_end - playback_bar_start) / (((playback_minutes * 60) + playback_seconds) / seconds) } ;*** END of the PLAYBACK parameter section ***
sendBufferToFreqWnd(unitKey := "") { global FreqBuffer if (FreqBuffer = "") { Click(100, 245, 2) if !WinWait("ahk_class #32770",, 2) return if !WinActive("ahk_class #32770") WinActivate("ahk_class #32770") Click(110, 45) Send("{Space}{BS}") return }
CoordMode("Mouse", "Screen") MouseGetPos(&cxpos, &cypos) CoordMode("Mouse", "Window") ;
Click(100, 245, 2) if !WinWait("ahk_class #32770",, 2) { FreqBuffer := "" return } ControlFocus("Edit1", "ahk_class #32770") ControlClick("Edit1", "ahk_class #32770",,,, "LEFT") if !WinActive("ahk_class #32770") WinActivate("ahk_class #32770") Click(110, 45) SendText(FreqBuffer) FreqBuffer := "" if (unitKey = "k" || unitKey = "Enter") { Click(64, 184) Click(104, 186) } else if (unitKey = "m") { Click(33, 184) Click(104, 186) } CoordMode("Mouse", "Screen") Click(cxpos, cypos, 0) CoordMode("Mouse", "Window") ; return }
;function for background mouse operation with recovery of the mouse cursor position UnnoticeableClick(xpos, ypos, attr := "", clicks := 1) { CoordMode("Mouse", "Screen") MouseGetPos(&cxpos, &cypos) CoordMode("Mouse", "Window") ; ; attr("WD", "WU", "ARROWD"等)に応じた操作の分岐処理 if (attr = "WD") { Click(xpos, ypos, "WheelDown", clicks) } else if (attr = "WU") { Click(xpos, ypos, "WheelUp", clicks) } else { Click(xpos, ypos, clicks) } CoordMode("Mouse", "Screen") Click(cxpos, cypos, 0) return }
; Activate Perseus if it isn't already active (with "realtime" priority) perseusWin := "Perseus ahk_class (Afx:400000:2028:|Afx:00400000:2028:)"
if WinExist(perseusWin) { WinActivate(perseusWin) } else { try { Run("Perseus",,, &NewPID) ProcessSetPriority("Realtime", NewPID) WinWait(perseusWin) WinActivate(perseusWin) } catch { MsgBox("Can't find the Perseus program.`n`nCheck PerseusKeyboard and the Perseus software`nare located in the same directory.") ExitApp() } }
#HotIf WinActive("Perseus ahk_class (Afx:400000:2028:|Afx:00400000:2028:)")
;*** Frequency Control *** Left::Click(192, 309) Right::Click(987, 308) Up::Click(587, 290, "WheelDown") Down::Click(587, 290, "WheelUp")
PgDn:: { Loop 10 { UnnoticeableClick(587, 290, "WD") Sleep(1) } }
Delete:: { Loop 10 { UnnoticeableClick(587, 290, "WU") Sleep(1) } }
[::UnnoticeableClick(135, 295) ]::UnnoticeableClick(150, 295) -::UnnoticeableClick(130, 333) _::UnnoticeableClick(155, 334) /:: NumpadDiv::UnnoticeableClick(133, 152) *:: NumpadMult::UnnoticeableClick(157, 152) t:: +t::UnnoticeableClick(227, 309) w:: +w::UnnoticeableClick(263, 309) b:: +b::UnnoticeableClick(518, 403) End:: n:: +n::UnnoticeableClick(969, 402)
0:: Numpad0::global FreqBuffer := FreqBuffer . "0" 1:: Numpad1::global FreqBuffer := FreqBuffer . "1" 2:: Numpad2::global FreqBuffer := FreqBuffer . "2" 3:: Numpad3::global FreqBuffer := FreqBuffer . "3" 4:: Numpad4::global FreqBuffer := FreqBuffer . "4" 5:: Numpad5::global FreqBuffer := FreqBuffer . "5" 6:: Numpad6::global FreqBuffer := FreqBuffer . "6" 7:: Numpad7::global FreqBuffer := FreqBuffer . "7" 8:: Numpad8::global FreqBuffer := FreqBuffer . "8" 9:: Numpad9::global FreqBuffer := FreqBuffer . "9"
Enter:: NumpadEnter::sendBufferToFreqWnd("Enter")
m:: +m:: { if (FreqBuffer != "") { sendBufferToFreqWnd("m") } else { UnnoticeableClick(1002, 405) } }
k:: +k:: { if (FreqBuffer != "") { sendBufferToFreqWnd("k") } else { UnnoticeableClick(380, 546) } }
l:: +L:: NumPadSub::UnnoticeableClick(408, 353) u:: +U:: NumPadAdd::UnnoticeableClick(455, 353) a:: +A::UnnoticeableClick(204, 353) s:: +S::UnnoticeableClick(259, 353) +c:: c::UnnoticeableClick(310, 353) r:: +R::UnnoticeableClick(362, 353) f:: +F::UnnoticeableClick(508, 353) d:: +D::UnnoticeableClick(561, 353) e:: +E::UnnoticeableClick(594, 353) j:: +j::UnnoticeableClick(562, 458) y:: +y::UnnoticeableClick(260, 546) h:: +h::UnnoticeableClick(300, 546) g:: +g::UnnoticeableClick(340, 546) x:: +x::UnnoticeableClick(23, 422) Home::UnnoticeableClick(300, 310)
;Wave file change z:: +z:: { global playback_position, playback_last_timestamp UnnoticeableClick(playback_bar_end, playback_bar_vpos) playback_position := playback_bar_start playback_last_timestamp := A_TickCount Sleep(1000) }
;*** PLAYBACK hotkey section *** Tab:: { global playback_last_timestamp, playback_position playback_current_timestamp := A_TickCount if (playback_last_timestamp = 0 || playback_last_timestamp > playback_current_timestamp) playback_last_timestamp := playback_current_timestamp playback_position += PlaybackJump((playback_current_timestamp - playback_last_timestamp) / 1000) playback_last_timestamp := playback_current_timestamp if (playback_position > (playback_bar_end - 1)) playback_position := playback_bar_start + Mod(playback_position - playback_bar_start, playback_bar_end - playback_bar_start) playback_position += PlaybackJump(playback_step) if (playback_position > (playback_bar_end - 1)) playback_position := playback_bar_start UnnoticeableClick(playback_position, playback_bar_vpos) Sleep(100) }
+Tab:: { global playback_last_timestamp, playback_position playback_current_timestamp := A_TickCount if (playback_last_timestamp = 0 || playback_last_timestamp > playback_current_timestamp) playback_last_timestamp := playback_current_timestamp playback_position += PlaybackJump((playback_current_timestamp - playback_last_timestamp) / 1000) playback_last_timestamp := playback_current_timestamp if (playback_position > (playback_bar_end - 1)) playback_position := playback_bar_start + Mod(playback_position - playback_bar_start, playback_bar_end - playback_bar_start) if (playback_position > (playback_bar_start + PlaybackJump(1))) { playback_position -= PlaybackJump(playback_step) if (playback_position < playback_bar_start) playback_position := playback_bar_start UnnoticeableClick(playback_position, playback_bar_vpos) } Sleep(100) }
^Tab:: { global playback_step, playback_minutes, playback_seconds IB1 := InputBox("Step (in seconds)", "PLAYBACK", "W160 H130", playback_step) if (IB1.Result = "Cancel") return if !IsInteger(IB1.Value) || Number(IB1.Value) <= 0 { MsgBox("Step invalid", "Error", 0x10) return } playback_step := Number(IB1.Value)
IB2 := InputBox("Minutes", "PLAYBACK", "W160 H130", playback_minutes) if (IB2.Result = "Cancel") return if !IsInteger(IB2.Value) || Number(IB2.Value) < 0 || Number(IB2.Value) > 59 { MsgBox("Minutes invalid", "Error", 0x10) return } playback_minutes := Number(IB2.Value)
IB3 := InputBox("Seconds", "PLAYBACK", "W160 H130", playback_seconds) if (IB3.Result = "Cancel") return if !IsInteger(IB3.Value) || Number(IB3.Value) < 0 || Number(IB3.Value) > 59 { MsgBox("Seconds invalid", "Error", 0x10) return } playback_seconds := Number(IB3.Value) }
;Close Perseus and the script +q:: !F4:: { UnnoticeableClick(1010, 12) ExitApp() }
#HotIf
#HotIf WinActive("Frequency ahk_class #32770") Enter:: NumpadEnter:: k:: +k:: { Click(64, 184) Click(104, 186) }
m:: +m:: { Click(33, 184) Click(104, 186) } #HotIf
|