Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Last active April 26, 2021 15:27
Show Gist options
  • Save JoeGlines/059950ffa24f7e4183695833de0dcd61 to your computer and use it in GitHub Desktop.
Save JoeGlines/059950ffa24f7e4183695833de0dcd61 to your computer and use it in GitHub Desktop.
;*******************************************************
; 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::
str:="my example string"
s:=StrSplit(str," ") ;Create an Array in "s" parsing on spaces
myVar:= s.1 ;Access the first item in the Array
MsgBox % myVar
Loop, $ s.MaxIndex() ;since it is an array you can get the count of items
MsgBox % s[A_index] ;iterate over the items in the array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment