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
| Browser_Forward::Reload | |
| Browser_Back:: | |
| var:="2" | |
| ;~ Ternary operator | |
| ;~ (condition)?(True) : (False) | |
| data:= (var="3")?("is one"):("Not One") | |
| MsgBox % data | |
| data:= (Var="1")?("one") | |
| :(Var="2")?("two") |
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 | |
| ;******************************************************* | |
| #SingleInstance,Force | |
| var= | |
| ( | |
| Email First_Name Last_Name Phone | |
| [email protected] Joy Senilg 123.456.7801 | |
| [email protected] Joe Glines 234.654.4321 |
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
| #SingleInstance,Force | |
| var= | |
| ( | |
| Email First_Name Last_Name Phone | |
| [email protected] Joy Senilg 123.456.7801 | |
| [email protected] Joe Glines 234.654.4321 | |
| [email protected] Jon Seling 567.890.6543 | |
| [email protected] Jon Seling 345.234.1322 | |
| ) | |
| obj:={} ;Need to declare object first |
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
| #SingleInstance,Force | |
| Browser_Forward::Reload | |
| Browser_Back:: | |
| XL_Handle(XL,1) ;get handle to Application | |
| ;***********freeze panes in Excel******************* | |
| XL_Freeze(XL,Row:="") ;turns off freeze panes | |
| XL_Freeze(XL,Row:="1",Col:="B") ;freeze first row and first column | |
| XL_Freeze(XL,Row:="2",Col:="b") ;just freeze columns at b | |
| XL_Freeze(XL,Row:="1",Col:="b") ;just feeze rows at 1 |
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
| #SingleInstance,Force | |
| ;************************************** | |
| Area_Code:="267" | |
| Prefix:="777" | |
| pwb := WBGet() | |
| pwb.Navigate("http://www.fonefinder.net/findome.php?npa=" Area_Code "&nxx=" Prefix) ;Navigate to URL | |
| while pwb.busy or pwb.ReadyState != 4 ;Wait for page to load | |
| Sleep, 100 |
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
| #SingleInstance,Force | |
| ;**********Example 1**************************** | |
| If (0){ | |
| try { ; Attempts to execute code. | |
| HelloWorld() | |
| MakeToast() | |
| }catch e { ; Handles the first error/exception raised by the block above. | |
| MsgBox, An exception was thrown!`nSpecifically: %e% | |
| } | |
| } |
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
| #SingleInstance,Force | |
| ;********************Input box*********************************** | |
| If (0){ | |
| InputBox,Var,Name gathering,Enter your name,,,,,,,6 | |
| if (ErrorLevel=1) | |
| MsgBox,,InputBox Example, % "error Level:" ErrorLevel ": Cancel was hit",13 | |
| if (ErrorLevel=2) | |
| MsgBox,,InputBox Example, % "error Level:" ErrorLevel ": Timed out",13 | |
| } |
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 | |
| ;******************************************************* | |
| #SingleInstance,Force | |
| ; http://the-automator.com/RegEx_Book | |
| str = | |
| ( | |
| Process created at [ PID: 1872 | TID: 1596 ] | |
| Process created at [ PID: 4180 | TID: 7776 ] |
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
| #SingleInstance,Force | |
| IniRead, API_Key ,Auth.ini,API, Key ;Get your own key and put it into the API_Key variable | |
| ;************************************** | |
| Term:="Pretty cool i think" | |
| Endpoint:="https://capitalize-my-title.p.rapidapi.com/title/" | |
| HTTP:=ComObjCreate("WinHttp.WinHttpRequest.5.1") ;Create COM Object | |
| HTTP.Open("GET",Endpoint Term) ;Open the Connection | |
| HTTP.SetRequestHeader("X-Rapidapi-Host","capitalize-my-title.p.rapidapi.com") | |
| HTTP.SetRequestHeader("X-Rapidapi-Key",API_Key) | |
| ;~ HTTP.SetProxy(2,"localhost:8888") ;Use if Fiddler is running |
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
| #SingleInstance, Force ;Limit one running version of this script | |
| SetBatchLines -1 ;run at maximum CPU utilization | |
| SetKeyDelay, 40, 1, ;Sets the delay that will occur after each keystroke sent by Send and ControlSend. | |
| ;~ Browser_Forward::Reload ;Reload the script | |
| ;~ Browser_Back:: ;Run the script | |
| WinActivate, ahk_class SciTEWindow | |
| sleep, 100 | |
| SendText(2000,"`n`n`n`n`tIt Is The Soldier") | |
| SendText(1400,"`n`n`n`n`tIt is the Soldier, not the minister`n`tWho has given us freedom of religion.") | |
| SendText(1400,"`n`n`n`n`tIt is the Soldier, not the reporter`n`tWho has given us freedom of the press.") |