Global $on=0
while 1
for $i= 8 to 13
if $i = MouseGetCursor() and WinGetTitle() = "applicationname" and $on=0 then
;call Block mouse input here
$on=1
Next
for $i= 1 to 7
if $i = MouseGetCursor() and $on=1 then
; Remove Block from mouse
$on=0
Next
for $i= 14 to 15
if $i = MouseGetCursor() and $on=1 then
$on=0
; Remove Block from mouse
Next
sleep(50)
WEnd