Help for run program exe when rotate with script, manila control, m2d - General Questions and Answers

Hello,
I need your help smile.gif
I explain
With this script ( mortscript ):
Code:
flag = Question ( "Do you want to launch TouchFLO?", "Startup", "YesNo" )
if ( flag = 0 )
RotAngle = -1
endif
While (RotAngle > -1)
RotAngle = RegRead ("HKLM", "\system\GDI\Rotation", "Angle" )
if ( RotAngle <> PrevAngle )
if ( RotAngle > 0 )
flag = ProcExists ("Manila2d.exe")
if ( flag eq TRUE )
Kill ("Manila2d.exe")
endif
Sleep (10)
else
mywindow = ActiveWindow ()
if ( mywindow eq "Desktop" )
if ( ProcExists ("Manila2d.exe") ne TRUE )
Run "\windows\Manila2d.exe"
endif
Sleep (20)
endif
endif
else
if ( RotAngle = 0 )
mywindow = ActiveWindow ()
if ( mywindow eq "Desktop" )
if ( ProcExists ("Manila2d.exe") ne TRUE )
Run "\windows\Manila2d.exe"
endif
Sleep (20)
endif
endif
endif
PrevAngle = RotAngle
Sleep (10)
endwhile
When i rotate my screen, TouchFlo Disable
But
I want when rotate my screen, TouchFlo Reduce
I can do it with Manila Control ( MastSogo_MC_WWE ) and the M2D_Ctrl file's !
Can you help me please ?

Related

Hardware keyboardfix for WM6.5

I have the problem with the 6.5 rom releases and the English qwerty hardware keyboard not working properly.
The shift key transfers me to messages and the caps lock key gives me a virtual figures keypad.
(besides the capslock and shift function that works a well.)
The figures above the numeric keys on the harware keyboard does not work as well.
It seems that it is not going to be fixed soon, so I made a little workaround:
1. Install EA Keyboard Mapper for Windows Mobile
(v0.9.4 (Beta), December 4, 2004)
http://ae.inc.ru/aekmap094.php
2. Make a file called "English x7510.AEK"
And paste the folowing code in it:
Layout English - X7510
Hint English
HookShift 1
HookCapsLock 1
key 0031 c0021 c0031 c0021 c0031 ; 1 !
key 0231 c0021 c0021 c0021 c0021 ; !
Key 0032 c0022 c0032 c0022 c0032 ; 2 @
Key 0232 c0022 c0022 c0022 c0022 ; @
Key 0033 c0023 c0033 c0023 c0033 ; 3 #
Key 0233 c0023 c0023 c0023 c0023 ; #
Key 0034 c00A7 c0034 c00A7 c0034 ; 4 $
Key 0234 c00A7 c00A7 c00A7 c00A7 ; $
Key 0035 c0024 c0035 c0024 c0035 ; 5 %
Key 0235 c0024 c0024 c0024 c0024 ; %
key 0036 c0036 c0036 c0036 c0036 ; 6 ^
Key 0236 c0036 c0036 c0036 c0036 ; ^
key 0037 c0037 c0037 c0037 c0037 ; 7 &
Key 0237 c0037 c0037 c0037 c0037 ; &
key 0038 c002A c0038 c002A c0038 ; 8 *
key 0238 c002A c002A c002A c002A ; *
key 0039 c0028 c0039 c0028 c0039 ; 9 (
key 0239 c0028 c0028 c0028 c0028 ; (
key 0030 c0029 c0030 c0029 c0030 ; 0 )
key 0230 c0029 c0029 c0029 c0029 ; )
Click to expand...
Click to collapse
3. place the file inside the AE Keyboard Mapper folder on the x7510. And select the profile in the EAKMap Settings. You can find it in programs.
My shift and caps lock work as intended again and some of the figures above the numeric work too. Some of them still don't work and I am trying to figure out why.
Cheers!
Other solution that work for me on ezinput 2.1:
- Copy the attached file to \windows folder
- Replace the following registry key to map the new keyboard file
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Tegic\eT9\IME\KeyboardLayouFiles]
"07FF"="eT9.Athena.kmap.txt"
Can this fix work perfectly with Athena X7500?
Cheers.
YOSEFE said:
Can this fix work perfectly with Athena X7500?
Cheers.
Click to expand...
Click to collapse
I think yes, but I'm not sure. Just test it and tell us the result (you can undo the changes, so there is no risk)
xtep said:
Other solution that work for me on ezinput 2.1:
- Copy the attached file to \windows folder
- Replace the following registry key to map the new keyboard file
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Tegic\eT9\IME\KeyboardLayouFiles]
"07FF"="eT9.Athena.kmap.txt"
Click to expand...
Click to collapse
It works very well.
Thanks a lot!

