Skip to content

Instantly share code, notes, and snippets.

#SingleInstance,Force
IniRead, API_Key ,Auth.ini,API, Key ;Get your own key and put it into the API_Key variable
;**************************************
Term:="Pretty cool i think"
Endpoint:="https://capitalize-my-title.p.rapidapi.com/title/"
HTTP:=ComObjCreate("WinHttp.WinHttpRequest.5.1") ;Create COM Object
HTTP.Open("GET",Endpoint Term) ;Open the Connection
HTTP.SetRequestHeader("X-Rapidapi-Host","capitalize-my-title.p.rapidapi.com")
HTTP.SetRequestHeader("X-Rapidapi-Key",API_Key)
;~ HTTP.SetProxy(2,"localhost:8888") ;Use if Fiddler is running
#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.")
text=
(
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum Joe@the-Automator.com dolor sit amet, (555)555.8957 the-Automator.com consectetuer adipiscing elit.
https://www.linkedin.com/in/joeglines/ @recruiting lorem ipsum
dolor sit http://github.com/maestrith/AHK-Studio elit.
dolor sit www.github.com/maestrith/AHK-Studio elit.
)
Pos:=1 ;set starting point
#SingleInstance,Force ;ensure only 1 version running
SetTitleMatchMode, 3 ;to make sure winMinimize and Sending Control C to ConsoleWindowClass works down below
DetectHiddenWindows,On ;Added becauase minimizing the window
; General Documentation := https://ffmpeg.org/ffmpeg-devices.html#gdigrab Documentation on gdigrab from ffmpeg
; Get list of devices ffmpeg:= ffmpeg -list_devices true -f dshow -i dummy
; Cropping specific area := https://stackoverflow.com/questions/6766333/capture-windows-screen-with-ffmpeg/47591299
;********************Control+Shift+R=Start Recording***********************************
^+r::
FileDelete, %A_ScriptDir%\temp.mp4
myFunc(["one","two","three"])
myfunc(Array){
for index, value in Array
MsgBox % index a_tab value
}
@JoeGlines
JoeGlines / HTML Table Generator with GUI.ahk
Created May 27, 2021 23:07
Example showing how easy it is to add a GUI
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code for GUIs are Easy here: https://www.the-automator.com/learn-autohotkey/guis-are-easy-with-autohotkey/
;*******************************************************
#SingleInstance, force
Gui, main:new
Gui, add, text,w50, Rows
Gui, add, edit, w50 x+10 vedRow
Gui, add, text,w50 xm, Columns
@JoeGlines
JoeGlines / Auto close in SciTE4AutoHotkey.ahk
Created May 25, 2021 14:28
Automatically close braces, quotes, etc. in SciTE4AutoHotkey
--***AutoClose Begin***
dofile(props['SciteUserHome'].."/Class.lua")
dofile(props['SciteUserHome'].."/Common.lua")
dofile(props['SciteUserHome'].."/AutoCloseBraces.lua")
EventClass:BeginEvents() -- Start up the events (Calls onstartup()).
-- ***AutoClose END
@JoeGlines
JoeGlines / AutoClose in SciTE4AutoHotkey.ahk
Created May 25, 2021 14:25
Automatically close brackets, parens, braces and quotes in SciTE4AutoHotkey
Automatically close brackets, parens, braces and quotes in SciTE4AutoHotkey
Clipboard=
(
1 One is long
2 two is longer
3 is short
)
Sort, Clipboard, F Str_Length ;use sort function below to sort on string length
MsgBox % Clipboard
return
;**********************Sort function*********************************
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
#SingleInstance,, Force
Browser_Forward::Reload
Browser_Back::
try XL := ComObjActive("Excel.Application") ;handle to running application
Catch {