yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] kane159:
I don't under stand :confused:

I'm trying but when I push the buttom nothings happened :confused:

any where I do wrong?

<Layer ID="GProgramsExpanded" Width="240" Height="84" Visible="False" Clip="False">
<Button ID="AppLaunch1" Width="61" Height="71" Top="2" Left="110" OnInitComplete="Binding:URL,\ProgramFiles\CHomeEditor\CHomeEditor.exe" >
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="4" Loop="False" >
<Image ID="ButtonDown" Top="0" Width="61" Height="71" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\windows\LS_KeyPadButton_Dwn.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ButtonUp" Width="61" Height="71" Visible="True" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\windows\LS_KeypadButton.png"/>
</Layer>
<Image Left="10" Top="5" Width="41" Height="41" Visible="True" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_Settings_Settings.png"/>
<Text ID="AppText" Left="5" Top="46" Width="51" Height="20" FontFamily="Control Freak" FontStyle="Regular" FontSize="8" Wrap="True" HorizontalAlignment="Center" Trimming="EllipsisCharacter" Text="CHome Editor"></Text>
</Button>
<Image ID="AppIcon" Left="2" Top="2" Width="41" Height="41" ScaleStyle="Stretch" Source="\Neo\Neo_Clock.png"/>
<Layer ID="Page" Clip="False">
<Image ID="Icon" Left="9" Top="-37" Width="43" Height="57" />
<Image ID="PICTURES" Left="187" Top="20" Width="43" Height="40" ScaleStyle="Fit">
<Layer ID="Border2" Left="-1" Top="-1" Width="45" Height="45" Visible="True" Color="#FFFFFFFF" />
</Image>
<Text ID="TEXT1" Left="-73" Top="23" Width="250" Height="42" FontFamily="Tahoma" FontSize="12" FontStyle="Bold" Wrap="False" Trimming="EllipsisCharacter" VerticalAlignment="Top" HorizontalAlignment="Right">
<TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" />
<TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF" />
</Text>
<Text ID="TEXT2" Left="-73" Top="43" Width="250" Height="15" FontFamily="Tahoma" FontSize="9" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter" VerticalAlignment="Top" HorizontalAlignment="Right">
<TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" />
<TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF" />
</Text>
</Layer>
</Layer>
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Nope, that's why it's "Under Developement". Still need to break the code that binds the button. Been trying, my latest though is maybe using Mortscript to recognize the button press and launch the app.
[Windows Mobile Development and Hacking General] kane159:
ummmm.....I mean nothings happened is button didn't changes to show it's pressed....that work right? or that is "Under Developement" too :confused:
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Oh ok, from what I see the code is correct. The button "should" animate. It does so for me. Check my video above. Try pressing it harder, I've notice light short press won't register. You have to "really" press the button for at least 1 full second.

EDIT: This can be used as is to make the "Focus Selection Panel" animate on finger press when switching between panels or activating ACTIONURL. Here's an exple of my Navbar Code. (NOTE: You need to make the images linked in the button code).

