spymare Posted October 17, 2010 Share Posted October 17, 2010 hi can someone post an example how a script could be uploading example a jpg image with a simple upload form like thisdbq.dkmaybe using winhttp: http://www.autoitscript.com/forum/index.php?showtopic=84133 Link to comment Share on other sites More sharing options...
trancexx Posted October 17, 2010 Share Posted October 17, 2010 (edited) We have general rule about helping with code and not helping by writing code. But since this is sort of a new thing, here: #include "WinHttp.au3" Global Const $sAddress = "some.address" Global $hOpen = _WinHttpOpen() Global $hConnect = _WinHttpConnect($hOpen, $sAddress) Global $sHTM = _WinHttpSimpleFormFill($hConnect, Default, Default, "name:uploaded", @ScriptFullPath) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) ConsoleWrite(">Server response:" & @CRLF & $sHTM & @CRLF) MsgBox(262144, "Server response", $sHTM) Edited December 3, 2010 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
spymare Posted October 17, 2010 Author Share Posted October 17, 2010 thx but how would i make it upload example @scriptdir & "\test.docx Link to comment Share on other sites More sharing options...
trancexx Posted October 17, 2010 Share Posted October 17, 2010 Yeah, sure. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
spymare Posted October 17, 2010 Author Share Posted October 17, 2010 (edited) closed Edited December 1, 2010 by spymare Link to comment Share on other sites More sharing options...
trancexx Posted October 17, 2010 Share Posted October 17, 2010 Greater force maybe. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
spymare Posted October 17, 2010 Author Share Posted October 17, 2010 grater force? Link to comment Share on other sites More sharing options...
trancexx Posted October 17, 2010 Share Posted October 17, 2010 Force majeur. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
spymare Posted October 17, 2010 Author Share Posted October 17, 2010 hmm i don't get it how to upload examples a file from c drive Link to comment Share on other sites More sharing options...
JohnOne Posted October 18, 2010 Share Posted October 18, 2010 Check yor code for errors. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
spymare Posted October 18, 2010 Author Share Posted October 18, 2010 (edited) closed Edited December 1, 2010 by spymare Link to comment Share on other sites More sharing options...
Valik Posted December 1, 2010 Share Posted December 1, 2010 You might try actually communicating. Just saying "closed" makes no sense. Neither does reporting the thread stating it should be deleted without offering any justification on context for why it should be deleted. Link to comment Share on other sites More sharing options...
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