Jump to content

Send Command e.g. DOWN $var times


Recommended Posts

Hi,

i am possibly a idiot, but i can not figure out how the variable has to be used in AutoIt3.

This is AutoIt2 = Send, {DOWN %var%}

And what the hell needs AutoIt3 ? Send("{DOWN $var}") I think a tried any combination, i give up.

AutoIt3 is maybe or for sure more powerful, but it is sometimes a agony.

Thanks for help.

dr_snuggles

Link to comment
Share on other sites

Hi,

i am possibly a idiot, but i can not figure out how the variable has to be used in AutoIt3.

This is AutoIt2 = Send, {DOWN %var%}

And what the hell needs AutoIt3 ? Send("{DOWN $var}") I think a tried any combination, i give up.

AutoIt3 is maybe or for sure more powerful, but it is sometimes a agony.

Thanks for help.

dr_snuggles

Try:

Send("{DOWN}" & $var)

or

Send("{DOWN}")

Send($var)

Link to comment
Share on other sites

And what the hell needs AutoIt3 ? Send("{DOWN $var}") I think a tried any combination, i give up.

AutoIt3 is maybe or for sure more powerful, but it is sometimes a agony.

The helpfile has the answers on the Send page.

If you wish to use a variable for the count, try

$n = 4

Send("+{TAB " & $n & "}")

So yours would be

Send("{DOWN" & $var & "}")

:whistle:

Link to comment
Share on other sites

WOW, help so fast... I am speechless !

Thanks !!!

But you have to admit, this is a horrible AutoIt3 joke. It was so simple in AutoIt2, and now... jesus.

Send("+{TAB " & $n & "}")

A For-Next Loop would be a workaround, but this is a one line job, so, thanks again.

Link to comment
Share on other sites

But you have to admit, this is a horrible AutoIt3 joke. It was so simple in AutoIt2, and now... jesus.

It is still simple. You just need time to adjust to the new syntax. Once you do start feeling comfortable using AutoIt3, then you will find it easier then using AutoIt2 as AutoIt3 is so much more flexible with it's language structure.

:whistle:

Edit:

Grammer repair

Edited by MHz
Link to comment
Share on other sites

It is still simple. You just need time to adjust to the new syntax. Once you do start feeling comfortable using AutoIt3, then you will find it easier the using AutoIt2 as AutoIt3 is so much more flexible with it's language structure.

:whistle:

You are right, surely, but if one can do it, each program is simple.

AutoIt2 was "naturally" logical. For non-professionals like me it was perfect. After three months without AutoIt there was no problem to write a little helper immediately.

I promise to learn. Because AutoIt3 is of course better/more powerfull.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...