The typing in command by hand can be quite hard. It's best to use a software like HotKey or AutoIT.
On vista it will always say the program stopped working.
As for your problem with rankings this could be an issue with your table. Perhaps incorrect formats or field names?