AutoHotkey Intro 9 - Hotstrings, Traytip/Tooltip, Mass File Name Changing, URLdownload
Автор: TAB Nation - Automation
Загружено: 2020-12-15
Просмотров: 1015
Here lets take a look at hotstrings vs hotkeys, Traytip.Tooltip aka system message, Renaming a bunch of files or folders, and of course URLdownload as a way to get data from a website.
CODE:
::minecraft::
run, "C:\Program Files (x86)\Minecraft Launcher\MinecraftLauncher.exe"
sleep 8000
send {tab 2}
send {enter}
sleep 10000
send damaniscool
send {tab 4}
send {enter}
sleep 3000
send mypassword
send {enter}
MouseGetPos, xpos, ypos
ToolTip, You are logged in!, %xpos%, %ypos%
sleep 4000
ToolTip
return
f1::
A:=1
InputBox, UserInput, Name of Show, What show?
InputBox, numofshow, How many, How many eps?
click
sleep 1000
click
Loop, %numofshow%{
clipboard=%UserInput% %A%
send ^v
send {tab}
sleep 1000
A++
}
TrayTip, My Title, The task is done`n ready for next, 10
Return
f2::
reload
msgbox, I will not show
f2::
UrlDownloadToFile, https://www.autohotkey.com/docs/comma... , C:\Users\Thom\Desktop\ahkdownload.txt
FileRead, OutputVar, %A_desktop%\ahkdownload.txt
RegExMatch(OutputVar, "is set to \K\w+", nextword)
msgbox, Next word after "is set to" is %nextword%
return
F3::
var1 := ComObjCreate("WinHttp.WinHttpRequest.5.1")
var1.Open("GET", "https://www.autohotkey.com/download/1...", true)
var1.Send()
; Using 'true' above and the call below allows the script to remain responsive.
var1.WaitForResponse()
version := var1.ResponseText
MsgBox % version
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: