Of course...you would only need to use more functions and hotkeys. If you want two macros for example, you could use:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.2.12.1
Author: www.d3portal.com
Name: Simple Macro Tutorial
#ce ----------------------------------------------------------------------------
Opt('SendKeyDelay', 205) ; Default is 5
Opt('SendKeyDownDelay', 195) ; Default is 5
Opt('MouseClickDownDelay', 35) ;Default is 10
HotKeySet("{F11}","cast")
HotKeySet("{F12}","function2")
HotKeySet("{F10}","end")
While 1
Sleep(100) ; I put a sleep here so our script doesn't use 100% of the CPU.
WEnd
Func cast()
Send("W")
Send("{F6}")
MouseClick("Right")
MouseClick("Right")
Sleep(100)
Send("{F7}")
MouseClick("Right")
MouseClick("Right")
Sleep(300)
Send("W")
Sleep(200)
Send("{F5}")
MouseClick("Right")
MouseClick("Right")
Sleep(100)
Send("{F2}")
EndFunc
Func function2()
;Some code here
EndFunc
Func end()
Exit
EndFunc
There you go