Jump to content

Geting the URL from the Browser

Recommended Posts

Hallo !

Iam new in Auto-it , and iam trying to build a script that gives you the URL.

and i did something like this:

$name = WinGetText("[CLASS:IEFrame]","")

but its gives me all the Visible Text :-\

and its not working in Chrome :-\

and Ideas how can i get the Url?

Thanks Alot....!

Link to post
Share on other sites

Ok i found a way to do this...

here the code if anyone need...

dim $count;
  $name = WinGetText("[CLASS:IEFrame]","")
  $theStr = StringSplit($name, "") ; Create an array
     $theNewStr = ""
For $i = 12 to UBound($theStr-1) Step 1
  if $theStr[$i] == "פ" Then
for $j = 12 to $i-1
  $theNewStr = $theNewStr & $theStr[$j]
  MsgBox(0, "Result", $theNewStr)
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...