Skip to content

Instantly share code, notes, and snippets.

;~ The script needs to be run at an elevated level- this takes care of that
if (! A_IsAdmin){ ;http://ahkscript.org/docs/Variables.htm#IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
;**********************Accept-Encoding*********************************
; https://en.wikipedia.org/wiki/HTTP_compression
HTTP.SetRequestHeader("Accept-Encoding","gzip, deflate")
HTTP.SetRequestHeader("Accept-Encoding", "gzip,deflate,sdch") ;sdch is Google Shared Dictionary Compression for HTTP
;***********This will write a binary file to the folder where script is running*******************
;***********Another great reason to use MSXML2 is that it will use your IE cookies so you don't have to deal with Authentication :)*******************
;***********Also read this post for pros/cons of each method: https://autohotkey.com/boards/viewtopic.php?t=9554*******************
;*******************************************************
; 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
;**************************************
API_Token:="XXXXXXXXXXXPut your API token hereXXXXXXXXXXXXXXXXX"
QueryString:=QueryString_Builder({"address":"836 Kilbridge Lane","citystatezip":"Coppell,TX","zws-id":API_Token})
;~ QueryString:=QueryString_Builder({"address":"31 Boulevard terrace","citystatezip":"Novato,CA","zws-id":API_Token})
EndPoint:="http://www.zillow.com/webservice/GetDeepSearchResults.htm"
;~The script needs to be run at an elevated level- this takes care of that
if (! A_IsAdmin){ ;http://ahkscript.org/docs/Variables.htm#IsAdmin
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
alternative medicine
animation
apparel & fashion
architecture & planning
arts and crafts
automotive
aviation & aerospace
banking
biotechnology
broadcast media
;***********************Read and Write appointments from Calendar**************************.
;http://www.autohotkey.com/forum/viewtopic.php?t=61509&p=379775#379775
olFolderCalendar := 9 ; Outlook.OlDefaultFolders.olFolderContacts
olFolderContacts := 10 ; get constants from visual studio
olAppointmentItem = 1
profileName := "Outlook"
Outlook := ComObjCreate("Outlook.Application")
namespace := Outlook.GetNamespace("MAPI")
namespace.Logon(profileName)
#Include <default_Settings> ;RAlt::
global Obj:=[] ;Creates obj holder for variables
;~ https://autohotkey.com/board/topic/117747-calculating-difference-between-gmt-and-local-time/
;~ FormatTime, UTC, % A_NowUTC, yyyyMMddT HH:mm
Gui, Add, MonthCal, vMyCalendar
gui,Show
MsgBox % A_NowUTC
FormatTime, UTC, % A_NowUTC, yyyyMMddTHHmmssZ
MsgBox, %UTC% `n20180714T170000Z
RBTitle := 1
switch (RBTitle)
{
case 1:
msg := "Troubleshoot "
case 2:
msg := "Configure "
case 3:
msg := "Discuss "
@JoeGlines
JoeGlines / GUI example.ahk
Created April 1, 2022 16:45
Saving and Importing to a GUI - example from friday support call
#SingleInstance, Force
; Create the sub-menus for the menu bar:
Menu, FileMenu, Add, &New, Clear
Menu, FileMenu, Add
Menu, FileMenu, Add, &Import, Import
Menu, FileMenu, Add, &Export, Export
Menu, FileMenu, Add
Menu, FileMenu, Add, E&xit, GuiClose
a=1
b=2
c=a + b