Download autohotkey (google it, I can't post the link).
and use this script (rightclick on the icon and select "Edit this script"):
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
$[::
Loop
{
if GetKeyState("]", "P")
break
Send {LControl down}
Sleep, 10
Send {x down}
Sleep, 10
Send {x up}
Sleep, 10
Send {x down}
Sleep, 10
Send {x up}
Sleep, 10
Send {x down}
Sleep, 10
Send {x up}
Sleep, 10
Send {LControl up}
}
return
Note that you must run AHK as administrator for it to work with Warband on Windows 7 (with UAC enabled).