I'm having this same problem. I find a stack of stone bricks that sells for 10g (or 10s each). I put the line
buyFromAuctionHouse("Stone brick", 2000, 1)
so as to bid on any stone bricks that sell for 20s each or less, but it only flips through the pages and never bids. Is it because...