This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #NoTrayIcon | |
| SendMode("Input") | |
| SetWorkingDir(A_ScriptDir) | |
| ; ----------------------------------------------------------------------- | |
| ; 1. PowerToys Peek | |
| ; Use only space key to trigger PowerToys Peek | |
| ; Credit: https://github.com/deanmongel/use-space-in-peek-of-powertoys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Requires AutoHotkey v2.0 | |
| ; Download the gist and double click to run | |
| ; Enhanced Anti-AFK Script with Window Controls & Styling | |
| ; This script prevents AFK detection by performing mouse movements | |
| ; Press Ctrl+Alt+S to start/stop the anti-AFK feature | |
| ; Press Ctrl+Alt+X to exit the script completely | |
| ; Global variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires AutoHotkey v2 | |
| /* | |
| KeyboardClean.ahk | |
| ------------------ | |
| Temporarily disables keyboard input to allow cleaning while plugged in. | |
| Version History: | |
| v2.2 - 2025-02-24 (Re-enable keyboard on exit as a precaution) | |
| v2.1 - 2025-02-22 (Merged enable/disable functions into a toggle) | |
| v2.0 - 2025-01-14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Include Gdip.ahk | |
| #Include CircleProgressClass.ahk | |
| #SingleInstance, Force | |
| SysGet, mon, MonitorWorkArea | |
| thickness := 15 | |
| spacing := thickness*2 | |
| hrDiam := thickness+spacing | |
| minDiam := hrDiam+spacing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use fltk::{prelude::*, *}; | |
| static COFACTOR: utils::oncelock::Lazy<i32> = utils::oncelock::Lazy::new(|| (app::font_size() as f64 * 2.0) as i32); | |
| fn prep_tree(t: &mut tree::Tree) { | |
| if let Some(root) = t.next(&t.first().unwrap()) { | |
| if root.is_open() { | |
| let elems = root.children(); | |
| t.resize(t.x(), t.y(), t.w(), (elems + 1) * *COFACTOR); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![feature(concat_idents)] | |
| use fltk_sys::{fl::*, frame::*, window::*, group::*, button::{self, *}}; | |
| use std::os::raw::*; | |
| macro_rules! fstr { | |
| ($s:literal) => { | |
| concat!($s, "\0").as_ptr() as _ | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use fltk::{ | |
| app, button, | |
| enums::{Color, Font, FrameType}, | |
| frame, group, input, | |
| prelude::*, | |
| window, | |
| }; | |
| fn style_button(btn: &mut button::Button) { | |
| btn.set_color(Color::Cyan); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![allow(unused_variables)] | |
| use fltk::{ | |
| app::App, | |
| button::Button, | |
| enums::Event, | |
| group::Group, | |
| prelude::{GroupExt, WidgetBase, WidgetExt, WindowExt}, | |
| window::Window, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use fltk::{prelude::*, *}; | |
| fn main() { | |
| let mut choice = menu::Choice::default(); | |
| choice.add_choice("File/New"); | |
| choice.add_choice(&format!("{}\t", "Edit/Cut")); | |
| choice.add_choice("File/Open"); | |
| choice.add_choice(&format!("Edit/{}", "Copy")); | |
| choice.add_choice("Other|Option"); |