BitByteBit Posted September 30, 2009 Share Posted September 30, 2009 (edited) So I have several Functions, when run they perform a series of mouse clicks. I want to write one function that will call other functions, once the first function is run it should move onto the next. I need to be able to call function "1" without it moving on to "2". However "Total" needs to run both. Something a little like this Func 1 () MouseClick("Left",410,309,1,0) End Func Func 2 () MouseClick("Left",420,410,1,0) End Func Func Total () 1() 2() End Func If I were to make Function "1" and "2" public functions, would the function "Total" run "1" then "2"? Edited September 30, 2009 by BitByteBit Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 30, 2009 Share Posted September 30, 2009 I think it should work as expected. Try it. Replace the MouseClick's with MsgBox's. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
99ojo Posted September 30, 2009 Share Posted September 30, 2009 So I have several Functions, when run they perform a series of mouse clicks. I want to write one function that will call other functions, once the first function is run it should move onto the next. I need to be able to call function "1" without it moving on to "2". However "Total" needs to run both. Something a little like this Func 1 () MouseClick("Left",410,309,1,0) End Func Func 2 () MouseClick("Left",420,410,1,0) End Func Func Total () 1() 2() End Func If I were to make Function "1" and "2" public functions, would the function "Total" run "1" then "2"? Hi, without changing anything: If you call function Total (), 1st function 1 is called and then function 2. Total () Func 1 () MouseClick("Left",410,309,1,0) End Func Func 2 () MouseClick("Left",420,410,1,0) End Func Func Total () 1() 2() End Func would be the same as 1 () 2 () Func 1 () MouseClick("Left",410,309,1,0) End Func Func 2 () MouseClick("Left",420,410,1,0) End Func Link to comment Share on other sites More sharing options...
BitByteBit Posted September 30, 2009 Author Share Posted September 30, 2009 Thank you very much for your fast reply, this has answered my question. 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