Last active
April 26, 2021 15:33
-
-
Save JoeGlines/5bdca60d18eddae8d42db459300b6fa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;******************************************************* | |
; 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 | |
;******************************************************* | |
;https://ahdictionary.com/word/hundredsmart.html | |
File_Path:="B:\Custom\Win\Desktop\100 Words to Make you sound smarter.txt" | |
FileRead,Var,% File_Path | |
;~ Resizable_GUI(var,300,900) | |
Loop,read, % File_Path | |
aa++ ;increment rows- Need to know what the last row is so we can pick a Random number between 1 and it | |
Random, Random_Row, 1, %aa% ;select random row | |
;~ Random, Random_Row, 1, 100 ;select random row between 1 and 100 | |
FileReadLine, Word, % File_Path, Random_Row ;read the random row | |
;~ MsgBox % Word | |
Run https://www.google.com/search?q=dictionary&oq=dictionary&ie=UTF-8#dobs=%Word% | |
Clipboard:=Word ;Shove it into clipboard | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment