Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created February 2, 2024 16:43
Show Gist options
  • Save JoeGlines/101b6c21531c0533e3048ebd5d89c23f to your computer and use it in GitHub Desktop.
Save JoeGlines/101b6c21531c0533e3048ebd5d89c23f to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey courses.
;They're structured in a way to make learning AHK EASY: https://the-Automator.com/Learn
;*******************************************************
;~ #Include <default_Settings>
#Requires AutoHotkey v1.1.33+
;**************************************
#SingleInstance force
#Requires AutoHotkey v1.1.36+ ; prefer 64-Bit
global Personal_Info := {"Name" : "Isaias"
, "Last Name": "Baez"
, "Age":25
, "Email": "graptorx@gmail.com"
, "Full Name": "Isaias Baez"
, "Phone": "809-555-5555"
, "Address": "Calle 1ra`, #1`, Los Alcarrizos"
, "City": "Santo Domingo"
, "Country": "Dominican Republic"
, "Zip Code": "10101"
, "User Name": "Test"
, "Password": "1234"}
Return
#IfWinActive, Search Books
F1::SendInfo("Alibris")
#IfWinActive, AutoHotkey Community
F1::SendInfo("autohotkey")
; #IfWinActive
SendInfo(website)
{
switch website
{
case "Alibris":
fields := ["Name", "Last Name", "Email", "Phone", "City"]
case "autohotkey":
fields := ["User Name", "Password"]
}
for each, field in fields
str .= Personal_Info[field] "{Tab}"
Send % Trim(str, "{Tab}") "{Enter}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment