Sign in to follow this  
Followers 0
jueki

How to ignore some words while reaidng strings from an object

3 posts in this topic

#1 ·  Posted (edited)

first of all, i'm sorry if my english is not well enough for you to understand, as i'm not from the US.

now, here is my question - please take a look at the following picture.

Posted Image

is there a way to ignore the "Your API Key is: "? i just want to have the 12345-abcd :D

currently, i use this piece of code to get the text from the object, but it only gets the whole line :P

$result = ControlGetText("API","", "WindowsForms10.EDIT.app.0.378734a1")

i hope you can help me with this, thanks in advance for trying ;)

edit: oops, can't fix the "reading" typo in the topic title

Edited by jueki

Share this post


Link to post
Share on other sites



StringTrimLeft($string, 17)

Share this post


Link to post
Share on other sites

thanks so much, i got it to work now, exactly what i was looking for!

$API = ControlGetText ("API","", "WindowsForms10.EDIT.app.0.378734a1")
$result = StringTrimLeft($var, 17)
MsgBox(0,"Test",$result)

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