Jump to content

Recommended Posts

Posted

hey guys, anyone knows how to write a string between two other strings like for example:

To write AbzhdfX_d between ElseIf $sVideoLink1 = "   and   " then  _IEAction ($oA, "click")

Simpler: to write a between b and ,but automatically

Posted

Amazing way, jguinch, thank you ;) :D 

Taking advantage of you reading this i'd like to ask about a loop problem i have:

i want to write several line codes that include $sVideoLink1 and everytime i want to add one i want to make its last number raise 1.. Like this:

$sVideoLink1

$sVideoLink2

$sVideoLink3

$sVideoLink4

sorry for going out of contest but i thought you might know the solution

 

 

Posted

What you need is an array with a loop. I know you're learning the coding with AutoIt, but loops and arrays are part of the learning.

Look at the help file in Language Reference / Loop Statements

Example :

Local $sVideoLink = ["link1", "link2", "link3", "link4", "link5"]

For $i = 0 To UBound($sVideoLink) - 1
    MsgBox(0, "", $sVideoLink[$i] )
Next

 

Posted (edited)

Again thanks my friend, you have a been a great help for me so far...

i'll get to know with loops and arrays because i have to combine the two part of codes that you wrote....

thanks for letting me count on you

Edited by SugarBall

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...