<TitaniumListView ID="HomeNav" Width="45" Height="268" Columns="1" Rows="100" ItemWidth="45" ItemHeight="39" Clip="False" >
<Layer ID="Focus" Width="240" Height="45" Clip="False">
<Image ID="Image Default" Left="0" Top="-7" Width="65" Height="65" ScalingAlgorithm = "TriLinear" Opacity="0.0" />
<ControlSequence ID="ActionSequence" FramesPerSecond="30" Loop="False" Visible="False" >
<Image ID="Image1" Left="0" Top="-7" Width="55" Height="65" ScalingAlgorithm = "TriLinear" Opacity="1.0" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
[COLOR="Blue"] <Button ID="SelectorPanel" Width="65" Height="65" Top="0" Left="0" Clip="False">
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="30" Loop="True" LoopCount="10" Clip="False">
<Image ID="Sequence00" Top="-7" Width="65" Height="65" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ImageImage" Source="\Neo\Neo_Focus_Panel_Portrait.png" Left="0" Top="-7" Width="65" Height="65" ScalingAlgorithm="TriLinear" Opacity="1.0" />
</Layer>
</Button>[/COLOR]
</Layer>
<Layer ID="ListItem" Visible="False" />
<Layer ID="No Items" Opacity="0">
<Text ID="Text" Width="100" Height="19" FontFamily="Control Freak" FontSize="9" FontStyle="Bold" Wrap="False" Trimming="EllipsisCharacter" Clip="False" >No Items</Text>
</Layer>
</TitaniumListView>
[Windows Mobile Development and Hacking General] kane159:
I puss it over 20 sec and still not things happened :(

am I put the code the wrong place??

I put it before <Layer ID="Page" Clip="False">
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Nope, I've placed in before & after the "Page" code and have it work although after makes multiple buttons not display correctly. Maybe it's because you're using default Titanium and the ActionURL/Navbar space covers your button & may have higher priority than the button laying under it.

EDIT: Check the about post for a sample of how to make all panels have a animated Selection Panel.
[Windows Mobile Development and Hacking General] kane159:
can you give me your \Neo\Neo_Focus_Panel_Portrait.png and \Neo\Neo_FocusPanel_Action_Portrait.png let me test??

this is how it looks like when I push it
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Copy the following Code & Install CAB.

Portrait Code:

<Layer ID="Focus" Width="240" Height="65" Clip="False">
<Image ID="Image Default" Left="0" Top="0" Width="240" Height="65" ScalingAlgorithm = "TriLinear" Opacity="0.0" />
<ControlSequence ID="ActionSequence" FramesPerSecond="30" Loop="False" Visible="False" >
<Image ID="Image1" Left="0" Top="0" Width="240" Height="65" ScalingAlgorithm = "TriLinear" Opacity="1.0" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Button ID="SelectorPanel" Width="240" Height="65" Top="0" Left="0" Clip="False">
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="30" Loop="True" LoopCount="10" Clip="False">
<Image ID="Sequence00" Top="0" Width="240" Height="65" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ImageImage" Source="\Neo\Neo_Focus_Panel_Portrait.png" Left="0" Top="0" Width="240" Height="65" ScalingAlgorithm="TriLinear" Opacity="1.0" />
</Layer>
</Button>
</Layer>

Landscape Code:

<Layer ID="Focus" Width="240" Height="65" Clip="False">
<Image ID="Image Default" Left="0" Top="0" Width="320" Height="65" ScalingAlgorithm = "TriLinear" Opacity="0.0" />
<ControlSequence ID="ActionSequence" FramesPerSecond="30" Loop="False" Visible="False" >
<Image ID="Image1" Left="0" Top="0" Width="320" Height="65" ScalingAlgorithm = "TriLinear" Opacity="1.0" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Button ID="SelectorPanel" Width="320" Height="65" Top="0" Left="0" Clip="False">
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="30" Loop="True" LoopCount="10" Clip="False">
<Image ID="Sequence00" Top="0" Width="320" Height="65" Opacity="1.0" ScalingAlgorithm = "TriLinear" Source="\Neo\Neo_FocusPanel_Action_Portrait.png" />
</ControlSequence>
<Layer ID="ButtonUpLayer">
<Image ID="ImageImage" Source="\Neo\Neo_Focus_Panel_Portrait.png" Left="0" Top="0" Width="320" Height="65" ScalingAlgorithm="TriLinear" Opacity="1.0" />
</Layer>
</Button>
</Layer>
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
@ twolf

ok, here's the screen shot. The Yellow Pixel is on the unpressed button & Green is on the pressed button for testing purposes. My device is QVGA. Both Pixels are on the same X/Y position for simplicity.

Also, on finished product, I can add a Virtual LED to the button that doubles for the purpose of the Script & Camouflaging.

EDIT: In order for a button to be "Press-ible", The HomeNav can't cover it. In my example below you see the width is only 45 Pixels. This means only the left most 45 pixels are used for changing panels/pages. The rest of the screen is free for buttons than.

<TitaniumListView ID="HomeNav" Width="45" Height="268" Columns="1" Rows="100" ItemWidth="45" ItemHeight="39" Clip="False" >

Just made Contact/App Shortcut Button Images btw.

The Images;

Example of Finished Icon Button;
[Windows Mobile Development and Hacking General] twolf:
Sorry, only had time to look at this now.

You didnt mentioned if you have a QVGA, based on your screenshots, I'm assuming you do.

Will make the script now.

:)
[Windows Mobile Development and Hacking General] twolf:
OK, heres what I did, these are the scripts, the printscreens were in JPG format, so the location was hard to get, but I believe these are right.

To test:

----------

- Extract the files anywhere on your PPC.

- Run check_color.mscr

- One script starts and other stops (kills) the test.

- For now its only trying to read the first button press and starts MS WORD on pressed.

- All this is changeable on the MSCR file.

Its already fixed for QVGA and VGA (not tested) but I couldnt get a correct color reading on the image, again because of the JPG compression, so I changed it to the default bright green #00FF00 :

Bear in mind that Mortscript doesnt read the color in hexadecimal format, so I added a commented message on the test, to see what is the color number.

To use the test simply remove the # in front of the MESSAGE and change the seconds loop to 5000 (5 seconds) instead of 500 (half a second), so that you dont get flooded with messages. :D
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Actually I did state my device is QVGA lol, but any who.

Ok, made a few changes to the script. First made it read a registry key to easily change the program url. Also, got the color codes, Yellow = 3273727 & Green = 4360704. Also had to change the program launched as my ROM doesn't have Office installed. here's the new script & a video showing that IT WORKS!!!

YouTube Video

EDIT: Made a couple changes due to bugs. Reduced the loop count of the button animation from 5 to 2 as this was causing the script to to reload the shortcut when you went back to titanium and the Animation was still active. Also, reduced the "sleep" in the script from 500 to 100 as the shorter animation wouldn't always be caught.
[Windows Mobile Development and Hacking General] twolf:
Cool. :)

Now that its working for sure we have to:

- Create a "hidden" pixel much like the color codes I did for my plugin pages, so that the script only kicks in when your plugin is selected.

- Make sure the RUN command is only runned once, giving it a couple of seconds before accept the same link.

- Create a design with the final layout so that we can get all the correct x/y values for each button.

- Add those values into a much simpler script with a dynamic array, so that we dont have to duplicate the code as many times as there are buttons.

- Create the X/Y database for different screen sizes (this is direcly connected to the PLG).

- When the "hidden" pixel is not present (when the user is in another plugin), the script is silently killed, so that it doesnt hog the RAM.

Also, an ideia... I know this defeats the purpose of the buttons, but a extra menu, like WM5 NEW MENU or kvvQuickMenu, can be very usefull for specific buttons with extra uses, like "NEW SMS" and "OPEN INBOX", for example... :)
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Another thought I had last night is, having 1 pixel for page as well. The Button may show on all pages but if we tell it what panel & what page through pixels. Then, you can have multiple pages. The Shortcut ICON & Text can be dynamic across pages while the buttons are static. the script launches the attached shortcut according to the panel/page pixel color codes.

EDIT: Also with your idea of menus. The possiblilities are endless. We can make Titanium act more like M2D or TF3D. For example, a contact launcher, when you click on the contact button. It opens a menu with "Call", "SMS", "MMS", & "Edit" Options.
[Windows Mobile Development and Hacking General] twolf:
hmmmm... That can be done, yes, but if you really create severall pages on the plugin registry, you can add side buttons where a script simulates the left/right keystrokes to make the plugin's pages turn.

and... the default button list can be dynamic... :D

Mortscript can auto-create a list of the start menu items, apply its links to a small database, use the names of the links as the text for each one (without the ".lnk"), and maybe even (not sure about this one) use the icon of a dll for the icon image on the registry.

Then to update, users would have a mortscript menu (or flash, hehehe) to change the link, name and image of the button, the default text of the link would be the shortcut name.

I only dont recommend flash for this because I still dont have a working BROWSE button for it... :(
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Yeah, thought about the page buttons last night as well. One thing I've noticed with NeoTitanium is that changing page via gestures is tricky. So having buttons for changing pages is much better for users without a D-Pad or who at least don't use it.

Also, check my last post "Edit".
[Windows Mobile Development and Hacking General] twolf:
Oh, yes, menus for contacts is a great idea, tomorrow ill start working on the dynamic arrays for mutiple buttons. :)

The script has to:

-------------------

- check every 1 second (?) if the user is on your plugin.

- If it is, check every 1 (?) second on what page it is.

- and check every 1 second if any button is pressed (green).

- If it is green, read and open X button link of the X page.

- Save that click link and only open it again if its been 3 seconds (for slowers button clicks on 200mhz machines).
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Sounds good, right now I have it set to 1/10th of a second on my Kaiser and it works flawlessly with a 2 loopcount of the animation. With that idea I can increase the loopcount to 5 again and reduce the sleep time and not have to worry about the script opening the same shortcut. The only catch is that the animation only finishes when Titanium is onscreen. So the 3 second wait may not work if they have the app opened longer than 3 second.
[Windows Mobile Development and Hacking General] twolf:
hmmm... I can save that link and not open it again untill another is used, but that will not be nice if the user really wants to reopen it.
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Yeah, that might be a problem lol. If the script is not that complex though, I don't see the 1/10th Sleep being a big issue. It's only on plugin/pages the buttons are on for one and a text script can't hog that much RAM (or can it?) if as simple as can be.
[Windows Mobile Development and Hacking General] twolf:
actually, that problem resolves itself...

When the user clicks a button, it will indeed not allow him to click it again, but when the program opens, the color code will no longer be of the plugin and the script will be killed imediatly.

:D
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Oh yeah, duh, i don't have autokill atm. So it just keeps going. I am working on new buttons now. I am adding Virtual LED to make it look like the button become active and use that for the script x/y pixel. I was thinking of doing the same for the page buttons. The developer can than select his/her own button LED color to use for plugin/page pixels. Just as long as they don't use another developers color, they are fine.
[Windows Mobile Development and Hacking General] Invisible Sense:
drkfngthdragnlrd,

Would you please share your taskbar?

Many thanks
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Taskbar is WM 6.5 QVGA only, can be found on my MediaFire Folder linked in my SIG.
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Got Multiple Buttons working with a database. Also move the rgreads for bt#_link in the If part so it'll re-read the reg dynamically instead of only on scriptstart. My Script is attached.
[Windows Mobile Development and Hacking General] kane159:
hey what is your code in cpr file :rolleyes:

I use your skin and your CMulticlock like it very much:D

I like it shows buttoms on the notic xD

share it please :rolleyes: (and also the butt pic :D)
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
You'll need my version of CMultiClock CAB as I changed things to get it to update the Notifications. Layout are in the attached text file. You'll need to edit them for regular Titanium. Also, never switch digital to analog as that'll rewrite the layouts in the stock Titanium CPR's.

EDIT: OH, nevermind just realized what you meant. It'll be coming soon in a future release. Maybe a day or 2 to workout the layouts and script. Be on the lookout for NeoTitanium Rev1.0. It'll have functioning buttons on the CMulticlock Plugin.
[Windows Mobile Development and Hacking General] kane159:
ummm...you had told me before ;)

what I mean I want is tor code of your press button :)
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Anyone know the url's for directly opening Missed Calls, Call Voicemail, SMS Inbox, & Email Inbox/Create....
[Windows Mobile Development and Hacking General] kane159:
SMS Inbox = windows\tmail.exe -service "SMS" -open "Inbox"

and here is an litthe tools to open call history;)

by the way can you share your button picture?? mine are ugly :(
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
TY

Images attached in ZIP
[Windows Mobile Development and Hacking General] kane159:
looks graaaaaate :D

but I thint there might be a little problem for your work

when push the buttom the green color doesen't show out :p
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Increase LoopCount. Your device is probably faster than mine and animating it too quickly. It shows up on my device. The fact that the red glow shows it's animating, just too fast.

EDIT: Also, buttons are tricky. light presses don't count. You must "really" press it lol. For like 1 Sec.
[Windows Mobile Development and Hacking General] kane159:
does that mean I can't ever use that :(

too bad.....I like it very much T^T
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Nope, it should work. Just play with how you press the button. Secondly, in the code, You can increase the LoopCount="" value. This will make the animation last longer. It will work, just need to play with it.
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
@ TWolf,

How does mortscript handle launch parameters. I tried adding the -service "SMS" -open "Inbox" to the url as kane159 gave me, but the shortcut stops working. It seems as though it's not handleling the parameters.

EDIT: Nevermind, figured it out.
[Windows Mobile Development and Hacking General] kane159:
OK...here is the link just point to this link and you can open SMS Inbox

by the way my buttons is very quick LOL when i touch it , it works :eek:
[Windows Mobile Development and Hacking General] chriscsh:
Hi drkfngthdragnlrd

i have some question

i install the plugins with ATPluginstaller, but if i delete the line <Layer ID=..>, after install the plugin not show up, or i need edit the cpr directly?

if i only add the <Button ID=..> the button image not show up, but if i press the button area, the buttondown image show, so i think the basic button is work, but don't know why the buttonup image not show

the Button position (Top="xx" and Left="xx") seem is base on the whole screen area

i use the basic titanium theme, i found the button show on all plugin

(eg. i try add play rewind & forward button in CS2P, as i said the button not show up, but when i press the button area in the Clock plugin, the buttondown image show :eek:)​

Thanks
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
The Button code goes between

<Layer ID="CMultiClockExpanded" Visible="False" Width="240" Height="104" Clip="False">

&

<Layer ID="Page" Clip="False">

.

You shouldn't be deleting any existing code. Just add the button between those lines. All images/text in the Button Code HAVE to be source=""/text="". Otherwise they won't show. You can put the icon and text in the

<Layer ID="Page" Clip="False">
</Layer>

section and just line it up with your buttons. This is the best way to do multiple pages. The Buttons will be static across all pages but the text & icons for them will be Dynamic through the registry as normal. For the links to be dynamic across dif. pages, you'll need a special color code in the script & page for each page as well as each button. In which case the button code will look like this,

<Button ID="12H25HDisplay" Width="52" Height="38" Top="35" Left="186" Clip="False" >
<ControlSequence ID="ButtonDownSequence" FramesPerSecond="15" Loop="True" LoopCount="4" Clip="False">
<Image ID="ButtonDown" Top="-4" Left="-4" Width="60" Height="46" Opacity="1.0" ScalingAlgorithm="TriLinear" Source="(IMAGEURL)" />
</ControlSequence>
<Layer ID="ButtonUpLayer" Clip="False">
<Image ID="ButtonUp" Width="52" Height="38" Visible="True" Opacity="1.0" ScalingAlgorithm="TriLinear" Source="(IMAGEURL)"/>
</Layer>

My multi button script with 1 page color pixel is attached. In the script color_code0 is the plugin/page activation, & color_code1 is for the buttons.

Screenshot,

NOTE:RED dots turn GREEN to activate button, BLUE dots (only need one & it should be a seperate color for each page) activate the code for the Plugin/Page this way it does run 24/7 & increases performance.

Hope this helps....
[Windows Mobile Development and Hacking General] twolf:
Its almost finished, but I got a little stuck on the code...

In FLASH, to make a dynamic variable name I add something like:

var_number = 1
myvar[var_number] = "Whatever " + var_number

// Output: myvar1 = Whatever 1

And this is not a array, its a variable name with a variable... Im not sure if this works in Mortscript... I dont find any info online on that subject and it doesnt give me any error on run. I've seen it also with () instead of [], not sure wich one is right...

:/

Anyway, this is the current version atached. :)
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Cool cool, I'll check it out tomorrow.

Here's a

Video

of what I go so far. All I need to do and work on 3 cpr layouts and the first project is done for updating NeoTitanium. My Scripts & CPR are attached.
[Windows Mobile Development and Hacking General] kane159:
grate ~~but am I do any thing wrong??

this is what I show out
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Nope, you're doing fine. I added 2 extra buttons since I gave you the code. One button switches Analog/Digital Clock Display. The other switches Military/Standard Time Display aka AM/PM. Also, fixed the script. No more editing the extensibilityXML Manually, to change the clock type displayed.
[Windows Mobile Development and Hacking General] kane159:
OK......

what should I do now??

i need to add some reg key or something?

the buttom didn't work like your video :/
[Windows Mobile Development and Hacking General] chriscsh:
Thanks drkfngthdragnlrd!

the button work well ;)

is the time to work the script for my plugin now :D
[Windows Mobile Development and Hacking General] drkfngthdragnlrd:
Rev1.0 of NeoTitanium is released. New clock/skin/&NeoTitanium cabs...

You're welcome, glad you got it all working. Will have to update the layouts to your plugin in my skin when you're done.
[Windows Mobile Development and Hacking General] kane159:
heres my lay out

but the buttom didnt work :(

like what i said the green dot doesent show owt :(