Hold a button to start a program

Hello, i want to custom the HTC'Button
I don't know how to do that, but i know it's in Base register
For ComManager i know it's
Code:
HKLM\Microsoft\Shell\Keys\40C6
default = \Window\CommManagerLink.exe (pour l'exemple) (String Value)
Flags = 0 (DWORD Value)
Icon = \windows\SendKeyIcon.exe, 0 (String Value)
Name = Send key(Hold) (String Value)
And it work
and now i want to start TaskManager with the windows button...
Please help me! Sorry about my English
Just use AE Button Plus.
The easiest and the best.

ATTN: ADMiN and other htm editors / users ; ADD CLOCK.HTML to web page!

Hello all,
Here's a nice code to add a live clock into a web page;
Code:
<!-- The following file is an HTML Wallpaper for use with Microsoft -->
<!-- Internet Explorer 4.0. -->
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Notepad++v5.6.8">
<meta name="Clock http://forum.xda-developers.com" content="With courtesy of German magazine PC-WELT http://www.pcwelt.de"
<title></title>
</head>
<body scroll="no"
style="background: rgb(255, 255, 204); margin: 0; font: 8pt Verdana">
<div id=Clock align=center style="font-family:
Verdana; font-size: 60; color:#000000"> </div>
<script>
function tick() {
var hours, minutes, seconds;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours(); intMinutes = today.getMinutes();
intSeconds = today.getSeconds(); hours=intHours+":";
if (intMinutes < 10) {minutes = "0"+intMinutes+":";}
else {minutes = intMinutes+":";}
if (intSeconds < 10) {seconds = "0"+intSeconds+" ";}
else {seconds = intSeconds+" ";}
timeString = hours+minutes+seconds+"Hour"; Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);}
window.onload = tick;
</script>
</body>
</html>
Copy and paste the above code into Notepad and save it as makeUPaName.html then double click the file to see what'll happen
IMHO It would be nice to have a little clock in the upper bar
Senax

[Q] HTC HD2 black text on white background Home Screen?

