Jump to content

Syntax trouble


Recommended Posts

Guest KaymeeraUnleashed
Posted (edited)

Like to say hi and give y'all a nice stupid question to make your day. Allow me to say that I'm very fond of AutoIt V2, but I soon recognized that it's become obsolete compared to the new OS version, though I do miss the days when you could just put a % next to a variable and get on with your life.

So here goes:

SplashTextOn("blaablaa", --'&@desktopheight * & $2'--, 100, 100, -1, -1, 1, "", "", "")

Basically I can't figure out the syntax for the variables in relation to operations, here I'm trying to multiply (*) the @desktopheight macro with variable $2 and failing miserably, put [--] around the code. I'm aware its got to do with those "&" but I'm not sure how to set it. Help?

PS: This is like the fifth time I try to post this, nothing's working for me today I tell ya...

Edited by KaymeeraUnleashed
Posted (edited)

SplashTextOn("blaablaa", '---' & @desktopheight * $2 & '----', 100, 100, -1, -1, 1, "", "", "")

Edited by ezzetabi
Guest KaymeeraUnleashed
Posted (edited)

Not happening...

Strangely enough if i paste in what you wrote, I get the needed result ... almost. Can you point out what I'm doing wrong??

Edited by KaymeeraUnleashed
Posted

I don't see the problem here.

for $2 = 1 to 5
SplashTextOn("blaablaa", '---' & @desktopheight * $2 & '----', 100, 100, -1, -1, 1, "", "", "")
sleep(2000)
next

AutoIt3, the MACGYVER Pocket Knife for computers.

Posted

Not happening...

Strangely enough if i paste in what you wrote, I get the needed result ... almost. Can you point out what I'm doing wrong??

<{POST_SNAPBACK}>

Maybe you are wanting SplashImageOn instead of SplashTextOn. Just guessing with your attached pic?

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
  • Recently Browsing   0 members

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