Sign in to follow this  
Followers 0
fgthhhh

help me how to auto upload

4 posts in this topic

#1 ·  Posted (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 by fgthhhh

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

first, thanks to your reply

_IENavigate( $o_IE, "javascript:upload_remote()")

is change from upload to remote upload

before

Posted Image

after use script

Posted Image

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)

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 exit

it show that

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Hoang\Desktop\testforum.au3"    
>Exit code: 0    Time: 282.861

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0