Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created May 30, 2021 14:34
Show Gist options
  • Save JoeGlines/054c4b4832fca63241509a9b583ca536 to your computer and use it in GitHub Desktop.
Save JoeGlines/054c4b4832fca63241509a9b583ca536 to your computer and use it in GitHub Desktop.
#SingleInstance, Force ;Limit one running version of this script
SetBatchLines -1 ;run at maximum CPU utilization
SetKeyDelay, 40, 1, ;Sets the delay that will occur after each keystroke sent by Send and ControlSend.
;~ Browser_Forward::Reload ;Reload the script
;~ Browser_Back:: ;Run the script
WinActivate, ahk_class SciTEWindow
sleep, 100
SendText(2000,"`n`n`n`n`tIt Is The Soldier")
SendText(1400,"`n`n`n`n`tIt is the Soldier, not the minister`n`tWho has given us freedom of religion.")
SendText(1400,"`n`n`n`n`tIt is the Soldier, not the reporter`n`tWho has given us freedom of the press.")
SendText(1400,"`n`n`n`n`tIt is the Soldier, not the poet`n`tWho has given us freedom of speech.")
SendText(1500,"`n`n`n`n`tIt is the Soldier, not the campus organizer`n`tWho has given us freedom to protest.")
SendText(1400,"`n`n`n`n`tIt is the Soldier, not the lawyer`n`tWho has given us the right to a fair trial.")
SendText(1400,"`n`n`n`n`tIt is the Soldier, not the politician`n`tWho has given us the right to vote.")
SendText(1500,"`n`n`n`n`tIt is the Soldier who salutes the flag,`n`tWho serves beneath the flag,`n`tAnd whose coffin is draped by the flag,`n`tWho allows the protester to burn the flag.")
SendText(3500,"`n`n`n`n`tIt Is The Soldier`n`t`t-by Charles M. Province`n`t`tU.S. Army • November 1, 2004")
SendText(delay,text){
Send, %text%
sleep, %delay%
Send ^a
Send, ^x
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment