NetWiki

I can make net work

User Tools

Site Tools


software:autohotkey

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:autohotkey [2023-08-26 17:30] – created davesoftware:autohotkey [2023-11-21 20:16] (current) dave
Line 3: Line 3:
  
 ---- ----
-The startup script for AHK is in the same directory as the AutoHotKey executable and has the same name but with a .ahk extension.  By default that's C:\Program Files\AutoHotkey\AutoHotkey.ahk but if you're AHK is installed in C:\bin and named ahk.exe then the startup script will be C:\bin\ahk.ahk.+The startup script for AHK is in the same directory as the AutoHotKey executable and has the same name but with a .ahk extension.  By default that'''C:\Program Files\AutoHotkey\AutoHotkey.ahk'' but if your AHK is installed in ''C:\bin'' and named ''ahk.exe'' then the startup script will be ''C:\bin\ahk.ahk''.
  
 ---- ----
 +===== AHK Time Zone =====
 +To get the time zone on Windows:
  
 +Run "w32tm /tz" and parse the bit after "TIME_ZONE_ID_" to determine STANDARD or DAYLIGHT.
 +
 +<code>
 +w32tm /tz
 +Time zone: Current:TIME_ZONE_ID_STANDARD Bias: 300min (UTC=LocalTime+Bias)
 +</code>
 +
 +<code>
 +:*:;tz::
 +  RegREad, TimeZone, HKEY_LOCAL_MACHINE, SYSTEM\ControlSet001\Control\TimeZoneInformation, TimeZoneKeyName
 +  if (InStr(TimeZone, "Standard"))
 +    TimeZone := "EST"
 +  else if (InStr(TimeZone, "Daylight"))
 +    TimeZone := "EDT"
 +  else
 +    TimeZone := "ET"
 +
 +  SendInput, %TimeZone%
 +Return
 +</code>
software/autohotkey.txt · Last modified: 2023-11-21 20:16 by dave

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki