EricBBB Posted March 30, 2008 Posted March 30, 2008 C:\Users\Eric\Desktop\My bot\Wobotfunc.au3(13,51) : ERROR: MsgBox() [built-in] called with wrong number of args. msgbox (0, "Your mission coords are " & $mission) $mission is a var that i previously got from getmousepos($mission) so... ?
Swift Posted March 30, 2008 Posted March 30, 2008 MouseGetPos() Returns an Array, so try this. msgbox (0, "Your mission coords are " & $mission[0] & " " & $mission[1])
EricBBB Posted March 30, 2008 Author Posted March 30, 2008 R6V2 said: MouseGetPos() Returns an Array, so try this. msgbox (0, "Your mission coords are " & $mission[0] & " " & $mission[1]) so does that mean for everything that i have mouse coordinates on, liike if i wanted to call $mission later id need to do something like mouseclick( "left" , $mission[0], $mission[1]) ?
EricBBB Posted March 30, 2008 Author Posted March 30, 2008 C:\Users\Eric\Desktop\My bot\Wobotfunc.au3(13,74) : ERROR: MsgBox() [built-in] called with wrong number of args. msgbox (0, "Your mission coords are " & $mission[0] & " " & $mission[1]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Swift Posted March 30, 2008 Posted March 30, 2008 EricBBB said: C:\Users\Eric\Desktop\My bot\Wobotfunc.au3(13,74) : ERROR: MsgBox() [built-in] called with wrong number of args. msgbox (0, "Your mission coords are " & $mission[0] & " " & $mission[1]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^?!?!?
NELyon Posted March 30, 2008 Posted March 30, 2008 You are only giving 2 parameters. MsgBox requires 3 parameters. Flag Title body
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now