(UPDATED 18-09-2010) Auto Lock (CSDEVCTRL) - Windows Mobile Apps and Games

Hi all,
as am now moving to a more open platform (android), i would like to return the favor of learning through this forum, how to program on win mobile by posting the code of this utility.
Its given as is, no warranties, no tricks, do not expect a well written code etc.
Based on C++, no .Net.
Hope will provide to someone, knowledge and info on this subject.
Have fun with it.
Chris
This is the link
http://rapidshare.com/files/419726318/csdevctrl.zip.html
--- Old introduction ---
Hi all,
this is mainly an auto locking program which utilizes the Windows Locking for partial locking (phone related keys are active)
or complete locking (no keys are active).
It can be considered as an add-on to other programs which provide the User Interface, an 'In Call Locker'
with some goodies as mentioned later on which may or not depend on whether the device is locked (with any program that uses
the Windows locking).
The locking can be activated at the following events:
1. After a specified period of idle time (no screen tapping or touching the keyboard).
2. After the device has waken up.
3. During a call ("In-Call Locking" Partial or Full).
Also for any of the first 2 events (idle or wake up) the program can run a specified executable/registered file together with any command line arguments that might be required.
Finally, some 'goodies':
(Stand-alone means it does not require any other option or the device to be locked)
A.(Stand-alone) it can provide some customization on the carrier name so that:
- It can fit on the screen (for example not to overwrite the Battery icon in SPB Shell).
B. (Stand-alone) Turn on Bluetooth if a call is being dialed or received. Then switch it off after
the call has ended and the headset is not connected.
Usefull if you have a bluetooth handsfree kit in your car and you do not want to keep on turning on/off
the bluetooth.
C. (Stand-alone) Flash the Backlight and or Vibrate while ringing.
At last, you can 'see' if your phone is ringing.
D. Reset the Exchange Server Policy.
Stops the frustrating setting of the password being required after connecting to the exchange server.
F. Turn off the display or/and the device itself.
It can be used as a power saver while playing music etc.
G. Set your favorite SIP (which is being reset back to the default with every soft reset).
H. HotKeys (NEW)
You can assign as sequence of keys to perform an action.
(see http://forum.xda-developers.com/showpost.php?p=3666785&postcount=702)
The parameters that are driving the behaviour of this utility are located at:
http://forum.xda-developers.com/showpost.php?p=2424492&postcount=148
The parameters can also be updated using the setup program provided (csdevctrlsetup.exe).
A flow diagram of the parameters that relate to locking, is provided in the zip file for better understanding of their use.
The debugscr.exe program has been added to help identifying the keystroke codes and coordinates. Before this program is executed
the csdevctrl must be stopped as mentioned further down.
To install it:
- Use the cab file provided.
Simply run it and it will create:
- under the 'Program Files' a directory with name CSDevCtrl'
This directory will contain:
csdevctrl.exe is the main program
csdevctrlsetup.exe is the setup program
debugscr.exe is a utility to find the coordinates and keystrokes (optional).
- Shortcuts under the 'Programs'.
- They can be installed either in the internal memory or on a storage card.
To run it:
> Run the Setup program to set the parameters and the Start Up option.
> Run the program (csdevctrl) and it will spawn at the background as another process.
The device will vibrate once to show that the program has started.
To stop it:
> Running the program second time will cause the program to exit (It will show a confirmation window which will close in 3 seconds unless you close it sooner).
To uninstall it:
> Close the process as usual (run it again or kill the process).
> Remove it from the installed programs.
> Also delete the registry key HKEY_LOCAL_MACHINE\Software\CSDevCtrl
As a note, do not rename the csdevctrl.exe as the uninstall depends on this name.
It has been compiled only for WM6.
For more information see the next link:
http://forum.xda-developers.com/showpost.php?p=2391054&postcount=142
If you wish to buy me a beer or a pitta of souvlaki for my effort, feel free to click on the link below:
https://www.paypal.com/cgi-bin/webs...ode=EUR&lc=CY&bn=PP-DonationsBF&charset=UTF-8
Cheers
Chris
Log:
29/11 - v.6.5 - Added power off after disconnect, support for 6.5 win (beta)
17/09 - v.6.18 - General Policy handling, Dump variables for debugging purposes
04/08 - v.6.16 - Added option for startup delay, Keep the backlight on while on call, lock when dimmed.
27/06 - v.6.15 - Added option to lock only if specific programs are running
20/06 - v.6.14.1 - Fixes.

no bad, i like how it uses the built in windows lock.

Thanks,
it works well with my favourite program (Spb shell) which is the reason of me developing this.

this works great on the smartphone but there is a visible window which can be closed too easily with task managers and can't be navigated away from.
any poss you could hide it rather than minimise it?
looeee

i have updated the program to be windowless as you mentioned (attachment replaced)
Hope it works for you.
Cheers
Chris

chrisstavrou said:
i have updated the program to be windowless as you mentioned (attachment replaced)
Hope it works for you.
Cheers
Chris
Click to expand...
Click to collapse
First of all, thanks for sharing!! This is a very nice app.
I've tested the 2 versions (window and windowless), and I have a suggestion if I may.
I like the idea of the program being windowless, since it becomes more appealing to the eye (I mean, it's great we don't have to see the small window minimize everytime we wake the device), but now, to be able to close the app, we must use a task manager to kill the process(e.g. sometimes we may want to test some other locking software and we need to disable it temporarily). So my suggestion would be that when we run the program once it starts, the next time we run it, it stops. Would that be possible? I think it would make your app perfect!!
Remember, it's only a suggestion.
Thanks in advance.

Its good to know that it may be of use by someone
I have updated it as you mentioned, it will exit if you run it the second time (attachment replaced).

chrisstavrou said:
Its good to know that it may be of use by someone
I have updated it as you mentioned, it will exit if you run it the second time (attachment replaced).
Click to expand...
Click to collapse
Now it's just great!!
Thank you very much for this.

What's the purpose of this app, from the description above it looks as though it does what the original lock already does, so I ask again; what's the purpose of this app?

NiteStalker said:
What's the purpose of this app, from the description above it looks as though it does what the original lock already does, so I ask again; what's the purpose of this app?
Click to expand...
Click to collapse
Automatic lock!!
Once your device light gets dimmed, or on device wake up, without having to press the lock button.
Is that clear enough for you?

Just set the time for 0 minutes, and it's locked on wake-up.
Guess the dim part is good, thanks for clearing that up. I guess my brain wasn't working, I couldn't figure out what deemed was.

now i love the app for what it does... my only suggestions or worries are... after setting that up, i no longer am able to input a password when the lock is activated... and when the program is activated, it wakes the device up from the dimmed, light, thus defeating the purposes of the backlight going off... and also draining the battery a little more... is there ayway that the program can run without waking the device?

MrGalione973 said:
and when the program is activated, it wakes the device up from the dimmed, light, thus defeating the purposes of the backlight going off...
Click to expand...
Click to collapse
I have had this happen to me sometimes as well, already in my short testing time span: when pressing the power button (once) the backlight switches off and back on!
I am also experiencing that it sometimes just does not seem to lock: when pressing the power button twice (with pause) my device only sometimes locks.
And in case you are open to another suggestion: perhaps you can minimize all windows when locking, so the lock ends up on the today screen; or make it an option somehow (command line parameter?)

Thanks for the advices i will be checking them out and come back to you

mousio said:
And in case you are open to another suggestion: perhaps you can minimize all windows when locking, so the lock ends up on the today screen; or make it an option somehow (command line parameter?)
Click to expand...
Click to collapse
Another vote for that!
TBH the only reason I still use S2U is because I can see my missed calls, appointments etc. It's a great app, don't get me wrong, just not something I need.
Your locker would be perfect for me with an option to go back to Today on locking.
Or, perhaps you could implement a simple count of missed calls, SMS, MMS, emails and appointments directly on the lock screen? Just don't let it grow too much!

works beautifully for me with the spb mobile shell 'now' screen showing me the info, thankyou very much!

Why don't you add an option of command line parameter specifying a program/link to be launched before locking? That way it would be very flexible (there are plenty of small programs around doing loads of stuff - like minimizing everything or sending a text or calling your mama - possibilities are endless)

Program has changed as per your advices:
- Leaves the device in idle state for better power management
- Run an application while trying to lock by reading a file.
I have updated the first entry of the thread with some more info and the file.
Any comments are welcome.
Enjoy

I love it. It's simple and effective. Just the way I like things. I'll keep testing it for a while and report back.
I've got another idea actually.TODAY option works really well, the only 'problem' (its not a problem,just room for improvement ) that you need to reopen all the windows you had opened before.
How about an option TODAY&BACK when the minimised windows would be reopened when unlocked? In other words-minimised when locked, back to what it had been before locking when unlocked? It would make it perfect (until next idea strikes)

Anyone tested it on WM5?

Related

PortSIP WM6 Auto Connect and Disconnect Patches

APPS ARE A FEW POSTS DOWN CREATED BY RYANMOGUL
I ALSO LINKED ADDINTIMER TRIAL WHICH SCHEDULES RUNTIME OF APPS
certainly there are the registry hacks to disconnect the internet
but i'm looking for a method to turn it on
i've seen the registry hack to make the internet on permanently
this isn't what i'm after
i'll tell you why i want it
voip phone...specifically PortSIP
it doesn't connect to the internet on its own
and i dont like opening the browser everytime i want to use PortSIP
thanks for any tips at all about firing up the internet easily
i'll continue to search but figured i would make this post after my first couple hours of unfruitful digging.
bump...
still searching
bounty?
eigerzoom said:
bump...
still searching
bounty?
Click to expand...
Click to collapse
I got you covered, i will write you a mortscript that doesnt eat battery or nothing. I can either make it to assign a button, connect internet when pressed, disconnect when pressed. Or I can make it automatically connect when you open a certain program or game or w/e. Let me know what you want and the name of the exe you are trying to use.
Edit: Let me know the name of the exe ex: GoogleMaps.exe and also the location of the exe, not the shortcut. ex: mydevice/program files/googlemaps, mydevice/windows, storage card/program files. Etc.. Otherwise I will just make you a Connect/Disconnect mortscript to assign to a button or click to run.
nice ryan
um is there anyway just to have an .exe or something i can link to in program files to run the connection...
shutting off the connection would also be a major plus...but i wont hold it against you
if i have to settle for one prog access here is the lineup
portsip is located at: /Program Files/PortSIP/PortSIP_WM6.exe
thanks for your dedication
i will donate for this
this is the last step to achieving scheduled running of portsip to enable free incoming calls using google voice/gizmo5 during day minutes
i may have to use a different voip app in the future so if at all possible to just be a unique mortscript.exe that would be ideal...
and probably more usefull for others and whatever they might need done
(free incoming calls = paid unlimited data)
You must not know what mortscript does. I can make it any way you want. It requires skill and know how so you can only make one script per program. Thats because you have to create a shortcut to the Mortscript file and make sure the icon looks like your program (if you want it done professionally). I use shortcut manager and edit parameters.
To make it automatically connect doesnt cost the battery or any memory resources. It doesnt use any "while" commands that run at all times. Now this other way uses more battery but I can also make it so that when you launch the program it will automatically connect to the internet and the script will continue to run in the backround until you actually close the program. At that point it would disconnect from the internet and stop running the script.
Or I can make it just a shortcut in your start menu folder somewhere and you can click on it, or assign to a button.
Now if you dont care what the shortcut looks like and you just want the liberty of being able to use it for other programs thats very easy. Just open my mortscript file with notepad, or wordpad (on PC) and edit the run command matching where your exe is. then simply copy and paste it on to your ppc wherever you want in the start menu.
Just really let me know what you want, and I will get to work on it now.
if you can do anything about making sure the data connection stays active that would be nice
i'm not actually sure at this point of it times out or not
some apps close the connection when exited...
registry edit would be nice...again not 100% sure if its a concern or not...
just saw your last reply
to save complication
i will opt to just have portsip connect when started and close connection when exited
eigerzoom said:
if you can do anything about making sure the data connection stays active that would be nice
i'm not actually sure at this point of it times out or not
some apps close the connection when exited...
registry edit would be nice...again not 100% sure if its a concern or not...
Click to expand...
Click to collapse
you said you already found out how to make the data connection always on?
I never asked if it times out, but it probably goes stale "times out" eventually. Plus setting your phone like that EATS mad battery.
Yes some apps do close the data connection, thats all commands in the programs .dll's. No registry edits for it, registry is not the magic answer to every workaround on PPC's. Thats why they have the program Mortscript, and its Mortscipters "me"
yea i just meant in general...not app related...
i'm not sure if the internet connection will time out at all
i'm assuming that would be in the registry
timeline wise:
portsip opens & connects 7am ::: 12noon internet disconnects from timeout
(not looking for scheduling...i'm using a program called addintimer to start/stop portsip)
Now the information you are giving is getting confusing.. You said that PortSIP doesnt automatically connect to the internet and now you are saying you use Addintimer to automatically open and run it.. You are leaving out details, like how you set up your addintimer to run it, did you have to point to a shortcut for PortSIP? Did you have to point to the EXE, I need to know these things or else you are not going to get what you want out of the deal. So you are saying addintimer opens PortSIP at 7am and connects to the internet like normal right? You just want it so during other times if you open PortSIP that it will automatically connect to the internet right? Am I on the right page now let me know. I will get started.
ok...thanks
addintimer starts or kills the process
using addintimer you assign a start or kill on a schedule to the .exe directly
hope that helps
if its easier just to create a program shortcut which enables the internet by all means
then i can just link addintimer directly to your mortscript 1 minute before portsip...etc
i think this method would be more universal for others to make use of it as well
sorry to leave the decision in you hands...
i know its easier to work with specific direction...lol
and thanks again for your attending to my needs
eigerzoom said:
ok...thanks
addintimer starts or kills the process
using addintimer you assign a start or kill on a schedule to the .exe directly
hope that helps
if its easier just to create a program shortcut which enables the internet by all means
then i can just link addintimer directly to your mortscript 1 minute before portsip...etc
i think this method would be more universal for others to make use of it as well
sorry to leave the decision in you hands...
i know its easier to work with specific direction...lol
and thanks again for your attending to my needs
Click to expand...
Click to collapse
So what do you do right now? Just leave your data connection running before you goto sleep? Because you still arent answering if the program addintimer launches the internet also.
ok
well if you want to just post up the .exe that initiates the internet then i can just link it into addintimer
i dont know what starts the internet...hence my issue here...
right now i manually connect to the internet before using portsip by opening a browser and leaving it open
day minutes are 7am to 7pm...and so i see an extended battery purchase in my future
but my phone is plugged in most of the time anyways...so this isn't a huge deal for me
Ok gotcha, mortscript file is not an exe. Its a .mscr or .mortscript extenstion.
and the files use the app Mortscript.exe to run the commands.
I am making a cab which will install mortscript, and the Data Toggle shortcut in Start menu.
i have mort installed...however it might help others to include it
its not that i dont understand what mortscript does...
its more not knowing what initiates the data session
thanks again
well i just found this registry entry which may help with the potential stale connection issue
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}
dword: StaleCellularConnectionFixEnable
maybe setting it to 1 will insure she stays on once i get this all working
currently set to zero
PortSIP WM6 Auto Connect Only and Auto Connect and Disconnect PATCHES​
These patches are only for PortSIP WM6 version. The patches do not install PortSIP, but they overwrite the shortcut to it in programs. So if you uninstall this you lose your PortSIP shortcut which can easily be re-created through your phones file explorer.
These Patches will work perfectly with how you have your PortSIP set up and any programs you may use to launch apps at certain times or automatically "addintimer".
The Auto Connect and Disconnect "ACD" Patch will install Mortscript files to a new folder in your Start Bar/Programs called Scripts. There will be ConnectData and DisconnectData those are obvious what they do, and there will be Startscript and Endscript. That way you can set your addintimer to Startscript, then PortSIP, and then Endscript. This will save your battery life! Say you start PortSIP the while command is running, when you exit PortSIP the while command and mortscript stop. So in between uses it does not waste battery life. Thats why I have the shortcut to PortSIP set to re-launch the while command and the PortSIP.exe. Now another thing say for example when you reset the phone the While commanding mortscript in startup folder is running until you start up PortSIP and exit it. You can use the Endscript when you first boot if you are not planning on using PortSIP to save battery life.
You can just click to run each of these mortscripts. If you arent going to use PortSIP run the Endscript so it turns it off. The PortSIP will automatically start the script when launched from Start Bar/Programs folder. I hope this explains how to use the Patches I spent hours trying to figure out the best way to accomplish your tasks.
These Patches will install Mortscript.exe and its registry entries, it will also install 6 mortscripts. 4 are explained above 1 is linked to the PortSIP shortcut and 1 is in your startup folder and that automatically connects and disconnects PortSIP when opening, and closing the program. Its the main script that runs automatically at startup and that Start and End will work with to enable or save battery without having to soft reset).
But for installing the Patches you have to soft reset afterwards to activate the Startup file PortSIPacd.mscr that the CAB installs in your start up folder.
The Auto Connect Only "AC" patch automatically starts the data connection when running PortSIP without using while commands (will only work using PortSIP shorcut in programs). Downside to that is it will not end the data connection. That can easily be ended by pressing and holding the End Call key for a couple seconds. The Patch also installs Mortscript and Connect and Disconnect shortcuts to scripts folder for you to use.
***This paragraph is for people not using PortSIP that still want to use the Data shortcuts! Here is a Data Toggle Shortcuts CAB to install. It will install Mortscript and create a scripts folder with Connect Data and Disconnect Data shortcuts.***
Each patch should be uninstalled before applying the other patch..
here's a copy of addintimer trial if anyone is interested
lets you schedule just about any kind of event on your phone
app/shortcut start & kil...alarms and more i haven't looked into...lol...
eigerzoom said:
here's a copy of addintimer trial if anyone is interested
lets you schedule just about any kind of event on your phone
app/shortcut start & kil...alarms and more i haven't looked into...lol...
Click to expand...
Click to collapse
Good share, and also Thanks for the donation eigerzoom!
BUMP !!!
for official thread name change and general awesomeness...

[APP] LightJacker, the ultimate backlight fix & more

LightJacker 1.0.3
Universal backlight fix / TomTom backlight fix
for WM5 & Up​
Hi guys! I just installed TomTom on my S740 and found it still has that annoying bug where the backlight keeps going off, so I decided I would write my own app to fix this problem.
It features completely transparent operation with backlight resuming normal function when the target app is not focused (i.e. when one minimizes TomTom), universal-ness so it can be applied to any app, lightweightness, and doesn't touch the system in any way.
In future, I may also expand it to support configurable key-to-key and key-to-mouse translation, to make some PocketPC-only apps usable also on the Smartphone.
For the interested, see all the details at the program's webpage.
And let me know what you think about it.
Thank you!
Thanks! I think it is a great idea!
I have been looking around for such app to keep the backlight always on when necessary - e.g. reading e-books, watching video and etc.
My feedback is it may be a little troublesome to do the link to each application you want to apply?
Is it possible to make it a background app, whereby when turned on it keep the backlight on always, but when turned off it revert back to the default setting in Power management.
Thanks.
zhuozhi211 said:
Thanks! I think it is a great idea!
I have been looking around for such app to keep the backlight always on when necessary - e.g. reading e-books, watching video and etc.
My feedback is it may be a little troublesome to do the link to each application you want to apply?
Is it possible to make it a background app, whereby when turned on it keep the backlight on always, but when turned off it revert back to the default setting in Power management.
Thanks.
Click to expand...
Click to collapse
I've put on my web page an easier semi-automatic procedure for creating the link, you just have to enter the path to the executable and the name for your shortcut, and download the ready-made .lnk file (be warned that it doesn't work with firefox, though, but it does with IE and Opera.)
I don't think it's so difficult and time-consuming now
There already are apps or mortscritps that do what you want, I.e. changing the systemwide setting, but it is exactly what I don't want to do: impose additional hassle on the user having to start/stop an app, and mess with registry and systemwide settings... I wanted LightJacker to be as invisible to the use as it could.
Hi there thenext1, I tried your app and the set up was fine and it works great, so thanks very much for that. I like the way it picks up the icon from the original app, this got me thinking that you could make an adaption of your app that just injected a new icon into a shortcut for any app and that is all it would do, just to change the icon for any app and nothing else, if you see what I mean, sorry to be a little off topic but just a thought. I have some apps that have horrible Icons I would like a simple way of adding my own Icon into a shortcut. "IconJacker"
uniqueboy said:
Hi there thenext1, I tried your app and the set up was fine and it works great, so thanks very much for that. I like the way it picks up the icon from the original app, this got me thinking that you could make an adaption of your app that just injected a new icon into a shortcut for any app and that is all it would do, just to change the icon for any app and nothing else, if you see what I mean, sorry to be a little off topic but just a thought. I have some apps that have horrible Icons I would like a simple way of adding my own Icon into a shortcut. "IconJacker"
Click to expand...
Click to collapse
That function is outside LightJacker's scope, anyway, you can try editing the .lnk file and changing the last path after the "?" mark to reflect a path to an .ico file on your phone, and editing the last number to be zero or remove it with the comma altogether.
I don't know if it will work.
Perfect idea! Sounds like a super program!! I have been looking for a feature like this!
A question: can it monitor several programs also? (e.g. Tomtom and igo and acrobat reader)? Seems like the shortcut generator can only support one program...
parkhaus said:
Perfect idea! Sounds like a super program!! I have been looking for a feature like this!
A question: can it monitor several programs also? (e.g. Tomtom and igo and acrobat reader)? Seems like the shortcut generator can only support one program...
Click to expand...
Click to collapse
Just create a shortcut for each of your program.... be warned though, I didn't test multiple programs at once. It might not work.
Has anyone gotten this to work with an HTC Touch Pro? I've tried installing this - and after I create the shortcut, and click the master app I'm trying to keep lighted - I get the following error message:
"The file 'ljack' cannot be opened. Either it is not signed with a trusted certificate or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file."
When I click on the ljack.exe file on it's own - I get the following message:
"LightJacker error 2"
I'd read that another program that requires a purchase, "smartlight" was incompatible with our phones, so I'm wondering if it's something unique to the Touch Pro.
P0ll0L0c0 said:
Has anyone gotten this to work with an HTC Touch Pro? I've tried installing this - and after I create the shortcut, and click the master app I'm trying to keep lighted - I get the following error message:
"The file 'ljack' cannot be opened. Either it is not signed with a trusted certificate or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file."
When I click on the ljack.exe file on it's own - I get the following message:
"LightJacker error 2"
I'd read that another program that requires a purchase, "smartlight" was incompatible with our phones, so I'm wondering if it's something unique to the Touch Pro.
Click to expand...
Click to collapse
Error 2 means that an incorrect command line was supplied - in your case, no cmd line at all.
The other error with the proper shortcut is a windows mobile generic error, and I don't know why it comes up, it should run fine as it does when start ljack.exe on its own....
Maybe your phone isn't fully app-unlocked?
A super idea for a program! however, a GUI would be nice....
command-line options are not very handy. And I think that is where the Error 2 comes from. I also had trouble using your .lnk maker.
Hmmm, your site seems to be down.
Any chance you could upload the cab here on xda?
Yes, I confirm...
I tried several times.... The website is dead since this morning. So, no chance to download this promissing application until now.
For a very similar app go here:
http://oldsap.blogspot.com/2009/02/dontsleep.html
there is a version which prevents the PPC from entering standby, and one that does it only while wifi is on. Also a great app!
arturobandini said:
Yes, I confirm...
I tried several times.... The website is dead since this morning. So, no chance to download this promissing application until now.
Click to expand...
Click to collapse
You are right! Will investigate the problem.
@parkhaus: what'd be the GUI for?
I would love to have a program that keeps the backlight on when certain programs are running (Adobe reader, Tomtom, ebook reader, etc).
A menu for defining those programs would be great! making shortcuts for each program is a bit too complicated for most users.
A solution in MortScript you can find here
Note: knowledge of german language is required
parkhaus said:
I would love to have a program that keeps the backlight on when certain programs are running (Adobe reader, Tomtom, ebook reader, etc).
A menu for defining those programs would be great! making shortcuts for each program is a bit too complicated for most users.
Click to expand...
Click to collapse
An utility in .NET CF can be easily made, but I absolutely don't have any spare time to do it.
Or you can use the method provided by the above users, although it's the old method of changing values in the registry.
Thankyou very much, I needed an app like this for Memory-Map OS5 (App for Off-road satnav in the UK).
I don't suppose you use winmo 6.5 do you? I have another problem with that app in 6.5 where it has icons along the bottom like 6.5 does - however, as 6.5 changes the width of the icons at the bottom, I cannot see all the icons when in the app. If there is any chance you could also code something to alter the size of the bottom buttons whilst in a certain app, that would be even better!
There is a free trial @ http://www.memory-map.co.uk/ should you care to try and code this in.
OK, I used and tested this with TomTom and Memory-Map, and all seems good.
A couple of things, however.
As the size of the app is so small, why go around duplicating it?
Personally, I found that putting LightJacker in \Program Files\LightJack and then doing my app shortcuts like this:
107#"\Program Files\LightJack\ljack.exe" \Program Files\Navigator\TomTom Navigator.exe?TomTom Navigator.exe,101
Meant that I could:
a) Only keep one copy of lightjacker for multiple apps. If there is an update, you only need replace the exe and dll once.
b) Use the shortcuts anywhere. I have one shortcut in the start menu, and one in the app folder. That way, if you have to pick an app via a folder list that starts in the root, you do not have to navigate through the windows folder to get to the start folder, which takes ages
Working on Rhodium (ATT Tilt2 - WM 6.5)
This works on my Tilt2, but with the following tweaks.
The author's site recommends this format for the .lnk file, but this didn't work for me. It produced and Error 4:
123#"\Storage Card\Program Files\GoogleMaps\ljack.exe" GoogleMaps.exe?\Storage Card\Program Files\GoogleMaps\GoogleMaps.exe,101
But using the format in the previous post, it works - the backlight stays on while this program is the front program, and the backlight dims properly when the program goes into the background or is shut down:
123#"\Storage Card\Program Files\GoogleMaps\ljack.exe" \Storage Card\Program Files\GoogleMaps\GoogleMaps.exe?GoogleMaps.exe,101
The only thing not working is the icon. Following the advice on the author's site, I used Resource Hacker to find the Resource ID for the icon, which appears to be 800. But changing that in the link file stilll results in the link showing a generic icon.
Any suggestions on how to get the proper icon to show in the Start Menu for Google Maps?

