Jump to content



Photo

_INetGetImage


  • Please log in to reply
6 replies to this topic

#1 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 07 June 2005 - 07:12 PM

gets the links to images on a certain website.

$array[0] = nr of links
$array[1] = link 1
$array[n] = link n

if no images are found @error = 2 and $array = 0

Attached Files


My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll







#2 Spiders_Poison

Spiders_Poison

    Seeker

  • New Members
  • 2 posts

Posted 14 June 2005 - 09:31 AM

First of all.. I'm from Germany and my English is not very good...

My Problem...

I get an Error with your Scripts and I don't know how I can fix it.

AutoIt Error

Line 24 (File "D:\AutoIt3\include\_INetGetImage.au3");

$v_HTTP = ObjCreate ("winhttp.winhttprequest.5.1")
$v_HTTP = ^ ERROR

Error: Unknown function name.


An error like this I get in the _INetGetImage, INetGetSource and with the Example of InetGetSouurce...

I have installed the newest free version of AutoIt... so could annybody tell me were the Problem is?

I need Help... :(

#3 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 14 June 2005 - 12:51 PM

I have installed the newest free version of AutoIt...

<{POST_SNAPBACK}>

all versions of autoit are free :(

you need the beta get it for FREE @ http://www.autoitscript.com/autoit3/files/beta/autoit/
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#4 buzz44

buzz44

    Seriously funny.

  • Active Members
  • PipPipPipPipPipPip
  • 1,388 posts

Posted 14 June 2005 - 01:22 PM

Nice w0uter. I can see myself link this to googling images and retrieving the links :(.

One suggestion...
#cs ;ALL ROOT URLS MUST END IN '/' ;good: <a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/</a> ;good: <a href='http://www.autoitscript.com/index.php' class='bbc_url' title=''>http://www.autoitscript.com/index.php</a> ;BAD: <a href='http://www.autoitscript.com' class='bbc_url' title=''>http://www.autoitscript.com</a> $var = _INetGetImage('http://www.autoitscript.com/') If NOT @ERROR Then For $i = 1 to $var[0]     ConsoleWrite($var[$i] & @LF) Next EndIf #ce


Perhaps you should some internal error checking... to be more user friendly :(.
If StringRight($s_URL) <> "/" And StringRight($s_URL, 4) = ".com" Then    $s_URL = $s_URL & "/" EndIf


Or something similar.

Edit: Whoops, forget there is also .net, .org plus all the country prefix's, .au, .de etc. Maybe it should be left to the user :'(.

Edited by Burrup, 14 June 2005 - 01:27 PM.

Old Projects:A3MORGB2HexOld Functions:_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

#5 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 14 June 2005 - 01:59 PM

Edit: Whoops, forget there is also .net, .org plus all the country prefix's, .au, .de etc. Maybe it should be left to the user :(.

<{POST_SNAPBACK}>

exactly :(
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#6 Wus

Wus

    Indentured Servant

  • Active Members
  • PipPipPipPipPipPip
  • 513 posts

Posted 15 June 2005 - 07:00 PM

I dont know if this will work right since I dont know if the extra slash will matter on somthing such as http://www.autoitscript.com/index.php but it may be useful

Func _AddTrSlash( $URLraw );; Add trailing slash         Local $CharSep, $URLraw, $URL     $CharSep = StringSplit( $URLraw, "" )     If $CharSep[$CharSep[0]] <> "/" Then         $URL = $URLraw & "/"     EndIf     Return $URL EndFunc


EDIT: appears it dont work.,. nvm

Edited by Wus, 15 June 2005 - 07:07 PM.

Posted Image

#7 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 15 June 2005 - 07:04 PM

http://www.autoitscript.com/index.php/ = evil
My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users