PDA and Software

Добро пожаловать на форум
Текущее время: 16 дек 2018, 17:38

Часовой пояс: UTC + 3 часа




Начать новую тему Ответить на тему  [ Сообщений: 4 ] 
Автор Сообщение
 Заголовок сообщения: Mortscript for Igo with processor in Power saving mode
СообщениеДобавлено: 25 мар 2011, 12:02 
Не в сети

Зарегистрирован: 14 сен 2009, 17:14
Сообщений: 53
Hello everyone

I wanted to share these mortscripts to allow you to start igo/igo amigo with the processor in power saving mode. The problem when starting igo normally is that it keeps using the processor 100% and drans and heats the battery - reducing lifetime. If you run it in power saving mode, it will no longer heat up and even if loading is slower, navigation is pretty snappy (at least I'm happy with it).

You will need Mortscript installed and Igo8/Igo Amigo (it can be easily adapted for other programs)

For Igo (should work on WM6.1 and WM6.5):
The script will do the following:
* put the processor in power saving mode
* start Igo and wait for it to finish
* put the processor back on automatic

You may need to customize the igoPath variable to fit your system.

Код:
###############################
# runIgo - for n560/newplowe  #
# developed by mad_ady        #
# for Windows Mobile 6.1/6.5  #
###############################

##############################################
#customize these variables to fit your system#
##############################################

igoPath = "\Storage Card\igo8\igo8.exe"

#############################
### main code starts here ###
#############################

wantStart = Question("Start igo?")
If ( wantStart = 0 )
Exit
EndIf

#override cpu
Run("\Windows\Processor.exe")
Sleep(1000)

#Turbo mode is at 83, 355
#Standard mode is at 83, 398
#Power-Saving mode is at 83, 438
#Automatic mode is at 83, 477
#title bar is 52

#set cpu to Power-Saving mode
MouseClick( 83, 438)
Sleep(1000)
#press "OK" to close the window
#MouseClick( 456, 27 )
SendOK

SleepMessage(3, "Overridden power settings")
#Exit
#start igo
RunWait(igoPath)

# when igo stops, restore the settings

#set cpu to Automatic mode
Run( "\Windows\Processor.exe")
Sleep(1000)
MouseClick( 83, 477)
Sleep(1000)
#press ok to close
#MouseClick( 456, 27 )
SendOK

SleepMessage(3, "Restored power settings")


For IgoAmigo the script will do the following:
* disable standby while on battery
* switch the processor to power saving mode
* start Igo Amigo and wait for it to finish
* switch the processor back to automatic mode
* enable standby while on battery

You may need to customize the igoPath variable to fit your system.

Код:
###############################
# runAmigo - for n560/newplowe#
# developed by mad_ady        #
# for Windows Mobile 6.1      #
###############################

##############################################
#customize these variables to fit your system#
##############################################

igoPath = "\Storage Card\igo amigo\amigo.exe"

#############################
### main code starts here ###
#############################

wantStart = Question("Start igo amigo?")
If ( wantStart = 0 )
Exit
EndIf


#overwrite suspend values

#apply power settings
Run("\Windows\PowerExe.exe")
Sleep(2000)
SendSpecial("Right")
SendSpecial("Right")
#on battery power checkbox is at 33,174
MouseClick( 33, 174)
Sleep(1000)

#Exit
SendOK

#override cpu
Run("\Windows\Processor.exe")
Sleep(1000)

#Turbo mode is at 83, 355
#Standard mode is at 83, 398
#Power-Saving mode is at 83, 438
#Automatic mode is at 83, 477
#title bar is 52

#set cpu to Power-Saving mode
MouseClick( 83, 438)
Sleep(1000)
#press "OK" to close the window
#MouseClick( 456, 27 )
SendOK

SleepMessage(3, "Overridden power settings")
#Exit
#start amigo
RunWait(igoPath)

# when amigo stops, restore the settings

Run("\Windows\PowerExe.exe")
Sleep(2000)
SendSpecial("Right")
SendSpecial("Right")
#on battery power checkbox is at 33,174
MouseClick( 33, 174)
Sleep(1000)
#Exit
SendOK

#set cpu to Automatic mode
Run( "\Windows\Processor.exe")
Sleep(1000)
MouseClick( 83, 477)
Sleep(1000)
#press ok to close
#MouseClick( 456, 27 )
SendOK

SleepMessage(3, "Restored power settings")


Вернуться к началу
 Профиль Отправить личное сообщение  
 
 Заголовок сообщения: Re: Mortscript for Igo with processor in Power saving mode
СообщениеДобавлено: 18 май 2011, 21:25 
Не в сети

Зарегистрирован: 11 сен 2009, 10:43
Сообщений: 21
Hi,

This is naughty! I hope Newplow does not mind. I am hijacking this thread to let you know that we had a fantastic touring holiday in Romania. We had continuous sunshine and brilliant blue skies all the time. It made our experience of Romania wonderful. You live in a beautiful place.

Have you sorted out your headphone socket problem yet?

Cheers, Fingers.


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Mortscript for Igo with processor in Power saving mode
СообщениеДобавлено: 19 май 2011, 08:24 
Не в сети

Зарегистрирован: 14 сен 2009, 17:14
Сообщений: 53
Glad you liked it! But although I live in Romania, I do most of my "living" in Bucharest - which is not the same thing. :)

I would say the headphones are partially solved (check out the headphone thread for pictures) - managed to make them play well (bent the ground connector for better contact), but no more automatic headphone detection (broke the detection connector). But with manual switching, they work just fine :D

Hope it will last 1-2 more years :D

Regards,
Adrian

Edit: I see I can't PM you back, so I just wanted to add that I enjoyed the photos of the storks :) and it seems you enjoyed our structured cabling mess in Bucharest :)
I haven't visited Moldova (so, from your photos I've just visited Brasov, Rasnov and Sinaia), but I'm planning to do a trip of my own maybe this summer.


Вернуться к началу
 Профиль Отправить личное сообщение  
 
 Заголовок сообщения: Re: Mortscript for Igo with processor in Power saving mode
СообщениеДобавлено: 21 май 2011, 10:37 
Не в сети

Зарегистрирован: 11 сен 2009, 10:43
Сообщений: 21
You are not alone in not visiting places you live "near". I am often amazed how many people here in the UK have not even visited famous places less than 10km from where they live.

You are right, I just loved the cabling messes. There was almost a competition on our trip for people to get the best photo of the best mess! I think I won. I liked Brasov and thought Bucharest was far more attractive than I had been lead to believe, indeed we all thought it had similarities to Paris.

I am now editing over 1 hour and 40 minutes of HD video clips into a less than one hour Bluray of the trip. Watching the clips whilst editing brings it all back to life. Indeed I have some nice video clips of the storks feeding their young on the nest.

Glad your headphone problem has a workable solution. Your Mortscript here brought back memories of the day I found this wonderful piece of freeware and realised that I could write my own scripts/programs. I gave up very soon when most app software I needed for the N560 had actually already been written by someone else.


Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 4 ] 

Часовой пояс: UTC + 3 часа



Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Перейти:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Вы можете создать форум бесплатно PHPBB3 на Getbb.Ru, Также возможно сделать готовый форум PHPBB2 на Mybb2.ru
Русская поддержка phpBB