Skip to content

Commit

Permalink
2012-03-04_03-53-58
Browse files Browse the repository at this point in the history
  • Loading branch information
camerb committed Mar 4, 2012
1 parent 37eaa25 commit f1f1a07
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 47 deletions.
4 changes: 3 additions & 1 deletion GlobalHotkeys.ahk
Expand Up @@ -254,7 +254,7 @@ file=%A_ScriptDir%\cliprun.ahk
FileDelete(file)
FileAppend(ahk, file)
Run, %file%
Sleep 2000 ;no, seriously, this will keep you from doing stupid stuff
Sleep 2000 ;no, seriously, this will keep you from doing stupid stuff (running too many clipAHKs)
Return

;control the firefly macros if they ran amuck
Expand All @@ -268,5 +268,7 @@ IfWinExist, firefly.*.ahk
RunAhk("fireflyButtons.ahk")
reload
}
else
RunAhk("fireflyButtons.ahk")
DetectHiddenWindows, Off
return
45 changes: 0 additions & 45 deletions Persistent.ahk
Expand Up @@ -349,51 +349,6 @@ if (Mod(A_Sec, 2)==0)
}
;}}}

;{{{Run scheduled AHKs (old)
;if (Mod(A_Sec, 15)==0)
;{
;asapAhk=%A_WorkingDir%\scheduled\%A_ComputerName%\asap.ahk
;asapTxt=%A_WorkingDir%\scheduled\%A_ComputerName%\asap.txt
;if FileExist(asapTxt)
;FileMove(asapTxt, asapAhk, "overwrite")

;;TODO put all this crap into another ahk, so that persistent doesn't halt while we're babysitting other ahks
;Loop, %A_WorkingDir%\scheduled\%A_ComputerName%\*.ahk
;{
;;check to make sure filedate is a number and is 14 long
;if ( strlen(A_LoopFileName) == 18 )
;{
;StringTrimRight, filedate, A_LoopFileName, 4
;if filedate is integer
;shouldRun:=CurrentlyAfter(filedate)
;}
;if (A_LoopFileName=="asap.ahk" or shouldRun)
;{
;;copy file contents to a new ahk and run it
;tempahk=C:\Dropbox\AHKs\scheduled\CurrentlyRunning\Scheduled-%A_ComputerName%-%A_LoopFileName%.ahk
;FileCopy(A_LoopFileFullPath, tempahk)
;FileAppend("`n#include FcnLib.ahk`nSelfDestruct()", tempahk)
;debug("silent log", "running scheduled ahk:", tempahk)
;status:=RunAhkAndBabysit(tempahk)
;FileDelete, %A_LoopFileFullPath%

;;FIXME wtf... what was I thinking when I wrote this crackhead stuff? this doesn't work at all
;;if (status == "error") {
;;time:=CurrentTime("hyphenated")
;;path=C:\Dropbox\Public\ahkerrors\
;;FileCreateDir, %path%
;;FileMove, %tempahk%, %path%%time%-%tempahk%.txt, 1
;;}

;;wait for the scheduled ahk to finish running and self-destruct
;;since this is the persistent file, we don't want more than one
;;scheduled ahk to run at one time
;WaitFileNotExist(tempahk)
;}
;}
;}
;}}}

;{{{ new ways to close unwanted windows

;note that this is the body of the traytip, not the title
Expand Down
4 changes: 4 additions & 0 deletions StartupSewing-XP.ahk
@@ -0,0 +1,4 @@
#include FcnLib.ahk

SpiffyMute()

File renamed without changes.
2 changes: 1 addition & 1 deletion cliprun.ahk
@@ -1,5 +1,5 @@
#include FcnLib.ahk

Send, git reset HEAD cgi/Help/
Ctrl+Shift+Alt+Win+R

~esc::ExitApp

0 comments on commit f1f1a07

Please sign in to comment.