I recently I got a T-Mobile HTC HD2. Instead of the HTC Sense or the Windows Default today screen I just chose Date, Wireless, Tasks, and Calendar items and a Classic Blue background.
This works fine for me but I would still like to improve screen visibility under sunlight. I think that the best would be to have a pure white background and black text.
The background change seems to be easy but what should I do to change the text color to black? Could anyone help me with this? Thanks a lot!
There are white .tsk files around. I did have one but I can't find it.
Failing that you could use a white picture for the background. (use paint to make one, or take a close up picture of a light bulb.) But if you use this method then the system may not recognize that and you may white today text on a white background. If so, you'll need to edit the registry, my mortscript script for this is below -
SetchoiceEntryFormat (30,20,tahoma)
choiceDefault ("today text color", "select color", 7, 9, "black", "white", "red", "green", "blue", "yellow", "orange", "purple")
Case (1)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "00000000")
Case (2)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ffffff00")
Case (3)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ff000000")
Case (4)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "00ff0000")
Case (5)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "0000ffff")
Case (6)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ffff0000")
Case (7)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ff8c0000")
Case (8)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "c000c000")
Case (0)
Endchoice
redrawtoday
Exit
REDw = ("ff0000")
REDr = ("ff000000")
BLACK = ("000000")
WHITEb = ("ffffff")
WHITEw = ("ffffff00")
YELLOWb = ("ffff00")
YELLOWy = ("ffff0000")
GREENb = ("00ff00")
GREENg = ("00ff0000")
BLUEb = ("0000ff")
BLUEb = ("0000ffff")
ORANGEb = ("ff8c00")
ORANGEo = ("ff8c0000")
CYANb = ("00ffff")
CYANc = ("00ffffff")
PURPLEp = ("800080")
bbobeckyj said:
There are white .tsk files around. I did have one but I can't find it.
Failing that you could use a white picture for the background. (use paint to make one, or take a close up picture of a light bulb.) But if you use this method then the system may not recognize that and you may white today text on a white background. If so, you'll need to edit the registry, my mortscript script for this is below -
SetchoiceEntryFormat (30,20,tahoma)
choiceDefault ("today text color", "select color", 7, 9, "black", "white", "red", "green", "blue", "yellow", "orange", "purple")
Case (1)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "00000000")
Case (2)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ffffff00")
Case (3)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ff000000")
Case (4)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "00ff0000")
Case (5)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "0000ffff")
Case (6)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ffff0000")
Case (7)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "ff8c0000")
Case (8)
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "c000c000")
Case (0)
Endchoice
redrawtoday
Exit
REDw = ("ff0000")
REDr = ("ff000000")
BLACK = ("000000")
WHITEb = ("ffffff")
WHITEw = ("ffffff00")
YELLOWb = ("ffff00")
YELLOWy = ("ffff0000")
GREENb = ("00ff00")
GREENg = ("00ff0000")
BLUEb = ("0000ff")
BLUEb = ("0000ffff")
ORANGEb = ("ff8c00")
ORANGEo = ("ff8c0000")
CYANb = ("00ffff")
CYANc = ("00ffffff")
PURPLEp = ("800080")
Click to expand...
Click to collapse
Thanks a lot bbobeckyj for your knowledgeable reply!
As far as I understand, the white background is simple: make a 480x800 white image and select it as background.
As for the black text the problem is that I never used MortScript. I looked at the registry at HKLM\Software\Microsoft\Color and the 4th entry is a 160 byte sequence of hexadecimal numbers (probably 20 colors). I suppose that I should replace 8 of them with the colors in your MortScript script. I just did not figure yet which should they be. I am currently reading the MortScript manual in order to fully understand the script. Hope it works!
Thanks again.
Install mortscript.
Open a text file, paste just the text in this quote -
regWriteBinary ("HKLM", "Software\Microsoft\Color", "4", "00000000")
redrawtoday
Click to expand...
Click to collapse
Close the file, rename the extension from ".txt" to ".mscr"
Execute the script, and it should be done.

[Q] Simple translate animation, not working on Android 4.4.2