Help! Can't hang up call.

I am not sure what all I did here while tinkering with my settings. But, I cannot access the buttons during a call. See picture:
(REMOVED) 1.To prevent spam to the forums, new users are not permitted to post outside links in their messages. All new user accounts will be verified by moderators before this restriction is removed. You got to be kidding me... Anyways, see attachment below.
I am new to these flash ROMs. Here's what I've got:
Using NFSFAN's latest build w/ WM 6.5.5.
Selected Windows Default as startup screen (disabled HTC Sense)
Added SPB Mobile Shell as my startup screen (quite nice actually)
This seemed to work fine before. And then, I started with the tinkering (finally have access to my full WM! Thank you and donated! But, with lots of settings comes lots of responsiblity...)
After I messed around with what seems like hours (no kidding), I did not try any calls. I later installed S2U2 (Slide to Unlock 2, an iPhone-like Locking app) and it has a crap-load of settings! Again, messing with them.
Someone just called me (I rarely get calls) and I noticed that I cannot hit any of the buttons at the bottom.
Help!
I wonder if it is the "Sprint" black bar at the top witht he empty white container pushing everything down?
If anyone has seen this, and knows the secret, please help! Else, I guess I will have to erase, reflash, and start all over.
eduncan911 said:
I am not sure what all I did here while tinkering with my settings. But, I cannot access the buttons during a call. See picture:
(REMOVED) 1.To prevent spam to the forums, new users are not permitted to post outside links in their messages. All new user accounts will be verified by moderators before this restriction is removed. You got to be kidding me... Anyways, see attachment below.
I am new to these flash ROMs. Here's what I've got:
Using NFSFAN's latest build w/ WM 6.5.5.
Selected Windows Default as startup screen (disabled HTC Sense)
Added SPB Mobile Shell as my startup screen (quite nice actually)
This seemed to work fine before. And then, I started with the tinkering (finally have access to my full WM! Thank you and donated! But, with lots of settings comes lots of responsiblity...)
After I messed around with what seems like hours (no kidding), I did not try any calls. I later installed S2U2 (Slide to Unlock 2, an iPhone-like Locking app) and it has a crap-load of settings! Again, messing with them.
Someone just called me (I rarely get calls) and I noticed that I cannot hit any of the buttons at the bottom.
Help!
I wonder if it is the "Sprint" black bar at the top witht he empty white container pushing everything down?
If anyone has seen this, and knows the secret, please help! Else, I guess I will have to erase, reflash, and start all over.
Click to expand...
Click to collapse
That's what I would do. It seems that you may have tinkered with something under Advanced Config, but I am not sure...
Just hard reset. There is no need to reflash.
Thanks egzthunder1. I'd rather not have to re-setup the device. Took me over a year to finally just do it due to time constraints.
I found the setting(s). Under S2U2 (Slide 2 Unlock 2)'s settings, there are Phone options. I played too much with these, and I think (didn't verify) that it has to do with the Caller ID option set to FullScreen.
Anyways, I am attaching the settings for S2U2 that FIXED my calling issues.
Thakns!
-E

