[Solved] Running Oxios Hibernate after inervals - Windows Mobile Development and Hacking General

guyz this was requested by flavopic and others..so i wrote a small script to for it
Instructions :
1. First of all install Mort Script from HERE To you device
2. Place the Both the Applications as they are attached in the following locations (dnt change their names)
the script will look in the following location :
" \Storage Card\Oxios\Close App.exe "
" \Storage Card\Oxios\Hibernate.exe "
3. Then place this in the startup folder (if you want it to start automatically)..or you can also bind it to any H/W key
Please not that i've set the timer to 5000000
If you get any error please Post

I've just edit it because I've an Italian device (so the directories' name are different...)
When this program runs automaticcaly, how to make it not show the window which appeare?
I mean... Is there a way to hide that window?
Or something that hit automatically the "OK" button?

@ather90: There is a problem with the solution you posted. It needs the script to be running always, which has the following drawbacks:
1. Consumes a lot of resources
2. If the script's process is killed somehow (e.g. WM may automatically kill a process smtimes if a new process is opened), then the running of app stops.
Moreover, you need to install the complete scripting engine to do a small task.
I can suggest an alternative in terms of my program Shantztodaychanger.
Though it is an app to change themes/wallpapers at set intervals, it also runs exe's. And to use it as a pure exe runner, just use the "mask" option, leave the mask field blank, and choose the duration of time for mask to cover all 24 hours.
It runs only when needed, hence consumes very less resources, and is pretty small as compared to installing MortScript. And is also more reliable in terms of execution.
@flaviopac: There is indeed a solution, but that would require some custom software or a little bit of trick . After executing the program, we can wait for a few seconds, then find he window of oxios and kill it. This can either be done in the program itself, or there is another way. You can club the mortscript method with my program. If there is way to send a message to the window thru mortscript, we can execute a mortscript thru my program, which in turn first executes oxios and then sends the kill/ok message to it. This way, it will also not consume resources unnecessarily.

shantzg001 said:
@flaviopac: There is indeed a solution, but that would require some custom software or a little bit of trick . After executing the program, we can wait for a few seconds, then find he window of oxios and kill it. This can either be done in the program itself, or there is another way. You can club the mortscript method with my program. If there is way to send a message to the window thru mortscript, we can execute a mortscript thru my program, which in turn first executes oxios and then sends the kill/ok message to it. This way, it will also not consume resources unnecessarily.
Click to expand...
Click to collapse
Ok, I've understood the kind of solution we could apply....
Anyway... I don't know how to make a mortscript file hit the OK button or close that window...
So, how can we do that?

@shantz..thanks for the tips..actually if i had time i would have built an app for it in C++...but i didnt..i will look for something which presses the OK button automatically

ather90 said:
@shantz..thanks for the tips..actually if i had time i would have built an app for it in C++...but i didnt..i will look for something which presses the OK button automatically
Click to expand...
Click to collapse
Let us know.......

found it..if any of you is running Oxios atm..can u tell me the Window name which apperas before the OK button on top

ather90 said:
found it..if any of you is running Oxios atm..can u tell me the Window name which apperas before the OK button on top
Click to expand...
Click to collapse
Running Oxios CloseApps the name of the windows is:
Oxios CloseApps 1.40
for Hybernate:
Oxios Hybernate 1.40
Hope this will help...

its working alright ..the command is as follows
SendOK ( window name ) or
Close ( window name )
testing atm will post it in a while

ather90 said:
its working alright ..the command is as follows
SendOK ( window name ) or
Close ( window name )
testing atm will post it in a while
Click to expand...
Click to collapse
Are you using mortscript or Shantztodaychanger?
Let me know if it works.....

im using mortscript..sorry tosay this but it aint workin..it closes all the windows in its way if i use both the commands..also i tried Wait for but alas..maybe we have to find other way

ather90 said:
im using mortscript..sorry tosay this but it aint workin..it closes all the windows in its way if i use both the commands..also i tried Wait for but alas..maybe we have to find other way
Click to expand...
Click to collapse
Let me know if you finally solve this problem.....

Why the mortscript? Why not just have Hibernate run every time you wake the device?

nonegiven said:
Why the mortscript? Why not just have Hibernate run every time you wake the device?
Click to expand...
Click to collapse
It would be an idea.... But now ather90 s trying to auto-hit the "OK" button... So you haven't to hit yourself everytime....
It's a bit annoying....

Theirs "Silent" Versions Of These Apps Somewhere.
It Does The Same Job But Doesn't Display The Message Box Afterwards.

OllieD said:
Theirs "Silent" Versions Of These Apps Somewhere.
It Does The Same Job But Doesn't Display The Message Box Afterwards.
Click to expand...
Click to collapse
please tell me where can I find it??

Voila...
http://forum.xda-developers.com/showthread.php?t=385390&highlight=Hibernate

Related

Tool to run program on turn on (with power button)?

please suggest me some tools which realise "autostart" for my magician. The tool should run a program when i turn the magicion on.
Thanks!
Check out sktools. That'll do it I think.
V
use MemMaid. really usefull tool
Thanks!
Maybe somebody knows also a small (freeware) program?
try search at http://pocketpcfreewares.com or http://www.freewareppc.com maybe there's some. anyway, you can allways add a shortcut to app in the windows\startup dir (use totalcommander for this).
@dddrko:
as far as i understand, the startup folder starts only after reset, not at powert button...
This is a nice tool: Event driven application/command execute !!
http://www.kent7.com/holly/wakeapp/
It can start an application or run a command at about any 'event' = Meaning, whataver happens :
On a specific time or when ;
PC card changed
othe IR device discovered
Network (dis)connected
AC Power On/Off
full device data restore
RS232 conection made
data sync finisched
system time changed
timezone changed
Device wakes up
Haven't tested it yet, but looks mighty powerfull !
Good spot. These are standard events for the PPC, so SKTools, MemMaid and the lovely WakeApp should support them all.
V
jpiek said:
This is a nice tool: Event driven application/command execute !!
http://www.kent7.com/holly/wakeapp/
It can start an application or run a command at about any 'event' = Meaning, whataver happens :
Haven't tested it yet, but looks mighty powerfull !
Click to expand...
Click to collapse
Thats exactly what i mean, BUT its not working on my Magician...
I can see and set the events, but the program does not start.
ReflexNPG said:
jpiek said:
This is a nice tool: Event driven application/command execute !!
http://www.kent7.com/holly/wakeapp/
It can start an application or run a command at about any 'event' = Meaning, whataver happens :
Haven't tested it yet, but looks mighty powerfull !
Click to expand...
Click to collapse
Thats exactly what i mean, BUT its not working on my Magician...
I can see and set the events, but the program does not start.
Click to expand...
Click to collapse
Silly question maybe, but have you tryed resetting ?
Like i said, i haven't tested it myself yet...
from readme
** OS
PocketPC 2002
edit: tested it on my magican (wm03se), it works. great tool
shine on
@tom0_1:
could you please tell what exaxtly is working? Events,timer, ...?
OK, other way,
Example :
HKLM\Software\Microsoft\Shell\Event\Dock\Inbox
Command=Tmail.exe -RunInBKG
(retrieves new mail when Docked/Activesync on)
Also found :
HKLM\Software\Microsoft\Shell\Events\PowerOn\WMP
Class= WMP for Mobile Devices
On= 32837
(Resumes playing WMP after power on)
I guess adding a key in ether wil get you what you want also...
@jpiek: thanks, i will try it
About memmaid - i dont think that this tool can add entries to the notification queue...
Background: i have an old Magician (with long white beard), and i want to use it as remote control with Salling Clicker.
This program uses bluetooth and every time i turn on the device, it should start Salling Clicker (or bring to foreground) and reconnect the bluetooth connection (so my girlfriend can focus on what she wants to hear or see...)
i tried three items and all worked:
event by power on
event by changing sd card
timer
shine on
tom0_1 said:
i tried three items and all worked:
event by power on
event by changing sd card
timer
shine on
Click to expand...
Click to collapse
Ow Yeah, great... :mrgreen:
Repeat events?
With both memmaid and wakeapp, I can get a program to run once on a timer, but what I want to do is get the program to repeat daily at the same time. Memmaid seems to lack the ability to choose repeat; wakeapp shows "no end date" when one looks at the entry, but the notification disappears after it runs.
Memmaid can't do create recurring notification
I have verified with dinarsoft that memmaid can't put a repeating notification to run a program. The problem, they say, is that there is no facility to repeat and the way other programs do it is to write a few days worth and when that gets close to the end, write a few more.
Given this, wakeapp almost certainly can't either, since it seems to just be a "notification writer".
Can SKSchema run a program at the same time every day? An if so, can it then minimize the program?
Yes,
SKSchema can do repeating program runs, even do it only on Tuesdays or on the first of the month.

I want to ask "How to cook a shortcut"?

Hi
Is there some convinient way to create shortcuts on wm5 ppc? some app with
-browse for file
-cmd line params
-browse for icon-dll
-insert icon number into cmd line
if there is no, one should be developed immediately
………
Turist said:
Hi
Is there some convinient way to create shortcuts on wm5 ppc? some app with
-browse for file
-cmd line params
-browse for icon-dll
-insert icon number into cmd line
if there is no, one should be developed immediately
Click to expand...
Click to collapse
i cant believe everybody makes it manually
Come on! You help is needed!
thanks for the idea!
OdeeanRDeathshead said:
thanks for the idea!
Click to expand...
Click to collapse
i quess its irony... ;(
nevertheless i found one _ttp://www.s-k-tools.com/sksmgr/sksmgr.html
its almost free for ex-USSR so i`ll give it a try.
Turist: you might want to read some of OdeeanRDeathshead's posts. I don't think he was being ironic.
Frankly, I've never found it difficult to write shortcuts by hand, but the sktools app is great, as ever.
V
There was no irony. As I was reading your post I was coding my app to check on startup its current location then generate a new shortcut to replace its existing one in the startup folder. One reason i use a shortcut done by hand is to get the command line arguments in it. I use the command line to tell my program if it is being started after a soft reset. If it is it minimises itself after a couple of seconds. Of course I don't need to look up the icon because my shortcut is for my executable, from memory it was just trial and error getting the correct icon for things like poutlook. I think any shortcut generator would have to be able to copy the info from existing shortcuts to make it useable over different versions/os etc.
vijay555 said:
Turist: you might want to read some of OdeeanRDeathshead's posts. I don't think he was being ironic.
Frankly, I've never found it difficult to write shortcuts by hand, but the sktools app is great, as ever.
V
Click to expand...
Click to collapse
not really difficult, but i`d like a little bit more comfortable way.
yep, sk-software is really good. paid yesterday for sktools, skshems, skshortcut manager.
OdeeanRDeathshead said:
There was no irony. As I was reading your post I was coding my app to check on startup its current location then generate a new shortcut to replace its existing one in the startup folder. One reason i use a shortcut done by hand is to get the command line arguments in it. I use the command line to tell my program if it is being started after a soft reset. If it is it minimises itself after a couple of seconds. Of course I don't need to look up the icon because my shortcut is for my executable, from memory it was just trial and error getting the correct icon for things like poutlook. I think any shortcut generator would have to be able to copy the info from existing shortcuts to make it useable over different versions/os etc.
Click to expand...
Click to collapse
you`ll never know what could happen with those little apps designed "for my internal use only"
ps: got myself vs2005, msd, wm5 sdk. would like to try to make an xml-parsing/registry-editing engine for universal registrytweaking tool. I really like the idea of RegistryWizard-tool, but not very much its design and functionality. will see...
I just finished updating my file open dialog. It can now create shortcuts that have command line arguments and it can extract the icons and their id from any file that contains them (exe dll). This will be available shortly as part of my almost (really) finished project.
OdeeanRDeathshead said:
I just finished updating my file open dialog. It can now create shortcuts that have command line arguments and it can extract the icons and their id from any file that contains them (exe dll). This will be available shortly as part of my almost (really) finished project.
Click to expand...
Click to collapse
Great! And please notice - i`m not chraging you for this brilliant idea
will it be available as standalone utility too?
The shortcut functionality will not be limited in any way on the program, but no, it will not be stand alone. I tested on jamin today (wm2005) and the handle htc give for the port is good, unlike the atom. I spent the last week converting my lists in the file open dialog to owner drawn to try and cut the display time on the windows directory. It has 1300 items and was taking 23 seconds, I have cut that to 7 seconds. Resco take 3.

Close App with Command Line

I have SPB Pocket Plus and Oxios Memory's Close and Hibernate.
I was wondering if there is any command to target and close a particular program?
Basically i'm looking for something which is extremely simple and doesn't require a massive installation of another additional program.
Guys this is real important... I hope somebody can throw some light on this. I just need a small executable to be able to close a particular appliaction via the command line so I can make a shortcut out of it.
I've looked around a lot but can't seem to find anything.
The program SKScheMa (http://s-k-tools.com/) has the ability to kill a named process.
It will let you create a script to do it.
Hi ishra,
Thanks for the tip. However i'm looking for a much simpler way to do it without having to install any additional software.
Ideally, I'd like an exe file which via a command line parameter can shutdown a partucular application.
http://www.vijay555.com/?Releases:VJTaskKiller
It will also be improved (eventually) to close invisible tasks. If you need that feature, let me know and I'll prioritse.
V
hahaha... VJ... you rock.
I dunno why I didn't think of looking up your website. It was the most obvious thing to do... I looked everywhere and I missed your site.
Thanks so much.
EDIT:
VJ, I mainly wanted this app to be able to close a program called IDTransfer. The name of the task is also IDTransfer and that is exactly what I put in the shortcut. When I click on the shortcut for some reason it says
Warning - window
'IDTransfer
' not found!
Click to expand...
Click to collapse
The following is the line in my shortcut
61#"\Program Files\vijay555\VJTaskKiller\VJTaskKiller.exe" IDTransfer
Click to expand...
Click to collapse
Vijay, same problem here. It's not working (Orbit WM6). Is there any chance to have you to take a closer look what's wrong?
I tried to run it against a couple of application in order to kill them. Results as above. Window - not found

auto minimize apps that run @ startup

is there an utility that will allow me to automatically minimize apps that load at startup? I have to applications that I want to run @ startup but I don't need to visually see them.
Thanks.
you could try to put minimize.exe in \windows\startup\ folder. That app minimizes everything. Search for it.
There is also a load.exe that will run whatever argument passed, hidden and minimized, it will not run it into a bgprocess however.
the_passenger said:
you could try to put minimize.exe in \windows\startup\ folder. That app minimizes everything. Search for it.
Click to expand...
Click to collapse
Minimize.exe can be downloaded from here: http://www.mediafire.com/?3mzxozxxxwi
I put it in the windows\startup folder, however the other app is in that same folder and it doesn't seem to work.
you can create a mortscript that runs your desired app and after 2 seconds it runs minimize.exe
ga!nusha said:
you can create a mortscript that runs your desired app and after 2 seconds it runs minimize.exe
Click to expand...
Click to collapse
I've never used mortscript before, I downloaded the manual and started reading, can you give an example of how to run an exe (example.exe) and then pause for 2 seconds and then run another app (minimize.exe)?
Thanks.
Minimize.exe only minimizes the current aplication, if you have many open theres a good chance it wont take you to today screen. What you should to is create a script with one line:
Show ( "Desktop" )
This will minimize everything and show the today screen.
Using Show () and Minimize () from MortScript might be a good solution.
I'm trying to launch an exe (TCPMP) minimized from FlashLite and as there is no available solution using Compact Framework, I believe I can do it with MortScript.
Something like :
In flash :
Code:
fscommand("myMortScript.mscr");
In the script :
Code:
Run("\Program Files\TCPMP\player.exe")
While (1)
Show ("FlashLite")
Sleep(1000)
EndWhile

who can give me a simple script of mortscript?

there are too many statup programs in my ppc, i wanna use mortscript to manage the starup time.
example:
when i reset my ppc,
program 1 starts after 5 seconds
program 2 starts after 10 seconds
program 3...
THX
there is already a thread for mortscripts....please search on "mortscript examples".
i searched, but i did not find what i wanna
example:
---- snip --
Run ("\Programme\CallFirewall\CallFirewall.exe")
WaitForActive ("Call Firewall", 5000)
Minimize ("Call Firewall")
Sleep(5000)
Run ("\Windows\SAPSettings.exe"
WaitForActive ("BT Remote SIM Access", 5000)
Minimize ("BT Remote SIM Access")
Sleep(5000)
...
Exit
---- snap --
Run - runs the specified app
WaitForActive searches for windowtitle, but max 5000ms
Minimize minimizes specified app
Sleep always waits for specified time (5000ms)
... thats just about how my mortrun in autostart looks like
http://forum.xda-developers.com/showthread.php?t=289197
the manual pdf helps ;D
mecal said:
i searched, but i did not find what i wanna
Click to expand...
Click to collapse
My point was two-fold:
1. Maybe they had something similar (which you looked and did not find)
2. That "existing" thread was the appropriate place to post this question.
Using existing threads is preferable to creating new ones (actually part of the XDA preferred guidelines).
Looks like someone helped you though!

Categories

Resources