Just out of curiosity what is inside your bat file? I'm also looking to create a one button rotate from landscape to portrait and wondering how you went about it.
just the command line that tells the pololu simple motor controller to move. (last number is negative for opposite direction)
@echo off
smccmd --speed -3200
The commands don't work directly in ahk. see below
I downloaded a pdf booklet about using ahk with the pololu, but haven't looked at it.
There might be a way to do it directly from the ahk script.
I'm very happy with the simple motor controller. (thanks TopJimmyCooks!)
It's USB and should work with new operating systems for years to come.
Only hiccup I had was understanding how to set up the limit switches in the software.
Even with that, I had it installed (which involved pulling and reinstalling the monitor mount in my cab)
and my monitor controlled by Mala set up within a couple hours.
EDIT: a quick look at the Pololu ahk guide and it turns out that the commands can be run directly, just need to put "run" in front of them (no comma)
Haven't tested it, but it should go like this.....
m:: run smccmd --speed -3200,,Hide
n:: run smccmd --speed 3200,,Hide
return
CORRECTED: Per Griffinddd's post below (In case anyone is just glancing through the thread and misses it)