It worked perfectly for me. Did you change the name of your function and function calls from "FileCreateDir" to "FileCreateMyDir"?
It could be that your system is responding too slowly to capture the folder name since it is only getting the last 3 chars of "ResourCES".
Try:
Code: Select all
SendMode Input
^NumPad7::
FileCreateMyDir("Assets")
FileCreateMyDir("Data")
FileCreateMyDir("Resources")
FileCreateMyDir("Temp")
Return
FileCreateMyDir(FolderName) {
Send, ^+n
Sleep, 500
Send, %FolderName%
Sleep, 500
Send, {Enter}
}
You could also play with the value of the first Sleep command and you probably don't need the second Sleep. You might also try adding Sleeps between your 4 function calls as well (or just before the first Send instead). I honestly think it is just a timing issue.
Russ