Skip to content

Instantly share code, notes, and snippets.

@BGMcoder
BGMcoder / CatStack.ahk
Last active Apr 27, 2018
Battle Cats: Get a cat's hp or dmg based on it's level and stat's max
View CatStack.ahk
;3:04 PM Monday, April 23, 2018
;Get a cat's hp based on it's level
;works perfectly! Test with Ramen Cat - see the wiki for matches:
;http://battle-cats.wikia.com/wiki/Treasure
#NoEnv
#singleinstance, force
setformat, float, 0.0
View IconEx.ahk
/* _______________________________________________________________________________________
_____ ______ __ _
|_ _| | ____| /_ || | _ _ _ SKAN (Suresh Kumar A N)
| | ___ ___ _ __ | |__ __ __ | || |_| | | | | | arian.suresh@gmail.com
| | / __/ _ \| '_ \| __| \ \/ / | ||___| | | ' | |
_| || (_| (_) | | | | |____ > < | | | | | |__| | Created on : 13-May-2008
|_____\___\___/|_| |_|______/_/\_\ |_|(_) |_| \.___/ Last Modified : 10-Aug-2012
[ I C O N E X P L O R E R A N D E X T R A C T O R ] Version : 1.4u
_______________________________________________________________________________________
@BGMcoder
BGMcoder / volume.ahk
Created Jun 5, 2015
Volume Control hotkeys via ahk
View volume.ahk
;control your system volume via hotkeys
;# is the win key
;^ is the control key
;sound controls
#[::setVolume("-5") ;lower volume by 5%
#]::setVolume("+5") ;raise volume by 5%
^#[::setVolume("10") ;set volume to minimum
^#]::setVolume("80") ;set volume to loud
SetVolume(whatvolume){
@BGMcoder
BGMcoder / PhonerLiteToggle.ahk
Created Dec 13, 2017
PhonerLite Toggler: hides/shows/runs PhonerLite. Attach this to a hotkey.
View PhonerLiteToggle.ahk
phonerlite(){
phonerliteapp := "C:\Program Files (x86)\Phoner\PhonerLite.exe"
process, exist, PhonerLite.exe
thispid := errorlevel
if(thispid){
;if PhonerLite window is open on the screen, then minimize it
wingettitle, thistitle, ahk_pid %thispid%
if(thistitle){
winminimize, ahk_pid %thispid%
}else{
@BGMcoder
BGMcoder / touch.ahk
Created Sep 16, 2017
Sets all File Attribute Dates to Today
View touch.ahk
;touch.ahk
;Brother Gabriel-Marie
;10:00 AM Saturday, September 16, 2017
;set all file attribute dates to current date
Loop %0% ; For each file dropped
{
GivenPath := %A_Index%
Loop %GivenPath%, 1
{
@BGMcoder
BGMcoder / addonsdk.addstylesheet.js
Last active Dec 17, 2015
AddonSDK How to add a stylesheet
View addonsdk.addstylesheet.js
const { browserWindows } = require("sdk/windows");
for(let w of browserWindows){
AddStyleSheet("./myStyleSheet.css", viewFor(w) );
}
function AddStyleSheet(whatstylesheet,whatwindow){
var attr = 'id="my-css" type="text/css" href="' + whatstylesheet + '"';
var style = whatwindow.document.createProcessingInstruction('xml-stylesheet', attr);
@BGMcoder
BGMcoder / addon.sdk.loadSheet.js
Last active Dec 17, 2015
AddonSDK loadSheet example
View addon.sdk.loadSheet.js
const { browserWindows } = require("sdk/windows");
const { loadSheet } = require("sdk/stylesheet/utils");
//This is how to load an external stylesheet
for(let w of browserWindows){
loadSheet(viewFor(w), "./myStyleSheet.css","author" );
}
@BGMcoder
BGMcoder / addonsdk.mouseover.js
Created Dec 17, 2015
AddonSDK MouseOver Effect for Toolbar Buttons
View addonsdk.mouseover.js
const { browserWindows } = require("sdk/windows");
const { CustomizableUI } = require('resource:///modules/CustomizableUI.jsm');
const { viewFor } = require("sdk/view/core");
const { ActionButton } = require("sdk/ui/button/action");
var myButton = ActionButton({
id: "myButton",
label: "My Button",
icon: { "16": "./icon-16.png", "32":"./icon-32.png", "64": "./icon-64.png" },
@BGMcoder
BGMcoder / IconPictureButton.ahk
Created Jun 19, 2015
Example of how to use a Picture Control as a Button
View IconPictureButton.ahk
;http://ahkscript.org/boards/viewtopic.php?p=48057#p48057
#SingleInstance, On
#NoEnv
SetBatchLines, -1
#include mousey.ahk ;mousey library - http://ahkscript.org/boards/viewtopic.php?f=6&t=8352&p=48052#p48052
toggle := 0
gui, add, picture, h32 vIconButton hwndIconButton gtoggleicon icon45, shell32.dll
mouseycursor := mousey_init(IconButton,"hand")
View ahkinfo.ahk
;push win+3 to show your autohotkey information and copy it to your clipboard so you can paste it
#3::ahkinfo()
ahkinfo(){
isunicode := a_isunicode ? "Unicode" : "ANSI"
thisinfo:= "AutoHotkey " . a_ahkversion . " " . isunicode . " on Windows 7 Pro x64"
clipboard := thisinfo
alert(thisinfo)
}