Smart Action app for other phones?

Didn't want to post this in the dev section but this app seems extremely useful and I was curious if there was any way of extracting it for use on other android devices?
That would be very darn useful for everyone.
I'm using tasker . . . you can do alot of creative stuff with it, but it is kinda complicated and costs ~$6
mel493 said:
I'm using tasker . . . you can do alot of creative stuff with it, but it is kinda complicated and costs ~$6
Click to expand...
Click to collapse
I have tasker as well but in general I dont find it super user friendly. From the looks of it Smart Action could replace tasker as well as juice defender which I also use.
I've already made one for home, work and when I go to bed. It seems pretty user friendly to me. Excellent app.
Heh, even if someone extracts it, it needs Blur libraries and frameworks, too.
kholk said:
Heh, even if someone extracts it, it needs Blur libraries and frameworks, too.
Click to expand...
Click to collapse
I've seen harder things get ported on xda just needs willing developers
I haven't really had a look at this Smart Action App yet as I still haven't received my microsim. I was wondering how sophisticated it is?
Is it possible to have it read sms when connected to bluetooth, for example? I attempted this with Tasker on my Defy with no success - I don't think Tasker liked MIUI very much
stunno said:
I haven't really had a look at this Smart Action App yet as I still haven't received my microsim. I was wondering how sophisticated it is?
Is it possible to have it read sms when connected to bluetooth, for example? I attempted this with Tasker on my Defy with no success - I don't think Tasker liked MIUI very much
Click to expand...
Click to collapse
Tasker does many things but in terms of doing things you need to know the proper terms for the various variables etc for what you want to do which isnt too simple
Here are some premade ones you can download or make but none for what you wanted
http://tasker.wikidot.com/profile-index
As an example of how complicated it can get with tasker is the following. How to make a battery full notification.As you can see the app lets you do allot but is not super user friendly. Smart Action may not be able to do all that tasker is able to but may be able to do most and may be more user friendly
click New and select Event
select event category Power and event Battery Full
click Done
click + in the bottom left to add an action
select category Alert and action Notify (Sound)
type Battery Full! in the Title field
click Done
To avoid getting a repeat notification within 30 minutes, we add a cooldown:
Click on the profile and select Profile Properties
Slide the Cooldown Time slider to the far right
Click Done
Alternative solution to avoid repeat notifications (added by b00ky)
Set a variable such as "%BFN" to 0 anytime you plug in your phone
Edit the "Notify Sound" task to only run "If %BFN < 0"
Add a new task "Tasker » Variable Set » %BFN to 1"
This has worked for me and makes sure you only get notified ONCE while it is plugged in as opposed to after 30 minutes of cooldown.
I'm new to this so I apologize if this is not a good way to do this, but it works for me.
An alternative to the alternative to avoid repeat notifications. If you tend to leave plugged in for long durations, 30 minute cool down may not do it for you. The below gives you a one time notification that your battery is full, and wont repeat until you unplug/replug back in. phonedude
Profile - Battery 100%
Event - Battery Full
Enter task -
1. Play your sound
2. Set Profile Status {Battery 100%} to Off
Exit task-
n.a.
Profile - Plugged In
State - Power (Source = Any)
Enter task -
1. Profile Status {Battery 100%} to On
Exit task-
1. Profile Status {Battery 100%} to Off
Thanks for that fidorulz! Much appreciated. I notice on that site that the guy tried to get the read SMS to work and failed, tried again and got it working but doesn't know how!
http://tasker.wikidot.com/readsmswhileincardock
I found a walk through on here that would not work either and I assumed it was because of MIUI, as Tasker didn't register any SMS being received. It seems that the %SMSRF and %SMSRB variables only get initialised when an SMS is received.
I will patiently wait for tmobile and the royal mail to get their fingers out and deliver my microsim and I will give it another go
I use "Setting Profiles" pretty simple and powerful, a lot easier to use than tasker (although not quite as powerful in the nitty-gritty) but definitely hits the 80/20 rule. It costs, but I believe there is a free version to try out the functionality and see how you like it.

