The next production of the Hampton Theatre Company in Quogue is “An Act of the Imagination,” a mystery by Bernard Slade, which will open next Thursday and run through April 9. The suspenseful play’s protagonist is Arthur Putnam, the writer of 27 mystery novels, who has created his first romance.