SAN FRANCISCO -- Jamey Wright stood in the dugout and watched as the player hitting for him delivered the kind of timely hit the San Francisco Giants have been so desperately needing.
It seemed everybody was a bit more fired up following a lengthy team meeting.
Moises Alou's go-ahead two-run double in the sixth helped Wright win for the first time in nearly two months, and the Giants beat the Milwaukee Brewers 4-3 Tuesday night to end a three-game losing streak.
"I know what the last month and a half has brought for me," Wright said. "I was anxious to get out there and give the team a chance to win. Hopefully this will give us some confidence."
Wright (6-8) snapped an eight-start winless stretch with his first victory since he beat the St. Louis Cardinals on May 22, going 0-5 during that span.
Earlier in the day, Giants players held a sit-down session to discuss their recent struggles that included a 10-1 loss to the Brewers on Monday night.
"It's not a secret what we look like out there," shortstop Omar Vizquel said. "We've got to pick up the pace a little bit."
Giants slugger Barry Bonds lined an RBI double off the wall in right-center in the third, drawing oohs and aahs from fans who thought the swing was good for the slugger's 722nd career home run. Right fielder Geoff Jenkins appeared to be in position for a catch but couldn't make the play.
Bonds, who could be indicted by a grand jury on perjury and tax evasion charges this week, also struck out swinging and popped out twice. He appeared relaxed before the game, joking with his teammates as they warmed up before batting practice.
Fans chanted "Barry! Barry!" when he batted in the fifth and popped out to shortstop.
The Giants aren't worried about any potential distractions surrounding their star player.
"It's not a concern for us," Wright said. "We're professional, veteran guys."
Rookie Prince Fielder had his third straight three-hit game and drove in a run for Milwaukee, and Tomo Ohka pitched five solid innings in his return to the rotation. It was the right-hander's first start since May 1, when he left a game against Houston after partially tearing his right rotator cuff.
"I thought he pitched great," Brewers manager Ned Yost said. "He was back like he hadn't missed a beat."
With a runner on and one out in the sixth, Mark Sweeney just missed a home run that would have put the Giants ahead when the ball sailed just to the right of the right-field foul pole on its way into McCovey Cove. He singled moments later to move Pedro Feliz to third.
After Eliezer Alfonzo struck out, Alou hit for Wright and lined a double against Geremi Gonzalez (2-1) off the wall in center.
"Tonight is a good start for us," Sweeney said. "Hopefully we can get this to snowball in the right direction."
The Brewers took a 1-0 lead in the first on Fielder's RBI single that followed two stolen bases by Rickie Weeks. They scored on an error for their second run in the fourth that gave them a 3-2 lead.
Giants center fielder Randy Winn made a wild throw home on Bill Hall's RBI single. The ball bounced off Hall's bat, then Wright dropped the ball while backing up the plate.
Wright allowed eight hits and struck out five in six innings. Armando Benitez worked the ninth for his 12th save in 16 chances.
Vizquel helped Wright record two outs on the first three pitches of the third, a liner and groundout. In all, it was a five-pitch inning after Jenkins grounded out to first to end it.
Earlier Tuesday, the Brewers received the disappointing news that shortstop J.J. Hardy will have season-ending surgery on his injured right ankle as soon as Thursday.
The Brewers placed Hardy on the disabled list May 17 after he collided at home plate with Philadelphia catcher Sal Fasano. The sprain healed, but Hardy started having trouble with a tendon in the ankle.
Wright is 3-4 against his former team. ... Weeks stole his 18th and 19th bases of the year in the first. ... The Brewers optioned LHP Zach Jackson, Monday's winning pitcher, to Triple-A Nashville to make room for Ohka. ... Vizquel got his 2,400th hit when he singled in the third, good for 98th place on baseball's career list. ... Giants 2B Ray Durham, who left Sunday's game against Pittsburgh in the sixth inning with a jammed right shoulder and missed Monday's game, returned to the starting lineup. "Do I feel good? Good enough," he said. ... Fielder has 10 three-hit games. ... The Giants earned their 20th comeback win of the year.