Jump to content
Sign in to follow this  
BitByteBit

Functions Help

Recommended Posts

BitByteBit

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 by BitByteBit

Share this post


Link to post
Share on other sites
somdcomputerguy

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.

Share this post


Link to post
Share on other sites
99ojo

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

Share this post


Link to post
Share on other sites
BitByteBit

Thank you very much for your fast reply, this has answered my question.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.