Jump to content

pickypiglet

Members
  • Posts

    6
  • Joined

  • Last visited

pickypiglet's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi Guys, Any final resolution to this post? It was posted in 2009. So hopefully there has been some work in this area. I was having the same problem: But was able to resolve with the help of this thread since I'm using very old IE. $o_form = _IEFormGetObjByName($oIE, "Form") $oUpload = _IEGetObjByName($o_form, "file1") _IEAction($oUpload, "focus") Send("{SPACE}") Sleep(5000) Send("C:\test.csv") Thx.
  2. Hi, It still doesn't work. I've tried with both name and id. Thx.
  3. Hi There, I'm using Internet Explorer UDF to upload a file. The test HTML form just contains an input tag and a submit button. <input type="file" id="file1" name="datafile" size="40"> <input type="submit" id="submit1" value="Send"> The autoit script gets the form and can submit, but can't update the input type "file". When I run the script below it reports that no file was uploaded even though the file exists on my computer. Many Thx in advance! Autoit Code Snippet $oIE = _IECreate() _IENavigate($oIE, "http://localhost/test.html") $o_form = _IEFormGetObjByName($oIE, "Form") ; new page needs to get form again $o_file = _IEFormElementGetObjByName($o_form, "file1") _IEFormElementSetValue($o_file, "C:\test.csv") $oButtonsubmit = _IEFormElementGetObjByName($o_form, "submit1") $oButtonsubmit.click _IELoadWait($oIE)
  4. Thx Zedna! ok. That makes sense. However, I'm new to Autoit. What is the most efficient way to change the body fields and replace with spaces? Is a loop the only way to do it? Thx so much!
  5. Hi There, I'm new to Autoit and I think I've posted in the wrong place initially so re-posting to this thread to hopefully get an answer. Tried to use _OL_ItemExport function to get items from my calendar. It returns a .csv. However, when I try to export the Body/Description it puts on a separate line even though it is the same item. The reason is because the Body of the Calendar item has <enter>. So one calender item is now showing as several lines in my .csv file. How can I keep it on the same line or change the row delimiter? I could only find the field delimiter option for this function. Here's my code snippet: $aData= _OL_ItemFind($oOutlook, "*Calendar", $olAppointment, "[start]>='"&$start&"'", "", "", "Subject,Start,End,Body", "", 2) If @error <> 0 Then Exit MsgBox(16, "", "Error getting calendar from folder '*Calendar'. @error = " & @error & ", @extended = " & @extended) Global $iResult = _OL_ItemExport($filename, "~", "", 1, "Subject,Start,End,Body", $aData) If @error <> 0 Then Exit MsgBox(16, "", "Error exporting Calendar to file. @error = " & @error & ", @extended = " & @extended) MsgBox(64, "", $iResult & " Calendar successfully exported to file") Thx in advance!!
  6. Hi There, Tried to use _OL_ItemExport function to get items from my calendar. It returns a .csv. However, when I try to export the Body/Description it puts on a separate line even though it is the same item. The reason is because the Body of the Calendar item has <enter>. So one calender item is now showing as several lines in my .csv file. How can I keep it on the same line or change the row delimiter? I could only find the field delimiter option for this function. Here's my code snippet: $aData= _OL_ItemFind($oOutlook, "*\Calendar", $olAppointment, "[start]>='"&$start&"'", "", "", "Subject,Start,End,Body", "", 2) If @error <> 0 Then Exit MsgBox(16, "", "Error getting calendar from folder '*\Calendar'. @error = " & @error & ", @extended = " & @extended) Global $iResult = _OL_ItemExport($filename, "~", "", 1, "Subject,Start,End,Body", $aData) If @error <> 0 Then Exit MsgBox(16, "", "Error exporting Calendar to file. @error = " & @error & ", @extended = " & @extended) MsgBox(64, "", $iResult & " Calendar successfully exported to file") Thx in advance!!
×
×
  • Create New...