Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
JoeGlines / AutoHotkey code to interact with SciTE.ahk
Last active April 26, 2021 15:45
Great ways to automate SciTE
;*******************************************************
; 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
;*******************************************************
;***********AutoHotkey code for interacting with SciTE*******************
#SingleInstance, Force
RAlt::Reload
RControl::
;************SciTE editor via COM objects- Editor Windows Commands************************************************
oSci := ComObjActive("SciTE4AHK.Application") ;get pointer to active SciTE editor window
;*******************************************************
; 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
;*******************************************************
;***********Send DirectoryMessage*******************
;~ oSci.SendDirectorMsg("close:") ;close (lots of director messages to send
;~ oSci.SendDirectorMsg("find:Joe") ;find the next instance of the word Joe
;~ oSci.SendDirectorMsg("replaceall:Joe\000Bob") ;replace all occurrencees of Joe with Bob
;~ oSci.SendDirectorMsg(saveas) ;***********SendMessage*******************
;~ https://autohotkey.com/docs/misc/SendMessageList.htm 0x111 is WM_COMMAND
@JoeGlines
JoeGlines / SciTE messages.ahk
Last active April 26, 2021 15:45
Scite Messages used with AutoHotkey
;*******************************************************
; 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
;*******************************************************
;***********List of SciTE messages*******************
;~ oSci.Message(0x111,101) ;create new tab
;~ oSci.Message(0x111,102) ;Open File
;~ oSci.Message(0x111,103) ;Open selected file name
;~ oSci.Message(0x111,104) ;Revert file
;~ oSci.Message(0x111,105) ;Close file
@JoeGlines
JoeGlines / Resizable AutoHotkey GUI.ahk
Last active April 26, 2021 15:44
Template to easily create resizeable GUIs
;*******************************************************
; 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
;*******************************************************
Resizable_GUI(Data,x=900,y=600){
static EditWindow
Gui,12:Destroy
Gui,12:Default
Gui,+Resize
Gui,Font,s12 cBlue q5, Courier New
@JoeGlines
JoeGlines / Create your own SciTE Hotkeys.ahk
Last active April 26, 2021 15:44
Creating SciTE hotkeys to do what you want
#*******************************************************
# 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
#*******************************************************
#******************User defined hot key commands*****************
user.shortcuts=\
Ctrl+Shift+Right|IDM_SWITCHPANE|\
Ctrl+Shift+Left|IDM_SWITCHPANE|\
Ctrl+Alt+c|IDM_COPYASRTF|\
Ctrl+F1|IDM_HELP_SCITE|\
@JoeGlines
JoeGlines / SciTE Context menu.ahk
Last active April 26, 2021 15:43
update your SciTE user properties
#*******************************************************
# 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
#*******************************************************
#******************CONTEXT MENU*************************************.
# Add items to SciTE's context menu (right click menu) #get others here: http://www.scintilla.org/CommandValues.html
user.context.menu=\
||\
||\
**************Save*************** |IDM_SAVE|\
@JoeGlines
JoeGlines / Customizing SciTE status bars.ahk
Last active April 26, 2021 15:43
Example how to customize your SciTE status bars
#*******************************************************
# 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
#*******************************************************
#**********************SciTE Status Bars*********************************
# Commonly used properties are: ReadOnly, EOLMode, BufferLength, NbOfLines (in buffer), SelLength (chars), SelHeight (lines).
# Extra properties defined for the status bar are LineNumber, ColumnNumber, and OverType
# You can also use file properties, which, unlike those above, are not updated on each keystroke: FileName or FileNameExt, FileDate and FileTime and FileAttr.
# Plus CurrentDate and CurrentTime.
statusbar.visible=0
;*******************************************************
; 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
;*******************************************************
XL:=XL_Handle(1)
first_row_of_data:=XL_First_Row(XL)+1 ;First row
MsgBox % "first row of data: " first_row_of_data
MsgBox % "last row: " XL_Last_Row(XL) ;Last row
MsgBox % "used rows: " XL_Used_Rows(XL) ;Used Rws
return
@JoeGlines
JoeGlines / Work with columns in Excel.ahk
Last active April 26, 2021 15:43
how to use AutoHotkey to get Excel column information
;*******************************************************
; 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
;*******************************************************
XL:=XL_Handle(1)
MsgBox % "First Col number: " XL_First_Col_Nmb(XL)
MsgBox % "First Col Alpha: " XL_First_Col_Alpha(XL)
MsgBox % "Last Col number: " XL_Last_Col_Nmb(XL)
MsgBox % "Last Col Alpha: " XL_Last_Col_Alpha(XL)
@JoeGlines
JoeGlines / how to connect to Zoom API.ahk
Last active April 26, 2021 15:42
Connecting to the new V2 Zoom API with AutoHotkey is easy
;*******************************************************
; 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
;************************************************************
;~ https://marketplace.zoom.us/develop/apps
;~ JWT JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
JWT_Token:="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOm51bGwsImlzcyI6Imh3b0JNUEFLVDdXTFcyMmVjX05WR3ciLCJleHAiOjE1ODg1MjU4NzUsImlhdCI6MTU4ODUyMDQ3NH0.UF5dx0UJvc8QiWFi1lnE_-opkmKYlqQlXTRNEpUXb5w"
;~ EndPoint:="https://api.zoom.us/v2/users/[email protected]/meetings"