Sign in to follow this  
Followers 0
goldenix

[Solved] IENavigate error

12 posts in this topic

#1 ·  Posted (edited)

Hi.

Run this script & you will see an error. it happens when I try to navigate to a page third time on this line:

_IENavigate($oIE, $oLink.href ,1)

Error says:

C:\Documents and Settings\user\Desktop\New AutoIt v3 Script.au3 (24) : ==> The requested action with this object has failed.:
If StringInStr($oLink.href, 'post/show/') Then
If StringInStr($oLink.href^ ERROR

But if I delete ie navigate the error goes away. but i need navigate to a next page.

What im doing wrong?

#include <IE.au3>

$oIE = _IECreate ('about:blank')

For $i = 2 To 2

    $url = 'http://chan.sankakucomplex.com/post/index?tags=weapon&page=' & $i

    _IENavigate($oIE, $url ,1)

        $oLinks = _IELinkGetCollection ($oIE)
        $iNumLinks = @extended

        For $oLink In $oLinks
            If StringInStr($oLink.href, 'post/show/') Then

                    _IENavigate($oIE, $oLink.href ,1)
                        $oImgs = _IEImgGetCollection ($oIE)
                        $iNumImg = @extended

                        For $oImg In $oImgs
                            If StringInStr($oImg.src, '/data/') Then
                                ConsoleWrite($oImg.src & @CRLF)
                            EndIf
                        Next
                EndIf
        Next
Next

_IEQuit($oIE)
Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try this

#include <IE.au3>

$oIE = _IECreate ('about:blank')

For $i = 2 To 2

    $url = 'http://chan.sankakucomplex.com/post/index?tags=weapon&page=' & $i

    _IENavigate($oIE, $url ,1)

        $oLinks = _IELinkGetCollection ($oIE)
        $iNumLinks = @extended

        For $oLink In $oLinks
            ;ConsoleWrite ( "-->-- $oLink.innertext : " & $oLink.innertext & @Crlf )
            ConsoleWrite ( "+->-- $oLink.href : " & $oLink.href & @Crlf )
            If StringInStr($oLink.href, 'post/show/') <> 0 Then

                    _IENavigate($oIE, $oLink.href ,1)
                        $oImgs = _IEImgGetCollection ($oIE)
                        $iNumImg = @extended
                        ConsoleWrite ( ">->-- $iNumImg : " & $iNumImg & @Crlf )
                        For $oImg In $oImgs
                            ConsoleWrite ( "-->-- $oImg.src : " & $oImg.src & @Crlf )
                            If StringInStr($oImg.src, '/data/') <> 0 Then
                                ConsoleWrite ( '!->-- $oImg.src : ' & $oImg.src & @CRLF)
                            EndIf

                        Next
                        ExitLoop 2
                EndIf
        Next
Next

_IEQuit($oIE)

Edit : i replace my exitloop 2

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Try this....

Nop, it still errors, look, i made the sample even smaller, it still errors when it tries to _ienavigate:

Also note that if you comment out this it willl continue looping, so it is this line that is causing the problem:

_IENavigate($oIE, $oLink.href ,1)

#include <IE.au3>
$oIE = _IECreate ('about:blank')

For $i = 2 To 2

    _IENavigate($oIE, 'http://chan.sankakucomplex.com/post/index?tags=weapon&page=' & $i, 1)

        $oLinks = _IELinkGetCollection ($oIE)
        $iNumLinks = @extended

        For $oLink In $oLinks
            If StringInStr($oLink.href, 'post/show/') <> 0 Then

                    _IENavigate($oIE, $oLink.href ,1)
                    Sleep(1000)
                    ConsoleWrite ( "+->-- $oLink.href : " & $oLink.href & @Crlf )   ; show the link in console
                EndIf
        Next
Next

_IEQuit($oIE)
Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

Nop, it still errors, look, i made the sample even smaller, it still errors when it tries to _ienavigate:

I have edit my post, re try it, there is no errors now ! Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

I have edit my post, re try it, there is no errors now ! Posted Image

your script still gives error, i dont need any exitloops there,. in any case i solved my problem. looks like autoit is bugged.

what i did was I commented out _ienavigate that was causing the problem, then, put all links into an array & then make new loop, that loops through the new array with links, inside this loop I put ienavigate, & it worked.


My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

looks like autoit is bugged.

Don't go jumping to unsubstantiated conclusions.

If I was looking for a bug in your script; the AutoIt base code wouldn't be my starting point.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

your script still gives error, i dont need any exitloops there,. in any case i solved my problem. looks like autoit is bugged.

what i did was I commented out _ienavigate that was causing the problem, then, put all links into an array & then make new loop, that loops through the new array with links, inside this loop I put ienavigate, & it worked.

here is what console return :

>Running:(3.3.6.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Administrateur\Local Settings\Temp\Test_806.au3"

+->-- $oLink.href : http://www.sankakucomplex.com/

+->-- $oLink.href : http://www.sankakucomplex.com/2011/04/17/aya-hirano-you-dont-know-anything-about-me/

+->-- $oLink.href : http://www.sankakucomplex.com/2011/04/17/33-reasons-cosplay-is-art/

+->-- $oLink.href : http://www.sankakucomplex.com/2011/04/17/henzemi-total-ahegao-anime/

+->-- $oLink.href : http://www.sankakucomplex.com/2011/04/17/bakemonogatari-mayoi-hachikuji-figma/

+->-- $oLink.href : http://www.sankakucomplex.com/2011/04/17/dororon-tentacle-rape-anime/

+->-- $oLink.href : http://chan.sankakucomplex.com/

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=weapon

+->-- $oLink.href : http://chan.sankakucomplex.com/user/login

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index

+->-- $oLink.href : http://chan.sankakucomplex.com/comment/index

+->-- $oLink.href : http://chan.sankakucomplex.com/note/index

+->-- $oLink.href : http://chan.sankakucomplex.com/artist/index?order=date

+->-- $oLink.href : http://chan.sankakucomplex.com/tag/index?order=date

+->-- $oLink.href : http://chan.sankakucomplex.com/pool/index

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=help%3Ahome

+->-- $oLink.href : http://www.sankakucomplex.com/forums/

+->-- $oLink.href : http://chan.sankakucomplex.com/static/more

+->-- $oLink.href : http://chan.sankakucomplex.com/en/post/index?tags=weapon&page=2

+->-- $oLink.href : http://chan.sankakucomplex.com/ja/post/index?tags=weapon&page=2

+->-- $oLink.href : http://chan.sankakucomplex.com/post/upload

+->-- $oLink.href : http://chan.sankakucomplex.com/help/favorites

+->-- $oLink.href : http://chan.sankakucomplex.com/help/tag_subscriptions

+->-- $oLink.href : http://chan.sankakucomplex.com/post/popular_by_day

+->-- $oLink.href : http://chan.sankakucomplex.com/post/popular_by_week

+->-- $oLink.href : http://chan.sankakucomplex.com/post/popular_by_month

+->-- $oLink.href : http://chan.sankakucomplex.com/post_tag_history/index

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=help:_post

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=help:_quick_guide

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=weapon&page=2#

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=weapon

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=weapon

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=sword

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=sword

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=long_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=long_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=solo

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=solo

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=short_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=short_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=gun

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=gun

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=touhou

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=touhou

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=blue_eyes

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=blue_eyes

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=thighhighs

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=thighhighs

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=blonde

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=blonde

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=red_eyes

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=red_eyes

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=gloves

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=gloves

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=high_res

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=high_res

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=black_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=black_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=hat

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=hat

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=oppai

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=oppai

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=boots

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=boots

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=brown_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=brown_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=skirt

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=skirt

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=blue_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=blue_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=katana

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=katana

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=smile

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=smile

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=polearm

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=polearm

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=armor

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=armor

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=silver_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=silver_hair

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=weapon&page=2#

+->-- $oLink.href : http://chan.sankakucomplex.com/wiki/show?title=weapon

+->-- $oLink.href : http://chan.sankakucomplex.com/post/index?tags=weapon&page=2#

+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012074

>->-- $iNumImg : 7

-->-- $oImg.src : http://chan.sankakustatic.com/logo.png

-->-- $oImg.src : http://img1.sankakustatic.com/tn/100/44862.jpg

-->-- $oImg.src : http://img1.sankakustatic.com/tn/100/44863.jpg

-->-- $oImg.src : http://img1.sankakustatic.com/tn/100/44818.jpg

-->-- $oImg.src : http://img1.sankakustatic.com/tn/100/44826.jpg

-->-- $oImg.src : http://img1.sankakustatic.com/tn/100/44809.jpg

-->-- $oImg.src : http://chan.sankakustatic.com/data/5d/82/5d82d99dd642c8a2702362b0fe4a7186.jpg

!->-- $oImg.src : http://chan.sankakustatic.com/data/5d/82/5d82d99dd642c8a2702362b0fe4a7186.jpg

+>15:47:42 AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 12.324

As you can see, there is no errors and _ienavigate works well, i get picture link you want...


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

This is the sample code:

#include <IE.au3>
$oIE = _IECreate ('about:blank')

For $i = 2 To 2

    _IENavigate($oIE, 'http://chan.sankakucomplex.com/post/index?tags=weapon&page=' & $i, 1)

        $oLinks = _IELinkGetCollection ($oIE)
        $iNumLinks = @extended

        For $oLink In $oLinks
            If StringInStr($oLink.href, 'post/show/') <> 0 Then
                ConsoleWrite ( "+->-- $oLink.href : " & $oLink.href & @Crlf )   ; show the link in console
;~              _IENavigate($oIE, $oLink.href ,1)
                EndIf
        Next
Next

_IEQuit($oIE)

Comsole should return the Following urls, see Code tag: And after each returned url it should navigate to that url. But if you remove the comment in front of the following line, it will error. So it must be a bug. And I believe its a bug because this is not the first time this is happening. If I write a code I get this error all the time. with almost every script i try to use _ienavigate with.

_IENavigate($oIE, $oLink.href ,1)

+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012300
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012282
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012277
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012275
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012271
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012251
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012221
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012206
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012198
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012157
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012148
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012138
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012129
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012123
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012122
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012111
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012100
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012078
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012077
+->-- $oLink.href : http://chan.sankakucomplex.com/post/show/1012076
Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

And like this ? Posted Image

#include <IE.au3>
#include <Array.au3>

Global $_UrlArray[1]
$oIE = _IECreate ('about:blank')

For $i = 2 To 2
    _IENavigate($oIE, 'http://chan.sankakucomplex.com/post/index?tags=weapon&page=' & $i, 1)
    $oLinks = _IELinkGetCollection ($oIE)
    $iNumLinks = @extended
    For $oLink In $oLinks
        If StringInStr($oLink.href, 'post/show/') <> 0 Then
            ConsoleWrite ( "+->-- $oLink.href : " & $oLink.href & @Crlf )   ; show the link in console
            _ArrayAdd ( $_UrlArray, $oLink.href )
        EndIf
    Next
Next

For $_I = 1 To UBound ( $_UrlArray ) -1
    _IENavigate ( $oIE, $_UrlArray[$_I] ,1 )
    $oImgs = _IEImgGetCollection ($oIE)
    $iNumImg = @extended
    ConsoleWrite ( ">->-- $iNumImg : " & $iNumImg & @Crlf )
    For $oImg In $oImgs
        If StringInStr($oImg.src, '/data/') <> 0 Then
            ConsoleWrite ( '!->-- $oImg.src : ' & $oImg.src & @CRLF)
        EndIf
    Next
Next
_IEQuit($oIE)
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Yes this is the exact same approach I tried. _IEnavigate does work, if u put urls into the array first.

Well at least now i know how to deal with this issue in the future.

And btw thank you for you time you took, to see to this issue.


My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Yes this is the exact same approach I tried. _IEnavigate does work, if u put urls into the array first.

Well at least now i know how to deal with this issue in the future.

And btw thank you for you time you took, to see to this issue.

Ok but i persist to say there was no bugs,

_IENavigate do that links found were not valid when loop restart

and it's normal as $oIE was changed !

PS : cool website Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

An other way more fast ! Posted Image

#include <Array.au3>
#include <Math.au3>

Global $_UrlArray[1]

ProgressOn ( "Progress Bar", "Searching Links", "", 20, 20, 16 )
$_Min = 1
$_Max = 100
For $_I = $_Min To $_Max
    $sURL = 'http://chan.sankakucomplex.com/post/index?tags=weapon&page=' & $_I
    $_Source = _GetSourceCode ( $sURL )
    If Not $_Source Then ContinueLoop
    $_ArrayLinks = StringRegExp ( $_Source, '(?s)(?i)<a href="(.*?)"', 3 )
    $_Percent = Round ( ( $_I-$_Min )*100/ ( $_Max - $_Min ) )
    $_Percent = _Max ( _Min ( $_Percent, 99 ), 1 )
    For $_J = 0 To UBound ( $_ArrayLinks ) -1
        If StringInStr ( $_ArrayLinks[$_J], 'post/show/') <> 0 Then
            _ArrayAdd ( $_UrlArray, 'http://chan.sankakucomplex.com' & $_ArrayLinks[$_J] )
        EndIf
    Next
    ProgressSet ( $_Percent, $_Percent & " %" )
Next
ProgressSet ( 100, "Done !" )
Sleep ( 2000 )
ProgressOff ( )
DirCreate ( @DesktopDir & '\Pics' )
$_Nb=1
ProgressOn ( "Progress Bar", "Downloading pictures", "", 20, 20, 16 )

For $_I = 1 To UBound ( $_UrlArray ) -1
    $_Percent = Round ( $_I*100/( UBound ( $_UrlArray ) -1 ) )
    $_Percent = _Max ( _Min ( $_Percent, 99 ), 1 )
    $_Source = _GetSourceCode ( $_UrlArray[$_I] )
    If Not $_Source Then ContinueLoop
    $_ArrayLinks = StringRegExp ( $_Source, '(?s)(?i)<a href="(.*?)"', 3 )
    For $_J = 1 To UBound ( $_ArrayLinks ) -1
        $_PicUrl =  $_ArrayLinks[$_J]
        If StringInStr ( $_PicUrl, '/data/') <> 0 Then
            $_PicName = _GetFullNameByUrl ( $_PicUrl )
            If Not FileExists ( @DesktopDir & '\Pics\' & $_PicName ) Then
                InetGet ( $_PicUrl, @DesktopDir & '\Pics\' & $_PicName, 9, 0 )
                $_Nb=$_Nb+1
            EndIf
            ProgressSet ( $_Percent, $_Percent & " %" & @CRLF & $_PicName )
        EndIf
    Next
Next

ProgressSet ( 100, "Done !" )
Sleep ( 2000 )
ProgressOff ( )
Exit

Func _GetSourceCode ( $_Url )
    $_InetRead = InetRead ( $_Url )
    If Not @Error Then
        $_BinaryToString = BinaryToString ( $_InetRead )
        If Not @Error Then Return $_BinaryToString
    EndIf
    Return 0
EndFunc ;==> _GetSourceCode ( )

Func _GetFullNameByUrl ( $_FileUrl )
    $_FileName = StringSplit ( $_FileUrl, '/' )
    If Not @error Then
        Return $_FileName[$_FileName[0]]
    Else
        Return 0
    EndIf
EndFunc ;==> _GetFullNameByUrl ( )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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