This file contains 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
/* | |
#################################################################################################### | |
#################################################################################################### | |
###### ###### | |
###### Ahkbot ###### | |
###### ###### | |
#################################################################################################### | |
#################################################################################################### | |
*/ |
This file contains 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
titles := "ninja turtles" | |
Loop, Parse, titles, | | |
{ | |
title := A_LoopField | |
if (ret:=getMovie(title,date) == 1) | |
msgbox %title%[%date%] | |
else { | |
msgbox title not found |
This file contains 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 lib\movies.ahk | |
; Please take heed with this warning. This script modifies files, and data it gets from IMDB isn't always accurate. | |
; I have taken as many steps as I can to make sure you don't corrupt your filenames (loss of files is unlikely) | |
Msgbox, 16, Warning!, Warning!`nThis script not smart!`n`nIt WILL occasionally get it wrong! | |
; This script is designed to get the correct movie dates and titles. | |
; For this to work, each movie has to be in its own folder | |
; folder formating is movietitle[release date] | |
; it may possibly work with just the folder named as a movietitle | |
Gui, +OwnDialogs |
This file contains 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
EN_UPDATE := 0x0400 | |
OnMessage(EN_UPDATE, "EN_UPDATE") | |
Gui, Main:+OwnDialogs | |
Gui, Main: Add, Button,gChangePassword,Change Password | |
Gui, Main: Show | |
Return | |
MainGuiClose: | |
ExitApp |
This file contains 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
results := search("notepad","C:\Windows") ; This is something I know everyone will have | |
for result in results | |
msgbox Result: %result% | |
Return | |
search(searchTerm, searchDirectory = "C:", filePattern = "*.*", recursive = 1) { | |
results := {} | |
SplitPath, searchTerm , OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive | |
if (!OutExtension) |
This file contains 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
another program rearranged my music library, so I need to rebuild the itunes xml | |
without loosing playlists, so I can finish migrating to another media program | |
list files from xml that don't exist in listed posiston, including name, artist and album | |
find all files with old filename from xml (I want to keep duplicate songs from different albums) | |
if id3 matches xml, update file location (already written id3 function. It exctacts all meta data from id3 into an array) | |
fileselectfile any files that don't get automatically matched (most likely from missing id3) |
This file contains 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
^1:: | |
IfWinExist ahk_id %MyGuiHwnd% | |
{ | |
gosub move_GUI | |
return | |
} | |
Gui +HwndMyGuiHwnd | |
initSecs := 10 | |
Gui, +AlwaysOnTop | |
Gui, font,s10 bold,Verdana |
This file contains 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
toggle := 0 ; boolean, false : var to toggle the afk loop | |
sleepTime := 10 ; (In Seconds) We don't need to be constantly moving. Even once every 10 seconds is very quick. (A fast loop will also make the script unreliable) | |
SetTimer, afkLoop, % sleepTime * 1000 | |
Settimer, afkLoop, Off | |
; We could probably detect when the user has gone afk, and starts the timer before the game kicks them. I don't know how long the game waits before kicking someone however. |
This file contains 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
#SingleInstance, Force | |
SetBatchLines, -1 ; Make the operation run at maximum speed. | |
lastFileModified := GetLastModified(A_MyDocuments,"") | |
FormatTime, OutputVar, %lastFileModified% | |
msgbox %outputVar% | |
GetLastModified(file, ByRef _lastModified) { | |
;msgbox Looping %file% |
This file contains 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
#Persistent | |
#SingleInstance force | |
localIP := "192.168.0.1" | |
remoteIP := "8.8.8.8" | |
refresh := 60*5 ; Seconds | |
icon_connected := 102 | |
icon_disconnected := 101 |
OlderNewer