
Video Hour 1: High Level: Connect to running scripts from Explorer Context Menu
- Context menus at work
- Quick Access Popup real life example
- Pieces of the puzzle (Here is a link to the below files)
- Receiver (script or compiled): Receiver.ahk
- Messenger (compiled): Messenger.exe
- Testing at command line: Test.bat
- Setup context menus: RegEdit import InstallContextMenus.reg
- Remove context menus: RemoveContextMenus.bat
- Questions

- Generate a list of random characters
- Control what is in the unique list
- How many unique “Keys” are generated
#SingleInstance,Force
Random:=[],Dup:=[],Items:=[]
for a,b in StrSplit("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") ;put whatever characters you want in here
Random.Push(b) ;Add each character to Random Array
InputBox,Count,How Many Codes,How Many Codes do you want?
InputBox,Length,How Long For Each Code,How Long?
While(Items.MaxIndex()<Count){ ;Keep iterating until you have enough "keys"
Out:="" ;Clear out variable
while(StrLen(Out)<Length){
Random,Digit,0,% Random.MaxIndex() ;keep max lenght of random at right level
Out.=Random[Digit] ;append the Random digit to out.
}
if(!Dup[Out])
Items.Push(Out),Dup[Out]:=1 ;Add key to object
}
for a,b in Items ;Iterate over list
Total.=b "`n" ;Add to total with new line
msgbox % Clipboard:=Total
