Jump to content

Functions Help


BitByteBit
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...