In this simple example script I would like to do the following:
Key 1::
- Function 1
- specific commands for key 1
- Function 2
Key 2::
- Function 1
- specific commands for key 2
- Function 2
Key 3::
- Function 1
- specific commands for key 3
- Function 2
Function 1 and Function 2 contain commands which are valid for all keys.
The specific commands are different from key to key.
It could be something like:
Function 1: Write introduction
key x: write specific text
Function 2: write concluding part
Of course this works, but I'm wondering if I can merge Function 1 and 2 but define that a key must be pressed
to continue with the function.
The example code:
Code: Select all
1::
Function1()
Send first
Function2()
return
2::
Function1()
Send second
Function2()
return
3::
Function1()
Send third
Function2()
return
Function1()
{
Send This is the
Sleep, 5
Send {Space}
}
Function2()
{
Send {Space}
Sleep, 5
Send test.
}
Regards