01-11-2015, 07:55 AM
Quote:if it's a good idea to create functions with have "steps" of a macroYes, if you like it. If these functions will be used only in that same macro, it is better to use sub-functions. Else create new function through menu File -> New.
...
And instead of writing a big long list which the macro runs through, you could split up the list into separate functions? So instead of writing a long list, you would put each step of the macro within a function then the main macro would consist of only those functions perhaps.
Macro Macro2479
if sub.isAtHome(5 "k")
,sub.step2
#sub isAtHome
function param1 str'param2
;...
#sub step2
;...
Quote:how you can use if and else with finding an image on the screenIn dialog "Find image" uncheck "Error if not found". Then the dialog will create code with if.
Macro Macro2478
Then you can add more code, and combine several scan in if/else.
Macro Macro2478