Use a form to alter a URL Download

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kjones9999
Posts: 5
Joined: 07 Mar 2017, 19:11

Use a form to alter a URL Download

16 Feb 2018, 21:30

Hi all. I am really close on this one but I have hit a wall. I want to take a form input as a url, and have it added to url download. The form on "URL INPUT" I need to replace "http://127.0.0.1:8088/API/?Function=StartRecording" in this example so the timer will call the custom URL. Any ideas?

Code: Select all

#R::

Gui, Font, s12, Arial
Gui, Add, Text,, 1. Select time`n2. Submit`n3. Close popup
Gui, Add, DateTime, vMyTime w150 1, hh:mm tt
Gui, Add, Edit, vMyNote w250, vMix Recording
Gui, Add, Button, Default, Submit
Gui, Show,  , Url Input
Return

ButtonSubmit:
Gui, Submit, NoHide

If (MyTime > A_Now)
  {
    FormatTime, HrTime , %MyTime%, HH
    FormatTime, MinTime , %MyTime%, m
    NewTime := ((HrTime*3600 + MinTime*60) 
                        - (A_Hour*3600 + A_Min*60 + A_Sec))*1000
    FormatTime, Schedule, %MyTime%
  MsgBox,4160,NOTE:, "%MyNote%" is scheduled for`n%Schedule%
    #Persistent
    RemMessage := "Recording Started!"
    SetTimer, ShowReminder, %NewTime%
  }
Else
  {
    MsgBox, The time must be later in the same day!
    GuiControl,,MyTime, %A_Now%
  }
Return

GuiClose:
Gui, Destroy
Return

ShowReminder:
FormatTime, RightNow
UrlDownloadToFile, http://127.0.0.1:8088/API/?Function=StartRecording, createtemp
MsgBox,4160,vMix,vMix Recording Started!

SetTimer, ShowReminder, Off
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 217 guests