Sign in to follow this  
Followers 0
johnynardi

Geting the URL from the Browser

2 posts in this topic

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]","")
  msgbox(0,"",""&$name)

but its gives me all the Visible Text :-\

and its not working in Chrome :-\

and Ideas how can i get the Url?

Thanks Alot....!

Share this post


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
   ExitLoop
  endIf
  
Next
for $j = 12 to $i-1
  $theNewStr = $theNewStr & $theStr[$j]
Next
  MsgBox(0, "Result", $theNewStr)

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