The following code, is a simple example of programmatically "WITHOUT XML" translate animation, that works perfect on all versión bellow Android 4.4.2, but does nothing on Android 4.4.2. It's really making me crazy!
Any ideas why?
Tested and working OK on: EMULATOR AVD with 4.1.2 (API 16), EMULATOR AVD with 4.2.2 (API 17), EMULATOR AVD with 4.3.1 (API 18), Galaxy Tab 3 (4.1.2), Surprice, surprice.....works on my Galaxy NOTE with Omnirom 4.4.4
Not Working on: EMULATOR AVD with 4.4.2 (API 19), Galaxy S4 (4.4.2), Galaxy Note 3 (4.4.2)
Code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
int myWidth = 1280;
int myHeight = 800;
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
boolean isPortrait = getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT;
int frameBufferWidth = isPortrait ? myHeight : myWidth;
int frameBufferHeight = isPortrait ? myWidth : myHeight;
Bitmap frameBuffer = Bitmap.createBitmap(frameBufferWidth, frameBufferHeight, Config.RGB_565);
graphics = new AndroidGraphics(getAssets(), frameBuffer);
fl = new FrameLayout(this);
ImageView mons= new ImageView(this);
mons.setImageBitmap(graphics.newImage("mons/mons01.png", ImageFormat.ARGB8888).getBitmap());
mons.setX(400);
mons.setY(200);
TranslateAnimation aniTrans = new TranslateAnimation(0, 0, 0, -200);
aniTrans.setDuration(5000);
mons.setAnimation(aniTrans);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
fl.addView(mons, params);
FrameLayout.LayoutParams flp = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);
this.setContentView(fl, flp);
mons.startAnimation(aniTrans);
aniTrans.startNow();
}
Issue Found!
HAVE FOUND THE PROBLEM, but NEED HELP TO SOLVED IT!
(NOTE: This only occurs in full java code. It doesn’t happened using XML file, what is not the case)
Now I should call this topic like:
ANDROID 4.4.2 CREATES A BLACK MASK OUTSIDE VIEW OBJECT BOUNDARY, ONLY DURING FULL JAVA CODE ANIMATIONS?
Why?:
Take a look to this new example code:
Code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
common = new Common(this, this);
FrameLayout.LayoutParams framelayoutparameter = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);
/* I think that this is the line code (imageviewparamenter) were Android 4.4.2 FAILS during animation.*/
LayoutParams imageviewparamenter = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
/* No matter the size of the screen, Android 4.4.2 creates a black hole outside the image size,
* just during animation (see attached picture). Thats why animation dont show up, if the
* initial position (setX or setY) of the image, is outside the image boundary.*/
fl = new FrameLayout(this);
ImageView iv = new ImageView(this);
/* Image is located in the ASSET and is 100x100 pixels (non dpi dependable)
* "common" method use AssetManager to read the image file */
iv.setImageBitmap(common.newImage("iv_image.png", ImageFormat.RGB565).getBitmap());
iv.setX(50); // position show in the example
iv.setY(0);
fl.addView(iv, imageviewparamenter);
this.setContentView(fl, framelayoutparameter);
AlphaAnimation animation = new AlphaAnimation(0,1);
animation.setDuration(5000);
animation.setAnimationListener(this);
/* Also, "setAnimation(animation)" must be present, in order that
* Android 4.4.2 animates without skipping frames*/
iv.setAnimation(animation);
iv.startAnimation(animation);
}
Create a frame layout with a ImageView and alpha animation using pure java code. During animation, Android 4.4.2 (API19) is creating a black mask outside the ImageView size boundary, starting at x/y coordinates (0 + imageWidth / 0 + imageHeight), so if you initially place the image outside that coordinate, you don’t see any animation, just the original image at the end of the animation....
To recreate the issue, i have place the image in x = 50 . You would see that the half right side of the image is BLACK during Android 4.4.2 animation. You can recreate using emulator with any size of screen setup that you prefer. Using API 16,17,18, have no problem, but using API19, the black mask will make you crazy!
NOW, ANY IDEAS? or is a big bug on Android 4.4.2? or I just don’t see it?
Anyone?
SOLVED
! SOLVED !
For some reason, API19 programmatically pure java animations doesnt play very well with absolut settings, like setX() or setY(). Experts may take a look on this. API19 preffers to work with margins on the layout parameter side.
The following procedure, apply's to android 4.4.2. Of cource, it works on the others versions down and up, but you must change your way of thinking. You must place a imagen programmatically using layout parameters, so change:
Code:
iv.setX(50);
iv.setY(0);
to
Code:
lparam.setMargins(50, 0, 0, 0);
iv.setLayoutParams(lparam);
iv.requestLayout();
You must call "requestLayout()" to ensure that the new changes on the layout, will be commited when adding the view to the parent (fl).
Finnally, by mistake, I use "LayoutParams" instead of "FrameLayout.LayoutParams". This nothing have to do with the issue and was not affecting it, but is the correct way to define it, so change:
Code:
LayoutParams lparam = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
to
Code:
FrameLayout.LayoutParams lparam = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
The complete working code for any API is:
Code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Common common = new Common(this, this);
FrameLayout fl = new FrameLayout(this);
ImageView iv = new ImageView(this);
FrameLayout.LayoutParams flparam = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);
FrameLayout.LayoutParams lparam = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
iv.setImageBitmap(common.newImage("100x100.png", ImageFormat.RGB565).getBitmap());
lparam.setMargins(50, 0, 0, 0);
iv.setLayoutParams(lparam);
iv.requestLayout();
fl.addView(iv);
this.setContentView(fl, flparam);
AlphaAnimation animation = new AlphaAnimation(0, 1);
animation.setDuration(3000);
iv.setAnimation(animation);
iv.startAnimation(animation);
}

Categories

Resources