Posts: 5
Threads: 2
Joined: Apr 2005
I am getting the "Error (RT) in Macro: object not found"
Any Ideals?
Dir d; str fileN sPath
foreach(d "C:\berklineNew\customeDocs\Completed\*" FE_Dir)
fileN=d.FileName
sPath=d.FileName(1)
out sPath
Acc a=acc(fileN "LINK" " Internet Explorer" "Internet Explorer_Server" "" 0x1001)
a.Mouse(1)
lef 0.620 0.708 win(" Internet Explorer" "IEFrame") 1
Posts: 12,072
Threads: 140
Joined: Dec 2002
Maybe the macro runs too fast. When capturing the link in the Find Accessible Object dialog, specify some wait time, eg 10. Then the acc function will wait maximum 10 seconds until the link appears.
To manipulate objects in web pages in Internet Explorer, html element functions work better. They are faster, and often more precise.
Posts: 5
Threads: 2
Joined: Apr 2005
I tried putting in a wait time and still no luck. I also tried the html element actiion, it yeilded the same.
Posts: 12,072
Threads: 140
Joined: Dec 2002
Are you sure that the page contains links for all files in that folder? Eg file1.txt file2.txt and so on?
Posts: 5
Threads: 2
Joined: Apr 2005
Think so - When I click the "Test" button from within the "Accesible Object Action" dialog box the blue outline blinks around the item in the list. Also, if I hardcode the name of a different item in the list, the macro clicks the correct item. But when I try to use a varible form the foreach loop I get the object not found.