If the window will open at the top also, place the fan up there blowing out. Open the window at the bottom only slightly to allow some cooler air in, but making the fan push more hot air out, than the window opening is letting cool air in.
As the hottest air is also the highest in the room, this scenario will have the best cooling effect.
If there is another window in the room, open it at the bottom instead of the one with the fan in it.
Be sure to run it all night long and turn it off early in the morning. Do not turn it back on until the air in the room starts to get hotter than the outside air.