Sign in to follow this  
Followers 0
Slythfox

Something's seriously wrong here

19 posts in this topic

#1 ·  Posted (edited)

Using october 20th beta (3.2.1.11)

Test this script. Note observations. You'll notice somethings seriously wrong.

And this doesn't just happen only with the MouseClick function...

$newkey = '"left", 0, 500, 2, 0'
$newkey2 = '"left" 0 500 2 0'

MsgBox(0, "Variable test 1:", $newkey)
MouseClick($newkey)

$parts_array = StringSplit($newkey2, " ")
MsgBox(0, "Variable test 2:", $parts_array[1] & ", " & $parts_array[2] & ", " & $parts_array[3] & ", " & $parts_array[4] & ", " & $parts_array[5])
MouseClick($parts_array[1] & ", " & $parts_array[2] & ", " & $parts_array[3] & ", " & $parts_array[4] & ", " & $parts_array[5])

MsgBox(0, 'Normal - will work.', '"left", 100, 100, 1, 0')
MouseClick("left", 100, 100, 1, 0)
I've spent hours trying to figure out what is wrong with this, messing with other functions, messing with the variables. This sucks. Edited by Slythfox

Share this post


Link to post
Share on other sites



You wouldn't have a problem if you didn't write stupid code. Moving to support where this belongs.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

you need to create the array

either

_ArrayCreate ()

or

dim $array[5] = [8, 4, 5, 9, 1]

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

@Valuater, That doesn't solve the first one. And therefor doesn't solve the second case, since they both involve variables. :lmao:

@Valik, not really stupid for the script I need it for. And I'd still consider this a bug, as it should work.

Edit: I think I may have figured it out. Commas need to be outside of the quotes. (But I have to go, I don't have time to test it. :ph34r:)

Edited by Slythfox

Share this post


Link to post
Share on other sites

you need to create the array

either

_ArrayCreate ()

or

dim $array[5] = [8, 4, 5, 9, 1]

8)

i like the skin of your avatar :lmao:

MsgBox(0, "Steven Seagal", "Les poches bourrées de Pesos")

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

i like the skin of your avatar :lmao:

Thanks!

there are many to choose from

see

XSkin.au3

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

The code is stupid. Period. You're creating a string and passing a string and expecting it to magically be expanded to function arguments? I don't think so. And if you need that functionality for a script, then the script is ill-designed. It's a stupid idea, it should not work, it does not work, it is not a bug.

Share this post


Link to post
Share on other sites

@slythfox, I've written something for you before, and not so much as a thanks... I'll try this one more time so you can see how to properly use something. You are not qualified to determine a bug, and things aren't neccessarily a bug, because you think your logic is right.

Compare yours to mine, and you'll see where your logic is flawed.

$sKey = '"left",0,500,2,0'
_MyClick($sKey)

Func _MyClick($sKey)
    Return Execute('MouseClick(' & $sKey & ')')
EndFuncoÝ÷ Ù«­¢+ØÀÌØíÍ-äôÌäí±Ð°À°ÔÀÀ°È°ÀÌäì)}5å
±¥­MÁ±¥Ð ÀÌØíÍ-ä¤()Õ¹}5å
±¥­MÁ±¥Ð ÀÌØíÍ-ä¤(%1½°ÀÌØíMÁ±¥ÐôMÑÉ¥¹MÁ±¥Ð ÀÌØíÍ-ä°Ìäì°Ìäì¤(%%U ½Õ¹ ÀÌØíMÁ±¥Ð¤´ÄôÔQ¡¸|($%IÑÕɸ5½ÕÍ
±¥¬ ÀÌØíMÁ±¥ÑlÅt°ÀÌØíMÁ±¥ÑlÉt°ÀÌØíMÁ±¥ÑlÍt°ÀÌØíMÁ±¥ÑlÑt°ÀÌØíMÁ±¥ÑlÕt¤(%IÑÕɸMÑÉÉ½È Ä°À°À¤)¹Õ¹

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Wow, I have never gotten double-pwned (a word I just made up, here meaning, getting "pwned" by 2 well-known members of the AutoIt community), nor seen it! That was really great!


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites

Wow, I have never gotten double-pwned (a word I just made up, here meaning, getting "pwned" by 2 well-known members of the AutoIt community), nor seen it! That was really great!

everyone gets "pwned" by valik sometime or another

*hides*

http://www.autoitscript.com/fileman/users/gafrosts_wife/Emoticons/sofa.gif


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Lol.

Now I feel stupid. I thought it was a bug at first. Looks like my edit from my last post was right. Programmers do stupid things when programmers forget to eat.

everyone gets "pwned" by valik sometime or another

Yeah, especially with his turtle. Edited by Slythfox

Share this post


Link to post
Share on other sites

LOL I completely missed the turtle pwn. That is hilarious.


Who else would I be?

Share this post


Link to post
Share on other sites

Looks like you still have to wait. :whistle:

No doubt, no worries though, I'll not help again ;).

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

Lol.

Now I feel stupid. I thought it was a bug at first. Looks like my edit from my last post was right. Programmers do stupid things when programmers forget to eat.

Yeah, especially with his turtle.

i don't get it...lol

edit: nvm. *kncks on own head* i dunno why i didnt get that at first lol

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

The turtle pwn was indeed very hilarious, I can't get over it!


What goes around comes around... Payback's a bitch.

Share this post


Link to post
Share on other sites

Too bad his turtle pwn also pwns Autoit. :whistle: Think about it.

Share this post


Link to post
Share on other sites

That just made best Valik quotes i think :whistle:

Share this post


Link to post
Share on other sites

Too bad his turtle pwn also pwns Autoit. :whistle: Think about it.

?

how?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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