I know this is a bit old but was looking at this and i am new so i could be wrong but
Code:
//---------------------------------------------
// Visual indicator because no scroll lock led
// Display green HKN button if HotkeyNet is forwarding keys
// Visual indicator of next toon to fire if toggle cast is active
// at boot up, state is displayed unknown "???"
//----------------------------------------------
<Command AutoExec>
<CreatePanel HKN 10 950 45 55>
<TargetWin HKN>
<AlwaysOnTop on>
<CreateColoredButton ON 0 0 30 30 0xff0f0f 0x000000 ???>
<AddButtonToPanel ON HKN>
// <DoHotkey Hotkey BrowserForward>
// works OK here but then get de-sync with togglekey
// work-around, use ??? to signal "HKN state unknown
<CreatePanel ACT 65 950 45 55>
<TargetWin ACT>
<HideWin>
<AlwaysOnTop ON>
<CreateColoredButton TOGGLE 0 0 30 30 0x00FF00 0x0F0F0F " 1 ">
<AddButtonToPanel TOGGLE ACT>
by changing it to
Code:
<Command AutoExec>
<CreatePanel HKN 10 950 45 55>
<TargetWin HKN>
<AlwaysOnTop on>
<CreateColoredButton ON 0 0 30 30 0xff0f0f 0x000000 ???>
<AddButtonToPanel ON HKN>
// <DoHotkey Hotkey BrowserForward>
// works OK here but then get de-sync with togglekey
// work-around, use ??? to signal "HKN state unknown
<If HotkeysAreOff>
<SetButtonColors ON 0x00FF00 0x0F0F0F>
<SetButtonText ON HKN>
<Else>
<SetButtonColors ON 0x0F0F0F 0x00FF00 >
<SetButtonText ON off>
<endif>
<TargetWin HKN>
<AlwaysOnTop on>
<UpdateWin>
So that it sets it to right color and shows on or off from the start instead of having to do the dohotkey in the autoexec?
Connect With Us