How to control the mouse cursor with your voice with GlovePIE

Special Effect recently posted a video by Gavin Tan on how to control your mouse cursor and clicks using your voice.  In the video he shows the setup with the cursor responding to various commands to move left and right and speeding up and slowing down. He also explains how to alter the script to make the movement faster or slower and how to vary the click time.

The video details the exact Glovepie code used:

if said(“stop”) then var.speed = [0, 0]
end if
if said(“slow”) then var.speed = var.speed / 2
end if
if said(“fast”) then var.speed = var.speed * 2
end if
if said(“left”) then var.speed = [-3, 0]
end if
if said(“right”) then var.speed = [3, 0]
end if
if said(“up”) then var.speed = [0, -2]
end if
if said(“down”) then var.speed = [0, 2]
end if
mouse.DirectInput2D += var.speed

Mouse.RightButton = Keepdown(Microphone.Said(“pow”), 0.1)

Mouse.LeftButton = Keepdown(Microphone.Said(“now”), 0.1)

SpecialEffect is a UK-based charity that helps people with disabilities play and enjoy video games and leisure technology. They provide specialist advice, loan equipment and travel across the UK to enable people with disabilities to take part in computer gaming.

This article was first published on 24 April 2013 and last updated on 6 June 2017.

Was This Post Helpful:

0 votes, 0 avg. rating

Leave a Reply