iup.button{ title='START', size='94x15', action=function(self) gui.execquick([[set_lcd_display (0)set_record (1)set_capture_mode (0)set_led (9,1)play_sound (2)set_led (9,0)sleep (1000)set_led (9,1)play_sound (2)set_led (9,0)sleep (1000)set_led (9,1)play_sound (2)set_led (9,0)sleep (1000)set_led (9,1)play_sound (2)set_led (9,0)sleep (1000)set_led (9,1)play_sound (6)set_led (9,0)]]) end,
!cli:execute("rs")
I'm very interested in your project.... please tell me more about it!
Code: [Select]!cli:execute("rs")but didn't work
gui.execquick([[...your code...]],{wait=true})
cli:execute("rs")
How can I associate a button to list of cli commands?
I will post my simpler solution, maybe will be useful for some one else
Quote from: shallappa on 03 / February / 2016, 17:16:15I'm very interested in your project.... please tell me more about it! Here's a quick rundown. I had bigger plans but as usual, ran out of time. But what I got working was a big success and it ran automatically all night so that I did not have to 'babysit' it.
vp_toggle.value="ON" vp_toggle:action(1) bm_toggle.value="ON" bm_toggle:action(1)
map_cb=function() maintabs.VALUEPOS=2 end,
Started by DBgit « 1 2 » Script Writing
Started by Microfunguy « 1 2 3 » General Discussion and Assistance
Started by toby LUA Scripting
Started by JvdP « 1 2 » General Discussion and Assistance
Started by axman General Help and Assistance on using CHDK stable releases