Skip to content

Instantly share code, notes, and snippets.

;*******************************************************
; 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
;*******************************************************
ControlSetText,ComboBox1,Cool,ahk_exe notepad.exe ;Set Text
ControlSetText,Edit1,Cool,ahk_exe notepad.exe ;Set Text
ControlSetText,Sample,This is Cool,ahk_exe notepad.exe ;Set Text
ControlGetText,Var,ComboLBox1,Font ahk_exe notepad.exe ;Get Text
ControlGet,var,Choice,,ComboLBox1,ahk_exe notepad.exe
MsgBox % Var
ControlSetText,ComboBox1,Cool,ahk_exe notepad.exe ;Set Text
ControlSetText,Edit1,Cool,ahk_exe notepad.exe ;Set Text
ControlSetText,Sample,This is Cool,ahk_exe notepad.exe ;Set Text
ControlGetText,Var,ComboLBox1,Font ahk_exe notepad.exe ;Get Text
ControlGet,var,Choice,,ComboLBox1,ahk_exe notepad.exe
MsgBox % Var
ControlSend,ComboBox1,Just a test,ahk_exe notepad.exe ;Sending keystrokes
ControlSendRaw,ComboBox1,Just a test!,ahk_exe notepad.exe ;Sending keystrokes
#NoEnv
#SingleInstance force
ToolTipDuration := 2000
;Set up for MSWORD for testing only.
;Three issues with the script
;1 - SaveWindow sometimes doesn't refocus as expected ---
;2 - Escaping causes the Tooltip to show the last saved; would like to remove that ---
;~ 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