fgthhhh Posted October 24, 2009 Posted October 24, 2009 (edited) i want to make a program auto send some link to my hotfile acc to remote upload but i don't work $link = "link example" $o_IE = _IECreate("http://hotfile.com") _IENavigate( $o_IE, "javascript:upload_remote()") $o_form = _IEGetObjByname ($o_IE, "upForm") $o_link = _IEFormElementGetObjByName ($o_form, "uploads[]") $o_Submit = _IEFormElementGetCollection ($o_form, 1) _IEFormElementSetValue ($o_link, $link) _IEAction( $o_Submit, "click") pls help me Edited October 24, 2009 by fgthhhh
water Posted October 24, 2009 Posted October 24, 2009 (edited) Every _IE* call returns @error <> 0 when an error has occurred. Could you please insert this line after every _IE* call and post the results?Consolewrite("_IE* function, Error: " & @error & @CRLF) What do you want to achieve with: _IENavigate( $o_IE, "javascript:upload_remote()") Edited October 24, 2009 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
fgthhhh Posted October 24, 2009 Author Posted October 24, 2009 first, thanks to your reply_IENavigate( $o_IE, "javascript:upload_remote()")is change from upload to remote uploadbeforeafter use scriptEvery _IE* call returns @error <> 0 when an error has occurred. Could you please insert this line after every _IE* call and post the results?Consolewrite("_IE* function, Error: " & @error & @CRLF)u mean insert like this$link = "link example" $o_IE = _IECreate($url) _IENavigate( $o_IE, "javascript:upload_remote()") $o_form = _IEGetObjByname ($o_IE, "upForm") Consolewrite("_IE* function, Error: " & @error & @CRLF) $o_link = _IEFormElementGetObjByName ($o_form, "uploads[]") Consolewrite("_IE* function, Error: " & @error & @CRLF) $o_Submit = _IEFormElementGetCollection ($o_form, 1) Consolewrite("_IE* function, Error: " & @error & @CRLF) _IEFormElementSetValue ($o_link, $link) Consolewrite("_IE* function, Error: " & @error & @CRLF) _IEAction( $o_Submit, "click") Consolewrite("_IE* function, Error: " & @error & @CRLF)i did it, but nothing happen, and i must click on tray icon and chose exitit show that >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Hoang\Desktop\testforum.au3" >Exit code: 0 Time: 282.861
water Posted October 25, 2009 Posted October 25, 2009 I've expanded my example a litte bit and I get the impression that the script hangs at _IENavigate( $o_IE, "javascript:upload_remote()") #include <ie.au3> $link = "link example" $o_IE = _IECreate("http://hotfile.com") Consolewrite("_IECreate, Error: " & @error & @CRLF) _IENavigate( $o_IE, "javascript:upload_remote()") Consolewrite("_IENavigate, Error: " & @error & @CRLF) $o_form = _IEGetObjByname ($o_IE, "upForm") Consolewrite("_IEGetObjByname, Error: " & @error & @CRLF) $o_link = _IEFormElementGetObjByName ($o_form, "uploads[]") Consolewrite("_IEFormElementGetObjByName, Error: " & @error & @CRLF) $o_Submit = _IEFormElementGetCollection ($o_form, 1) Consolewrite("_IEFormElementGetCollection, Error: " & @error & @CRLF) _IEFormElementSetValue ($o_link, $link) Consolewrite("_IEFormElementSetValue, Error: " & @error & @CRLF) _IEAction( $o_Submit, "click") Consolewrite("_IEAction, Error: " & @error & @CRLF) The console output looks like: >"C:\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\TEMP\test.au3" /autoit3dir "C:\Programme\AutoIt3" /UserParams +>10:24:00 Starting AutoIt3Wrapper v.1.10.1.14 Environment(Language:0407 Keyboard:00000407 OS:WIN_XP/Service Pack 2 CPU:X86 ANSI) >Running AU3Check (1.54.14.0) from:C:\Programme\AutoIt3 +>10:24:00 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Programme\AutoIt3\autoit3.exe "C:\TEMP\test.au3" _IECreate, Error: 0 Unfortunately I'm no guru for the _IE* functions. Maybe someone with more knowledge can solve your problem. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now