after a long time of searching i finally found the answer. there is actually nothing wrong with my pc or my tablet afterall. it took me this long to find it. My CPU is new but i kept my old tube screen. The electromagnetic in the screen is the one causing my pen to malfunction. i was so relieve. finally found it. I just want to share it for those who are having the same problem.
Repairing graphic tablet pensSome graphic tablet pens stop working properly or get unreliable after some time of usage. First, one should check the most common issues:
Battery powered pens may need new and fresh batteries
If the pen tip fits too tight it will not work properly. Same applies if the tip is too loose.
Most tablets work electromagnetically and can be influenced by magnetic fields of monitors, loudspeakers, power supplies or other ferromagnetic parts surrounding it Serial port tablets may suffer from misconfigured ports or other programs trying to access the serial ports
USB tablets can be disturbed by other USB devices
Of course, driver problems are also common
Repairing the pen itselfIf the hints above do not help experienced user may find a solution by disassembling the pen. The following issues may be fixed there:
Battery powered pens might suffer from dirty, bended, oxidated or loose battery holders
The buttons which can be found in many pens can get stuck due to dirt or excessive force, as well as the pen tip
Some pens (usually low-priced ones) use unfixed pen solenoids which may dislocate over time. These can be fixed if the solenoid of the disassembled pen is moved carefully until the pen works properly. It is recommended to fix it with a tiny(!) bit of glue or varnish afterwards.
At disassembly it is often necessary to remove exposed parts like buttons first. Most parts are hold together using snap-in connections and are only to be removed after other parts. A sharp knife is often a handy tool.
Important: Never apply force during disassembly. Avoid getting far into the pen using sharp tools - most components, especially solenoids, are very fine and easily destroyed.