Maybe an example might help. Lets use prayer.
"We should not think of prayer as changing God’s mind or changing events. God knows from eternity everything that will transpire in time, so that prayers do not literally change anything. For God’s foreknowledge already takes our prayers into account. God’s foreknowledge is chronologically prior to the prayers we offer, but the prayers are logically prior to what God foreknows. If we were to pray differently or fail to pray, God would not be caught by surprise but have already factored that into His providential plan.
So then how do our prayers make a difference if they do not change things? Precisely by being factored by God into which world He has chosen to create! Were we not to pray, then perhaps God would not have done such-and-such. Because God knew that you would pray for a certain thing, God has so arranged the world that that thing happens. Had you not prayed, God would have created a different world instead. So through His middle knowledge of how we would pray in different circumstances, our prayers make a tremendous difference in which world is actual."
By. William Lane Craig
Since my words are never convincing, maybe his will be.