To automatically switch from lapbok mode to tablet mode just indicate it in the Windows configuration.|
To do this go to start-> settings-> System-> tablet mode.
In the drop-down menu: When I login, deploy and select "use the appropriate mode for my hardware.
In the drop-down menu: When the device automatically turns on or off tablet mode, scroll and select: Do not ask me and always change.
So when you remove the tablet from the keyboard will activate the tablet mode automatically.
If you want to be in tablet mode, without keyboard connected, automatically exit the keyboard to write in some section, you should go to start-> devices-> write-> and there activate the last option that says "Show keyboard Touch keyboard when you are not in tablet mode and there is no keyboard connected.Thereafter, the keyboard will come out automatically when you have to type something if you do not have a keyboard connected.
Regarding the use of the touchpad, if you tell me the model of tablet you could provide a script to uninstall the gestures windows and use it as a normal mouse.