Created
July 10, 2014 11:56
-
-
Save kashmervil/9befb32e79069cc39504 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.Windows.Forms | |
open System.Reactive.Linq | |
let form = new Form(TopMost = true, Visible = true, Text = "Priv") | |
let event = form.MouseMove | |
event|> Observable.filter (fun x -> (x.X > 100) && (x.Y > 100)) | |
|> Observable.add (fun x -> printfn "x = %d y = %d" x.X x.Y) | |
Application.Run(form) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment