zxtnt09

For each line in GUICtrlCreateEdit

4 posts in this topic

#1 ·  Posted (edited)

Hi guys,

how can i use something like this :

$Me = GUICtrlCreateEdit("", 5, 5, 200, 200)
$R = GUICtrlRead($Me)
ControlSend("Untitled - Notepad","",15,"Hello " & $R & " bye")

It's Meant for each line in "GUICtrlCreateEdit" we see some thing like this : 

Line 1 > Hello Sarah bye

Line 2 > Hello John bye

Line 3 > Hello X bye

Line 4 > Hello Y bye

6oln46.png

And in output we see : 

16c0sh5.png

- For every line in  our "CreateEdit" 

Thanks and sorry for my bad english

Edited by zxtnt09
output

Share this post


Link to post
Share on other sites



Use StringSplit with the newline character as the delimiter.

That will give you an array of lines.

Loop through it.

 

can you please give me some little code ? :( 

i can not understand without code :'(

Share this post


Link to post
Share on other sites

Sure, look at StringSplit in the help file. Has a wonderful "little code" you can review.


When you're dead, you don't know you're dead - it's only difficult for those that know you. It's the same way when you're stupid...

My Scripts: SCCM UDFInclude Source with Compiled Script, Windows Firewall UDF

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