App idea: tell time through vibration

Hello,
I have recently bought a watch with Wear OS 2. I quite like it, but I am missing one nice feature from competition watches. I am blind. Apple watch and some other specialised devices can tell you time by certain vibration patterns. e.g. 5:30 am - 5 short vibrations, then pause, then 3 short vibrations... etc. I am thinking about creating something with Tasker, but this would require connection to the phone all the time.
Would someone take this as an interesting project? Or maybe would someone give me a helping hand in developing this? I am a programmer but never programmed for Android unfortunately.
what would be your preferred way of activating the vibration?
i'm thinking about an empty watchface which could, whenever it's activated either by gesture or button, start the time pattern.
also please let me know how exactly such a vibration pattern would best look like. (first hours then minutes, ok. what about 11:34 ? also seconds are not needed i guess?)
I might do a quick app
I really like this idea because the watchface would be sooo battery friendly
btw: any idea for a good name? I think I would go for "time feel watchface" if no one's got a better idea
if everything goes right, I will have a first test version by tomorrow
update: basic watchface running. gonna implement vibration pattern tomorrow.
need info:
-i assume it's no problem that the watchface is always black, this is to save as much battery as possible
-any symbol maybe for blindness i could use for the icon / watchface preview?
-should the vibration pattern start again if you touch the screen?
----I find this problematic because screen usually is only on for a few seconds, maybe i have to let it stay on as long as the pattern is running and it would go to standby immediatly after that... so i'm not quite sure how to handle this
-is a 24 hour mode needed or should it even be default?
Hi, thanks for your response. Yes this is aimed at blind people specifically, I am blind my self. Yes blind people use smart watches, mostly from Apple, but there are also some users of Android Wear OS.
wow I read your reply just now and it seems cool. I have a few points:
A watch face is an interesting idea, but for example I would prefer it to be just an app which even does not launch a screen, does the vibration and exits. I use information I have on my watch face, I use screenreader to read info about upcoming events, battery etc. You may ask why do I need this vibration way of telling time when I can read it from the watch face? Well it is more discrete and does not bother surroundings. I could assign a specific gesture in the screenreader which would launch the app and do vibrations.
Honestly, I am probably the only Wear OS user in Czech Republic and I have to get connected with other blind people to get their opinions.
I think 12 hour format should be OK so far.
so basically you just need an app that vibrates the time when launched?
for example 5:33 x x x x x pause x x x pause x x x?
then i need to rethink that. but that should be even easier
Yes, for me this would be enough. Ideally if the app would do it without displaying any window so that the screenreader does not read anything. Is that possible? I am sorry I did not clarify this at the begining.
As to how to do vibrations:
I imagine this schema:
1 - one short vibration
2 - two short vibrations
3 - three short vibrations,
4 - four short vibrations,
5 - one long vibration
6 - one long vibration, short pause, one short vibration
...
9 - one long viberation, short pause, four short vibrations
0 - long vibration, short pause, long vibration
e.g.
10:56 - short vibration, long pause, long vibration, short pause, long vibration, long pause, long vibration, long pause, long vibration, short pause, short vibration
here's a first prototype.
do you know how to install apk to your watch? you need to enable ADB and WiFi Debugging to install wireless over ADB
let me know what you think. is it too fast?
i know it's not perfect, for example you need to exit the app to relaunch the pattern. i can fix that - can i let the app run the pattern and immediately exit? so you wouldn't need to exit manually everytime
Hello, you are amazing! So fast! Thank you very much. I tried the app.I have few questions:
1. Vibrations are quite fast. Could you make it a bit slower? Let's say that the long pause among numbers could be 1 second?
2. Could you make it so that the app does not open any window? That after launching the icon everything happens in the background?
3. Will this work also on phones or only on watch?
Thank you so much. If you don't mind, I would like to spread the word about this among other Wear OS users.
1. sure. i actually use two different long pause durations: one between the digits and one between hours/minutes
---i need to do this because leading zeros are ignored. i could also do leading zeros so you always have 4 digits and pause can be constant, but imho that's not as efficient
2. In this new version the window exits after launch, I hope that's fine. also fixes not working on second launch and makes the app not stay in RAM.
3. This version is only for Wear OS, but I could copy it to an android app.
Of course you can spread this app however you like. when it's done I can attempt to publish it to the play store.
please check this new version. is it still too fast?
also 12 a.m. seems to be treated as "0". should i change this?
new version with fixed 12 a.m.
if you are fine with this state i'm going to finish it and publish it to play store
Wow thanks, this look very well. I still have a problem with the app creating a window. The problem is that when the window is created and closed again, the screenreader reacts to that - in this case after closing the app window it reads info about previously opened window or a watch face. That is a bit problematic as my idea was to not make any sound at all, so that one can check for the time discretely.
Would it be possible to not display any window at all? Maybe running as a service which would be waiting for the launcher icon to be pressed? I am not good at Android internals so maybe it is a stupid idea.
krecoun said:
Wow thanks, this look very well. I still have a problem with the app creating a window. The problem is that when the window is created and closed again, the screenreader reacts to that - in this case after closing the app window it reads info about previously opened window or a watch face. That is a bit problematic as my idea was to not make any sound at all, so that one can check for the time discretely.
Would it be possible to not display any window at all? Maybe running as a service which would be waiting for the launcher icon to be pressed? I am not good at Android internals so maybe it is a stupid idea.
Click to expand...
Click to collapse
now I understand the problem. I need to look into this later. but I guess that's doable.
update: I tried to replicate your problem. I enabled talkback and started the app. only thing I can hear is a click when launching the app. is that what you are talking about? If so, I don't think that can be prevented as it's caused by the launch of the app.
-sorry, I didn't read correctly. so the problem is that it starts reading the previous app. that's a problem. I didn't find an easy way to fix this - as far as I read you cannot launch an app without starting an activity. at least not with an app. maybe i could make the watch sleep after launching? or you can find a solution with tasker or something similar
Hypothetic idea:
Let's say that the app would be running as a service after start. I don't know if this is possible in Wear OS.
1. After clicking the launcher icon, check if the service is already running.
2. If not, launch it. You can display even a window and close it, well while launching the service we probably won't avoid that but that's acceptable.
3. If yes, don't show anything but send some intend / activity / however it is called in Android to the running service which will do the vibration.
Is it doable?
the thing is afaik an app launch always needs to launch an activity.
if i'm wrong i hope someone corrects me
How about this?
https://stackoverflow.com/questions/2704084/how-to-launch-an-activity-without-a-ui
krecoun said:
How about this?
https://stackoverflow.com/questions/2704084/how-to-launch-an-activity-without-a-ui
Click to expand...
Click to collapse
it says you can have an app that's a service only, which starts on boot an can receive intents. but how do you call it? you need to activate something. you could maybe do it as a compilation, but as I see it it's not possible by launching an app.
I see two easy solutions:
-let the app run in an empty window
or
-let the device go to standby after vibration
update: I looked into this a bit more. I guess my solutions would not work. an app can't send the device to sleep and if I show an activity the screenreader always reads the app name...
so I can't help you any further. maybe someone else can
Hi, sorry for looong delay. I must say that I am using your app quite successfully. Sometimes it talks but mostly it does not and vibrations work as expected. Great work. Maybe you could release this app into Playstore, some other blind people could benefit from that or make more suggestions.
krecoun said:
Hi, sorry for looong delay. I must say that I am using your app quite successfully. Sometimes it talks but mostly it does not and vibrations work as expected. Great work. Maybe you could release this app into Playstore, some other blind people could benefit from that or make more suggestions.
Click to expand...
Click to collapse
Thanks for your feedback, i'm glad you like it.
I find myself running it from time to time, just to see if I can feel the time
I'm gonna try to publish it when I find time. I'm currently starting work at a different project.
Just came across this thread. Very interesting project!
I, myself, am not blind, but I like the direction this is going! I am going to try it out!
Have you published this to the Play store as of yet? This could be good! ??
Yeh, this is a unique app concept for many!
sorry, for not responding in almost a year.
best would be to bake this function into the os, or make it activate by gesture... wouldn't this be awesome? telling time without ears and eyes, just by a movement...
I just remembered this app and thought i might finish it and add it to play store.
HOPEfully this weekend

Categories

Resources