Then my browser is opened to a specific web site and the number is pasted into the web form field. Next The web form is navigated until the fax is sent. The browser only has to be opened once, because each time a fax is sent, the user is taken back to the location where the fax number is pasted in, automatically. I am trying to get everything before and after "Run, https://control.phone.com/voip/send_fax ... z3jHpbsu2R
WinWait, Send Fax - Phone.com"
to repeat or Loop multiple times, so that I can send a copy of the same fax to different numbers. Any help on where to put the loop would be appreciated.
Code: Select all
[#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
clipboard =
Run, c:/Users/Bryan/Desktop/test.txt
Send, {Shift Down}
Send, {End}
Sleep, 3000
Send, {Shift Up}
Sleep, 1000
Send, {Ctrl Down}
Send, x
Send, {Ctrl Up}
Sleep, 3000
Send, {Delete}
Sleep, 3000
Send, {Alt Down}
Send, F
Sleep, 3000
Send, {Alt Up}
Send, X
Sleep, 2000
Send, {Enter}
Sleep, 1000
Run, https://control.phone.com/voip/send_fax?_voip_phone_id=742396;_sid=7yjQefEz7Ox7N09zz3jHpbsu2R
WinWait, Send Fax - Phone.com
Sleep, 3000
Send, {Tab 22}
Sleep, 1000
Send, ^V
Sleep 1000
Send, {Tab}
Sleep, 500
Send, {Space}
Sleep, 1000
Send, {Tab 5}
Sleep, 500
Send, {Enter}
Sleep, 500
Send, Test.txt
Sleep, 500
Send, {Tab}
Sleep, 500
Send, {Enter}
Sleep, 1000
Send, {Tab 2}
Sleep, 500
Send, {Enter}
Sleep, 5000
Send, {Shift Down}
Send, {Tab 5}
Sleep, 1000
Send, {Shift Up}
Send, {Enter}
Sleep, 2000
/code]