I finally managed to get Emudriver and Groovymame working.

Most of the games seems fine, but the screen on certain games are somewhat off-screen. It seems like for most of it, the screen is too far to the right, and a bit too low. So I have a black part on the left and on top. I've seen from other posts that you need to copy the modeline that you get from OSD and use that in you Mame ini. When I try that, the screen moves even further to the right.
This is what I get from OSD on my Desktop resolution when I move it so that it's horizontally flush to the left.
modeline "768x512_50 15.63KHz 50.02Hz" 15.63 768 776 848 1000 512 550 555 625 interlace -hsync -vsync
crt_range 15620.00-15640.00, 50.00-50.00,
0.512, 4.607,
9.725, 2.431, 0.320, 4.479, 0, 0, 256, 100, 512, 200
This is what I have in GM ini.
crt_range0 15625-16200, 49.50-65.00,
2.000, 4.700,
8.000, 0.064, 0.192, 1.024, 0, 0, 192, 288, 448, 576
So from what I've read, I need to take the numbers in bold from OSD and replace the ones from GM?
Any idea what I'm doing wrong?