Sign in to follow this  
Followers 0
Lambort

Copying specific part of text string in IE?

3 posts in this topic

#1 ·  Posted (edited)

Let's say we have some text in an IE browser that says:

{"isLogin":true,"gameId":"u_gbound","isValid":true,"launchScript":"hangame://http://gstr.ijjimax.com:10000/?cksum=830&k22e=U_&kpw=1&enc=y&pub10e=514&cksm=830","isUnder":false}

How would I get autoit to just copy the bolded text. I need it to copy the text after "LaunchScript":" but before &pub10e

I'm not even sure if this can be done in autoit..

-Alyssa

Edited by Lambort

Share this post


Link to post
Share on other sites



You can try this:

http://www.autoitscript.com/forum/index.ph...c=35090&hl= If you know the ending of the source to find.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You can try this:

http://www.autoitscript.com/forum/index.ph...c=35090&hl= If you know the ending of the source to find.

That looks really nice, but I'm new to autoit and that is very hard for me to follow. However, I will try with it some more and see if I can get what I want accomplished. Thanks

Edit: Yes, I do know both the beginning and end of the string.

Beginning: Launchscript":"

End: &pub10e

Or is it supposed to be the beginning and end of the exact text I want:

Beginning: hangame:

End: 1&enc=y

Edited by Lambort

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