Shortstop Nick McCoola led off the ninth with a walk and advanced to second on Derek Schermerhorn's base hit to left. He then moved to third on Danny Jackson's fly ball to right before Daniels uncorked a wild pitch that bounced past catcher Matt Clarkson.
Wichita State improved to 28-10 with the win while Oklahoma State fell to 24-14.
The Shockers scored their first run in the second inning on a passed ball that allowed Brandon Hall to score from third base.
The Cowboys took advantage of a fielding error by rightfielder Quin Vinse in the sixth that allowed Jeff Parrish to reach second base and tied the game on Ty Wright's RBI single to centerfield.
Adam Daniels (6-3) took the loss in his first complete game of the year. He allowed two runs, one earned, on seven hits with four strikeouts and three walks.
Reliever Jared Simon (2-0) picked up the win with two innings of one-hit scoreless relief. Second baseman Damon Sublett came in to close out the game in the ninth and had a 1-2-3 inning to pick up his third save of the year.
Ty Wright and Justin Colbert led OSU with two hits each, while Derek Schermerhorn led WSU with two hits on the night.
Oklahoma State will be back in action this weekend as Big 12 leader Missouri comes to town for a three-game set. The teams will meet on Friday at 7 p.m., Saturday at 2 p.m. and Sunday at 1 p.m.
Shockers Edge Cowboys
GoPokes Top Stories
One-on-One With Mason RudolphMason Rudolph watched from the sideline two years ago when West Virginia came to Stillwater and spoiled Homecoming. The Cowboys quarterback is hoping to make it a long trip back to…
GoPokesYesterday at 5:00 PM
Cowboy Spotlight: Jordan SternsAustyn Iven visits with senior free safety Jordan Sterns, who is looking forward to Saturday's Homecoming game against West Virginia.
GoPokesYesterday at 9:01 AM
Taylor, Maile Need To Create Havoc SaturdayDefensive tackles Vincent Taylor and Motekiai Maile come from different backgrounds but team up to create havoc for opposing offenses.
GoPokesYesterday at 3:24 AM