Switch to full style
Topic locked

Fri Jan 21, 2011 7:13 pm

The application window for igo8.3 may not be called "NAVI" I'm not at home at the moment to find out what it's called.

Fri Jan 21, 2011 10:10 pm

Oh I see... at your convenience, please let me know what it is when you find out.

Thanks so much

Sun Jan 23, 2011 12:24 pm

Sorry it took so long to get back to you, Try replacing the word "NAVI" with "iGO 8" in the script.

Sun Jan 23, 2011 1:43 pm

Thanks... I'll give it a try. I renamed it to "iGO8" yesterday to see if that would work, but it didnt. Hopefully it'll work with a space in it. It deesn't matter if I rename the executable files correct, as long as its changed in power.mscr correct?

thanks agan

Sun Jan 23, 2011 2:15 pm

Correct, The script waits for the application window called NAVI or iGO 8 to appear.

Sun Jan 23, 2011 3:30 pm

thanks fatboyfun... it seems to suspend correctly, after about 1 second of disconnecting the power... only thing is, when you turn it on (and sometimes back off) the screen states "shutting down in 9-10 seconds." But it seems to be working fine now - hopefully it stays that way

Sun Jan 23, 2011 3:43 pm

Thanks for the feedback :)

Sun Feb 13, 2011 8:50 pm

I have tried the script as well and notice when the unit goes to sleep and it is on battery you can't turn on on, it goes on and in one second shuts off.
I have never seen message about waiting 10 sec or so.
Can you look into it


Thanks


Les

Sun Feb 13, 2011 9:48 pm

Hello les.

The intention with the script was to suspend the device when external power was removed, and to prevent the device from switching back on while running on batteries. In order to use the device while on batteries would require a different script.

Sun Feb 13, 2011 10:03 pm

Thanks for the fast reply.
It that possible to add to the script a choice of leaving on battery or switch the unit off?
Let say 10 sec popup window with off or battery option
Thanks again

PS Maybe you know if there is an option for primo 1.1 8.5.11 to setup the existing message when power is disconnected to allow to shut off or stay on battery.
Right now is displays message and disappears staying on battery.


Les

Sun Feb 13, 2011 10:41 pm

Yes it is possible to pop up a question box, On all my devices when power is removed a 10 second countdown appears before suspending, All the sys.txt power options make no difference.

Mon Feb 14, 2011 2:07 am

Fatboyfun wrote:Yes it is possible to pop up a question box, On all my devices when power is removed a 10 second countdown appears before suspending, All the sys.txt power options make no difference.


Can you please let me know how to make 10 sec box appear on the unit and have a choice of turning off or use battery.
Can you share your knowledge or I can get (buy) the script from you.
Please advise and thank you for the prompt answer

Les

Mon Feb 14, 2011 10:14 am

[color="red"]FILE UPDATED HERE[/color]:link:

SetChoiceEntryFormat(70)
ChoiceDefault("Power Off", "Device will suspend in...", Yes, [color="red"]10[/color], "Yes", "No")
Case "0"
Case "1"
PowerOff
Case "2"
EndChoice

I added the choice command above to the original script so instead of just suspending it gives you the choice.

The number 10 highlighted in red is the countdown time in seconds, Change it if you need to.

Mon Feb 14, 2011 10:59 pm

Thanks again, but it didn't work
NO option goes back to YES and there is no way to choose to stay on battery.
I understood that NO will allow unit to stay on battery

Please advise

Les

Mon Feb 14, 2011 11:19 pm

Sorry i was concentrating on several things at the same time and didn't test it properly, I left out a While (not ExternalPowered()) command, Which should hold the script until AC power is reconnected.
SetChoiceEntryFormat(70)
ChoiceDefault("Power Off", "Device will suspend in...", Yes, 10, "Yes", "No")
Case "0"
Case "1"
PowerOff
Case "2"
EndChoice

This is not tested yet but try replacing the above part with this...
SetChoiceEntryFormat(70)
ChoiceDefault("Power Off", "Device will suspend in...", Yes, 10, "Yes", "No")
Case "0"
While (not ExternalPowered())
Sleep 1000
EndWhile

Case "1"
PowerOff
Case "2"
While (not ExternalPowered())
Sleep 1000
EndWhile

EndChoice


I'll look at it again tomorrow for you if it's not working.
Topic locked