MariaHalt
asked on
automating xenu link sleuth
Hi, I'd like to run Xenu Link Sleuth from Scheduled Tasks. I was thinking of executing a .bat file passing in my url list file and depth, I just don't know if that is possible with Xenu. I found a user group that puts out a user's Xenu manual, but I didn't come across any command line launches. Please help! Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The below is the autiit commands that I use to run xenu via a command line.
The first parameter is the URL that is to be checked.
depends on the mouse option "automatically move pointer to default button in a dialog box"
moving mouse while command is running may confuse the command.
Works for me, your mileage may vary
Roy
-------------------------- ---------- ---------- ---------- ---------- ----------
$url= doXenu($CmdLine[1])
func doXenu($url)
; depends on the mouse option "automatically move pointer to default button in a dialog box"
; moving mouse while command is running may confuse the command.
Run ("C:\Program Files (x86)\Xenu\xenu.exe")
WinWaitActive ("Xenu's Link Sleuth")
;msgbox ($MB_OK, "title here", "find the app")
Send ("^n")
Send ($url)
Send ("{TAB}")
Send ("{TAB}")
MouseClick ($MOUSE_CLICK_LEFT ) ; click okay to run the process
; wait for the "create report window
Opt ("WinTitleMatchMode", 3) ; exact match
WinWaitActive ("Xenu")
MouseClick ($MOUSE_CLICK_LEFT ) ; click yes
;Wait for the browser window
Opt ("WinTitleMatchMode", 1) ; find the main window again
WinWaitActive ("Broken") ; wait for the "create report window
WinClose ("Broken")
Sleep(3000)
; wait for the main xenu window
Opt ("WinTitleMatchMode", 1) ; find the main window again
WinWaitActive ("Xenu")
WinClose ("Xenu") ; and close it
; wait for the save changes window
Opt ("WinTitleMatchMode", 3) ; exact match
WinWaitActive ("Xenu")
Send ("{TAB}")
sleep(2000)
Send ("n")
; wait for the main window
Opt ("WinTitleMatchMode", 1) ; find the main window again
sleep(1000)
WinClose("Xenu")
msgbox ($MB_OK, "title here", $url & " completed okay")
EndFunc
The first parameter is the URL that is to be checked.
depends on the mouse option "automatically move pointer to default button in a dialog box"
moving mouse while command is running may confuse the command.
Works for me, your mileage may vary
Roy
--------------------------
$url= doXenu($CmdLine[1])
func doXenu($url)
; depends on the mouse option "automatically move pointer to default button in a dialog box"
; moving mouse while command is running may confuse the command.
Run ("C:\Program Files (x86)\Xenu\xenu.exe")
WinWaitActive ("Xenu's Link Sleuth")
;msgbox ($MB_OK, "title here", "find the app")
Send ("^n")
Send ($url)
Send ("{TAB}")
Send ("{TAB}")
MouseClick ($MOUSE_CLICK_LEFT ) ; click okay to run the process
; wait for the "create report window
Opt ("WinTitleMatchMode", 3) ; exact match
WinWaitActive ("Xenu")
MouseClick ($MOUSE_CLICK_LEFT ) ; click yes
;Wait for the browser window
Opt ("WinTitleMatchMode", 1) ; find the main window again
WinWaitActive ("Broken") ; wait for the "create report window
WinClose ("Broken")
Sleep(3000)
; wait for the main xenu window
Opt ("WinTitleMatchMode", 1) ; find the main window again
WinWaitActive ("Xenu")
WinClose ("Xenu") ; and close it
; wait for the save changes window
Opt ("WinTitleMatchMode", 3) ; exact match
WinWaitActive ("Xenu")
Send ("{TAB}")
sleep(2000)
Send ("n")
; wait for the main window
Opt ("WinTitleMatchMode", 1) ; find the main window again
sleep(1000)
WinClose("Xenu")
msgbox ($MB_OK, "title here", $url & " completed okay")
EndFunc
ASKER