GlovePIE script converted to FreePIE - need help

Official forum for open source FreePIE discussion and development.
Post Reply
lgmartin
One Eyed Hopeful
Posts: 1
Joined: Fri Oct 14, 2016 6:20 pm

GlovePIE script converted to FreePIE - need help

Post by lgmartin »

After the most recent Windows update glovepie no longer seems to work. I have been meaning to convert to FreePIE, but I have no programming knowledge. I have a mobility disability, so I have been using to do voice commands for games. I use voice commands to input keyboard commands.

Can anyone help me convert my glovepie script into one that would work for FreePIE? If anyone can convert a couple of the command lines that would give me a start at least. Please let me know if there is any more information I can provide. Thanks in advance. :) Here is the script I use in glovepie:
if said("enable voice commands", 3) then
var.listen=true
say("voice commands enabled")
end if

if said("disable voice commands", 8)
var.listen=false
say("voice commands disabled")
end if

if var.listen ==true then

// Abilities
one = said('press one', 2)
two = said('press two', 2)
three = said('skill 3', 2)
four = said('skill 4', 3)
five = said('skill 5', 3)
key.O = said('new skill', 3)
key.Q = said('deny', 3)
if said('use combo', 7) then
press key.z
wait 10 ms
release key.z
wait 10 ms
press mouse.LeftButton
wait 300 ms
release mouse.LeftButton
wait 10 ms
press key.one
wait 10 ms
release key.one
end if
if said('fire arrows', 7) then
press key.Alt
wait 20 ms
press key.two
wait 20 ms
release key.two
wait 10 ms
release key.Alt
end if
// Items
z = said('item 1', 2)
x = said('item 2', 2)
c = said('item 3', 2)
v = said('use 4', 2)
b = said('use 5', 2)
n = said('galaxy', 8)
m = said('open shop', 2)
if said('quick buy', 3) then
press key.M
wait 50 ms
release key.M
press key.Shift
wait 2000 ms
release key.Shift
press key.M
wait 50 ms
release key.M
end if
// Courier
key.F3 = said('delivery', 2)
key.F4 = said('speed burst', 2)
key.Space = said('find hero', 2)
if said('Courier secret shop', 8) then
press key.F2
wait 50 ms
release key.F2
wait 20 ms
press key.two
wait 50 ms
release key.two
press key.space
wait 50 ms
release key.space
end if
if said('Courier go back', 8) then
press key.F2
wait 50 ms
release key.F2
wait 10 ms
press key.one
wait 20 ms
release key.one
wait 20 ms
press key.space
wait 20 ms
release key.space
end if
// Miscellaneous
key.F9 = said('pause game', 3)
if said('switch application', 7) then
press key.Windows
wait 10 ms
release key.Windows
end if
Esc = said('game menu', 3)
// Creeps
if said('create ancients', 8) then
say("create ancients")
press key.Ctrl
wait 10 ms
press key.Zero
wait 10 ms
release key.Ctrl
release key.Zero
end if
if said('find ancients', 8) then
press key.Zero
wait 10 ms
release key.Zero
wait 10 ms
press key.Zero
wait 10 ms
release key.Zero
end if
seven = said('select all', 3)
eight = said('select others', 3)
// Team Chat
if said('ping team', 7) then
press key.Alt
wait 1000 ms
release key.Alt
end if

end if
Post Reply

Return to “FreePIE”