@dmilligan
Thanks for the hint and I've tried it two ways: but no luck :-(
BTW this is why it would be helpful for someone in the know, to help kickstart the rest of us in the art of scripting.
I had looked at the Pong example and it didn't have the task.yield(100) business.
I truly am not looking for personal help as I know everyone is busy.
As I said, I'll just wait until a few more post their scripts and adapt anything I see useful to my project.
Cheers
Garry
Thanks for the hint and I've tried it two ways: but no luck :-(
Code Select
-- Test Script
require('keys')
function main()
keys:start()
menu.block(true)
while menu.visible do
task.yield(100)
local key = keys:getkey()
-- task.yield(100) - tried it here as well
if key == KEY.RATE then camera.shoot() end
end
-- quit script
menu.block(false)
keys:stop()
end
keymenu = menu.new
{
parent = "Audio",
name = "Shoot",
help = "Simply operates shutter",
select = function(this) task.create(main) end,
}
BTW this is why it would be helpful for someone in the know, to help kickstart the rest of us in the art of scripting.
I had looked at the Pong example and it didn't have the task.yield(100) business.
I truly am not looking for personal help as I know everyone is busy.
As I said, I'll just wait until a few more post their scripts and adapt anything I see useful to my project.
Cheers
Garry