;Ahk code starts #SingleInstance Force msgbox Starting msgbox % "Loading Databases" Func("Avi", "Aryan") a := 1 , b := a b = %a% sum := a + ( b ** 2 ) run , notepad.exe Winwaitactive, ahk_class Notepad if (true) { SendInput Hi there } Func(val1, val2){ msgbox % val1 " " val2 return 0 } Func2(str){ if DllCall("OpenClipboard") return DllCall("CloseClipboard") } func3(){ } mylabel: msgbox, I do nothing return