Jump to content
Sign in to follow this  

Copy entire text after some defined character without mouse

Recommended Posts


Hello everyone!

I have problem like this.

Supposed that i have a url: abcde.com/?id=123 at the address bar.

I want to copy only the text AFTER "?id" WITHOUT mouse.

Now, i'm using MouseClickDrag but it will be uncomfortable when i want to use mouse or make my script works in more than two windows at the same time.

Any idea?

Share this post

Link to post
Share on other sites

Something like this ?

#include <String.au3>
#include <IE.au3>

$oIE = _IECreate ( "http://www.autoitscript.com/forum/forum/2-general-help-and-support/" )
$_addressbar = _IEPropertyGet ( $oIE, "locationurl" )
ConsoleWrite ( "$_addressbar : " & $_addressbar & @Crlf )
$_String = _StringBetween ( $_addressbar, 'forum/2-', '/' )
ConsoleWrite ( "$_String[0] : " & $_String[0] & @Crlf )
_IEQuit ( $oIE )

AutoIt 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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.