Hm, I am not sure what I am doing but I got the code to this point where it can print the interesting parts to the console for me
https://pastebin.com/rRd23wANNow that I can at least connsole log the important things (like the winnumber) now In just need to figure out a way to communicate this to the outside world, maybe a popup that shows red black or green based on the drawn number.
Or something like that :-)