How to keep recording key strokes while program not in focus (in background) in F#?
问题 The code below is part of a bigger ML project, but I want it to run while it's minimised too. How can I do this? I think I need to run it as a windows process to achieve this, but there isn't much information on how to do that in F#. Or is there another way? let rec f() = let c = System.Console.ReadKey().KeyChar printfn "%c" c f() f() 回答1: From the link in Aaron's comment I decided to give the port a try. This works for me. Note that this could definitely be cleaned up a bit more. I placed