BEL76's long list and paali's much shorter list are all very well, but most laptops haven't got a keypad at the right and I doubt if these codes will work using the numbers along the top. If you're using an ordinary PC, these codes certainly
work only when using the keypad.
Does your laptop have the AltGr key ? It's on the right of the space-bar on an ordinary keyboard. If it does, you can generate most of the characters needed for writing Spanish: á, Á, é, É, í, Í, ó, Ó, ú and Ú, as well as € (with the '4' key), but not, as far as I know, ñ, Ñ, ª, º, ¿ or ¡
When writing French, the commonest accented letters are é and à. I suppose you could use the AltGr key to type á instead of à and most people wouldn't even notice.