Pointui » Home 2 Applets Showcase

[Tool] Pro Tweak - Easy Custom

(235 posts)
  • Started 1 year ago by Montecristoff
  • Latest reply from ken29
  1. punkmonkey19
    Member

    Can someone please help me out im not to good with coding etc, but have tried to no luck im trying to change

    Bookmarks - to - Contacts

    Title Bar - to display Running app's

    iv tried this

    class ScreenHome_CustomHandlers
    {
    bool ScreenHome_AfterLoad(ScreenHome screen)
    {
    //change the right soft key
    screen.SetSoftKeys("Menu", Terms.Get("Menu"), "Contacts", Terms.Get("Contacts"));
    screen.title.SetVisible(false);
    return false;
    }
    bool SoftKeyButtonClick(ScreenHome screen, String buttonID)
    {
    //what do we want to do on the right soft key?
    if (buttonID == "Contacts")
    {
    //show the contacts screen
    ScreenContacts contacts;
    FlowStack.Branch(contacts);
    }
    return false;
    }

    from the first page on this thread the contacts display nicely when hitting the right soft key, But now iv got no title bar.

    when ever i try to use the pointui custom genareter every thing works apart from getting the contacts to display after i push the right soft key (nothing happends) every other application seems to shoe tho

    So could someone please post a custom.CS file which could do this please,

    EDIT:

    After 20 or odd so attempts i managed to create a .cs file that works the way i want it, and in doing so learnt a little lol

    Posted 1 year ago #
  2. ler329
    Member

    Is it possible to have a clickonhold command to dial a phone number?? Specifically Voice Mail??

    Posted 1 year ago #
  3. I think alot of the people in the comunity are learning by doing...

    I knew Basic inside-out but had lots of problems when i saw the PointUI C-Script, but now undersatnd most of it!

    Posted 1 year ago #
  4. ilife
    Member

    @ler329

    Just make an item with the generator and replace the chosen line of code with this:

    Phone.Call("1234567890");

    Posted 1 year ago #
  5. ler329
    Member

    Just make an item with the generator and replace the chosen line of code with this:

    Phone.Call("1234567890");

    I tried a couple different codes and was unable to get ClickOnHold to dial my VoiceMail. I've included the Custom file if somebody would be kind enough to llok at it for me!!

    //Custom.cs file generated by CustomCS Generator Beta 1.015
    //CustomCS Generator Beta 1.015 Copyright ABCDEFGabcdefg 2009
    class ScreenHome_CustomHandlers
    {
    bool ScreenHome_AfterLoad(ScreenHome screen)
    {
    screen.btnPhone.OnClickHold = btnPhone_OnClickHold;
    screen.btnFavContacts.OnClickHold = btnFavContacts_OnClickHold;
    screen.btnMessaging.OnClickHold = btnMessaging_OnClickHold;
    screen.title.SetTabStop(true);
    screen.title.OnClickHold = btnTitle_OnClickHold;
    screen.SetSoftKeys("Menu", Terms.Get("Menu"), "Browser", Terms.Get("Browser"));
    return false;
    }
    bool SoftKeyButtonClick(ScreenHome screen, String buttonID)
    {
    if (buttonID == "Browser")
    {
    Process.Start("Windows\\OperaL.exe");
    }
    return false;
    }
    bool btnPhone_OnClick(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("Internal Storage\\Program Files\\Iconsoft\\PhonEx\\Calls.exe");
    return true;
    }
    bool btnPhone_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("cprog.exe", "Phone.Call("7785551212");");
    return true;
    }
    bool btnFavContacts_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("Internal Storage\\Program Files\\Iconsoft\\PhonEx\\Contacts.exe");
    return true;
    }
    bool btnMessaging_OnClick(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("tmail.exe", "-service \"Lee's Email\"");
    return true;
    }
    bool btnMessaging_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("tmail.exe", "-service \"SMS\"");
    return true;
    }
    bool btnTitle_OnClick(ScreenHome screen, Control sender, int x, int y)
    {
    ScreenRunningApps RunningApplications;
    FlowStack.Branch(RunningApplications);
    return true;
    }
    bool btnTitle_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("poutlook.exe", "calendar -va");
    return true;
    }
    }

    Posted 1 year ago #
  6. jrtolle
    Member

    Is anybody else having problems using ShowApplet as an OnClickHold action? I was trying to show a dialer applet by holding down the phone button, but no go. If I set up the ShowApplet as the OnClick action, it works fine, as does showing the Call History PointUI screen as the OnClickHold action. But switch them, and only the Call History works. I get a Cannot Resolve Object, screen.arRibbon. It's in the ScreenHome_CustomHandlers.btPhone_OnClickHold() call stack. Anybody have any ideas, or is this a bug in the way the ShowApplet works (since it wasn't even known it was going to work when this was started)?

    See attached for errors.log

    JR

    Attachments

    1. ScriptErrors.txt (0.6 KB, 10 downloads) 1 year old
    Posted 1 year ago #
  7. ABCDEFGabcdefg
    Member

    @ler... try to modify the following line in your custom.cs
    Process.Start("cprog.exe", "Phone.Call("7785551212");");
    to
    Process.Start("cprog.exe", "Phone.Call(\"7785551212\");");
    that should do the trick, and if it does, then it's a bug in the generator...

    @jrtolle... I really don't have a clue! Can you check the generated custom.cs files for both the working and non working combo? if all headers are identical and only the content changes then it's a flaw in PointUI, if something else changes, then it's a flaw in my generator.

    Example:
    bool btnPhone_OnClick(ScreenHome screen, Control sender, int x, int y)
    {
    ...A...
    }
    bool btnPhone_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    ...B...
    }

    If only A and B are changed and the headers remain untouched then it's a flaw in PointUI, if something else changes then please tell me so I can fix it in the future.

    Posted 1 year ago #
  8. jrtolle
    Member

    ABCDEFG, btw I love that username, it appears to be a problem in PointUI, not the generator. Here's the generated code:
    bool btnPhone_OnClick(ScreenHome screen, Control sender, int x, int y)
    {
    screen.arRibbon.ShowApplet("Dialer");
    return true;
    }
    bool btnPhone_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    screen.arRibbon.ShowApplet("Dialer");
    return true;
    }

    How do we bring this to the attention of the devs (not like they don't already have enough to do)? And devs, this program is awesome. The amount of customization you've built-in is truly astounding and is what makes for such an awesome product.

    JR

    Posted 1 year ago #
  9. ABCDEFGabcdefg
    Member

    JR, I posted it over here in the "Post your feedback here" topic :-) Hopefully the devs will notice it then!

    Posted 1 year ago #
  10. danuliel
    Member

    Hey there,

    I have a question - I just downloaded your tool (excellent stuff btw). I've managed to program my HTC to do just about everything I need it to do except for one thing.

    The first icon, the phone history icon, I would like to program it to check voicemail when it is held down (long press).

    Any idea on how to do this?

    Dan.

    Posted 1 year ago #
  11. You can set that in settings. Look for auto call voicemail. then when it is tapped if you have a voicemail it will call. Not the long hold you would like but it works

    Posted 1 year ago #
  12. danuliel
    Member

    Yeh I saw that function - sometimes you just want to look at call history but not dial voicemail (if there are messages there), thats why I'd like to customize it so the long hold will go to voicemail. Anyway, hopefully it will get included in the development of Pointui of the CS Customizer tool.

    Posted 1 year ago #
  13. micah576
    Member

    I hate to sound stupid, but once I generate a .cs file, where do I place it? I've tried it in the general home2 folder to no avail. Then I tried it in the "common" folder inside the home2 folder and it didn't work there either.

    I'm using 2.1.06c pro

    thanks!

    Posted 1 year ago #
  14. Hi micah576,

    You just have to copy your new custom.cs file in \Program Files\Home2 folder.
    Also, don't forget to restart Home 2.

    Posted 1 year ago #
  15. woem
    Member

    maybe this helps, when i create a custom cs it creates the file in capital signs (CUSTOM.cs), so i have to rename it in custom.cs size, and then put it in \Program Files\Home2 folder like monte said

    Posted 1 year ago #
  16. micah576
    Member

    ler, did you get the clickhold voicemail dial to work? How did you do it?

    thanks all!

    btw, I'm assuming this can't be used with any of the customizations like pointsense or nexgen, right?

    Posted 1 year ago #
  17. michaelp
    Member

    Any chance of creating a 'nextApplet' control in the custom generator to enable soft key scrolling through applets?

    and

    Can custom generator be used to modify the SenseV2 Suite?

    Posted 1 year ago #
  18. Hi all. It's possible to hide the bar with time and date in the 2.1 pro ?

    Thx

    Posted 11 months ago #
  19. lhnzh12
    Member

    Can someone make an custom cs to replace right soft key from bookmarks to contacts. Thanks

    Posted 10 months ago #
  20. Hi lhnzh12,

    You could easily do it yourself with this tool: CustomCSGenerator.Beta1.016.zip
    Anyway, here is your file

    Attachments

    1. Custom.zip (0.5 KB, 16 downloads) 10 months old
    Posted 10 months ago #
  21. bibi544
    Member

    how do i install the app?
    i unzipped it to a folder and
    tried to run the exe file and i
    get an error that a needed file
    was not found.
    .NET 3.5 is installed on the device
    HTC TOUCH HD
    Thanks
    Ophir

    Posted 6 months ago #
  22. ganzee
    Member

    @bibi544:

    The app is for your PC, not your phone

    Posted 6 months ago #
  23. bibi544
    Member

    Well that is a good reason for
    it not to work :)
    Thanks ganzee

    Posted 6 months ago #
  24. hanxinyu
    Member

    95.Very good stuff ABCDEFGabcdefg!

    Posted 3 months ago #
  25. ken29
    Member

    Hello,

    Cs generator is a great idea, unfortunatly, I'm not succesfull in my attempt.

    First I want to replace the bookmarks button by an "Opera Button", but Opera doesn't start.

    Secondly, I want to launch Pocket Informant with the title bar, same problem, the soft doesn't start.

    For me who knew Basic and Turbo Pascal decades ago, I can't solve it, but I'm sure It's an easy problem for you mates... Thanks

    //This file was generated with the CustomCS Generator
    //CustomCS Generator Copyright ABCDEFGabcdefg 2009
    //
    //This file can only be used in conjunction with PointUI Home2 Pro
    //
    class ScreenHome_CustomHandlers
    {
    bool ScreenHome_AfterLoad(ScreenHome screen)
    {
    screen.btnMessaging.OnClickHold = btnMessaging_OnClickHold;
    screen.title.SetTabStop(true);
    screen.SetSoftKeys("Menu", Terms.Get("Menu"), "Opera", Terms.Get("Opera"));
    return false;
    }
    bool SoftKeyButtonClick(ScreenHome screen, String buttonID)
    {
    if (buttonID == "Opera")
    {
    Process.Start("Ma mémoire\\Program Files\\Opera Mobile 10\\Opera10-armv4i.exe", "");
    }
    return false;
    }
    bool btnMessaging_OnClickHold(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("tmail.exe", "-service \"kenan.trevien@gmail.com\"");
    return true;
    }
    bool btnTitle_OnClick(ScreenHome screen, Control sender, int x, int y)
    {
    Process.Start("Ma mémoire\\Program Files\\WebIS\\PocketInformant\\PITab.exe", "-111");
    return true;
    }
    }

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.