EricBBB Posted March 30, 2008 Share 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... ? Link to comment Share on other sites More sharing options...
Swift Posted March 30, 2008 Share Posted March 30, 2008 MouseGetPos() Returns an Array, so try this. msgbox (0, "Your mission coords are " & $mission[0] & " " & $mission[1]) Link to comment Share on other sites More sharing options...
EricBBB Posted March 30, 2008 Author Share Posted March 30, 2008 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]) ? Link to comment Share on other sites More sharing options...
PumpkinJuice Posted March 30, 2008 Share Posted March 30, 2008 Yes. My name is Leilani Swaey! :) Link to comment Share on other sites More sharing options...
EricBBB Posted March 30, 2008 Author Share 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]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ Link to comment Share on other sites More sharing options...
Swift Posted March 30, 2008 Share 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]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^?!?!? Link to comment Share on other sites More sharing options...
NELyon Posted March 30, 2008 Share Posted March 30, 2008 You are only giving 2 parameters. MsgBox requires 3 parameters. Flag Title body Link to comment Share on other sites More sharing options...
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