Skip to content

Instantly share code, notes, and snippets.

text=
(
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum [email protected] 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 {
;*******************************************************
; 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
;*******************************************************
; | Root Element XML files can have only 1 root element, this creates that.
; | | Optional Path/Filename if you want to use an xml file outside of the scripts directory
; | |
MyXML:=new XML("RootElement","lib\MyXML.xml") ;Creates or Loads the XML if the file exists
;| Stored object into the name Node
;| | Path of the new Element you wish to create
;*******************************************************
; 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
;*******************************************************
Browser_Forward::Reload
Browser_Back::
;***********resources*******************
;~ https://the-automator.com/web-scraping-intro-with-autohotkey/ ;video series & AutoHotkey syntax writer
;~ https://www.w3.org/TR/css3-selectors/#negation