I'm looking for cracking combination locks script/macro. I don't know how to do it but i have an idea about it.

When we press the F key once, the number column changes. Also, the number changes when we hold down the F key.

I'm looking for a macro / script that will automatically repeat this from 0001 to 9999, can someone actually do this?