God is not tricked. There is no restriction against cooking on Shabbat. There are restrictions against eg. making a fire and building. If you can somehow cook without doing any of those things, then there is nothing wrong with it.
I was talking about this: "when touching a button the effect is delayed by a few seconds so you're not technically getting any result from touching the button while still getting the effect from touching the button."
The concept is called Grama and its not universally accepted for these ovens and the like. For the reason you stated, if something is going to happen, just we are not 100% sure exactly when, then some don't consider it grama.
Grama really only helps you for rabbinically prohibited actions. (i.e. man made law, man made loophole). Not law that is considered biblical in nature.
Most people who wonder about all the "loopholes" don't realize that its talking about what jews considered rabbinic law.
to make an analogy, congress can't legislate a loophole around the constitution, they can legislate loopholes around their own laws.