You mean this?
if key.space = true
var.loop = true
endif
while var.loop = true
wait 5 s
press key.W
wait .5 s
release key.W
wait 5 s
press key.S
wait .5 s
release key.S
wait 5 s
mouse.DirectInputX = mouse.DirectInputX + 100
endif
If you put that into GlovePIE and run it, when you hit the space bar, it will hit W and then S every 10 seconds for half a second each, then move your mouse to the right a bit, then wait another 5, etc.