Jump to content

Recommended Posts

Posted

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?

Posted

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 3.3.18.0 X86 - SciTE 5.5.7WIN 11 24H2 X64 - Other Examples Scripts

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
×
×
  • Create New...