Skip to content

Instantly share code, notes, and snippets.

@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
;*******************************************************
; 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
Global API_Key,ID,All,From,To,XL,EndPoint,LangObj
Global Column_to_Translate:="A", Column_To_Put_Translations:="B"
;**************************************
EndPoint:="https://www.googleapis.com/language/translate/v2" ; ?parameters
;*******************************************************
; 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
;*****</code>#**************************************************</pre>
<pre><code>; TS=Title_Size TF=Title_Font TC=Title_Color
; SI=Speed_In SC=Speed_Clear ST=Speed_Timeout"
; GC=GUI_Color GT=GUI_Transparencey
;*******************************************************
; 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
SetBatchLines,-1
Text:="|&lt;Skip YouTube Ad&gt;*63$65.zzzzzzzzzzzzzzzzzzzzzzzwzvzzzzzzb1tzXzzzlzz81nzzzzzXzyHlbzzzzzLzwDnD6t3zwbw8TyQxk3ztDk2DwnvXXzrT763t7rDbzCSTD1mTiTDyQwyTlUzQyTtwtwznAytwzk1nsTaQxntzU3bkSAtvXXyTn740ttr0Dwzb0C3ntiEznzb2Tzzzwzzzzzzzzzztzzzzzzzzzznzzzzzzzzzzbzzzzzzzzzzzzzzzzs"
While !Ok {
ok:=FindText(0,0,150000,150000,0,0,Text)
;*******************************************************
; 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
;*******************************************************
;************************************************************
;************************************************************
IniRead, API_Key ,Auth.ini,API, Key
;~ https://portal.fullcontact.com/
;************Company Lookup************************************************
;~ EndPoint:="https://api.fullcontact.com/v2/company/lookup.xml"