Results 1 to 8 of 8

Thread: DUN, Phoco and SwitchButton??

  1. #1
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250

    DUN, Phoco and SwitchButton??

    I don't know where to begin but what I want to do is;

    ****DUN Connection;
    From a command switchbutton on the Main menu skin;
    1.. Use "CLOSE_PHOCO" to stop phoco communications port and then Call a batch file "cingular_dun.bat"


    ****re-establish Phoco Connection;
    Then when through with DUN connection
    1. call the batch "phoco_dun.bat
    2.. I don't think I need to restart phoco since I have the "ExitIfInitFails" set to False with the Extended Configurator of phoco..

    I would like to have the label change with the switchbutton, read DUN and then PHOCO..

    I have the DUN (auto-connect) and batch files tested and it works great..

    Thanks for any help..

  2. #2
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731
    You can do this with a Custom Label.
    L01,423,16,31,37,0,255,255,22,"Arial","!MYLABEL"," CENTER"
    Then you need a SETLABEL in you Button.
    B1,27,122,74,50,"Cingular_Dun.bat||SETLABEL;!MYLAB EL;DUN||SWITCHBUTTON;1>>Phoco_Dun.bat||SETLABEL;!M YLABEL;PHOCO"

  3. #3
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250
    Thanks, MGD for a very fast response. I will finger my way through it..

  4. #4
    Variable Bitrate Zogg's Avatar
    Join Date
    Apr 2005
    Location
    Plano, TX
    Posts
    310
    wfs1, would you share the batch files? Don't know if I need them yet but it's always good to have reference material.

    Thanks, Z
    Zotac N630I-D-E M/B w/ Nvidia 7100, E5300 cpu, Xenarc 700IDT, M2-ATX, XP, RR & DFX 5.1.

  5. #5
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250
    @Zogg
    Will do when I make sure it's working.

    Now here's my switchbutton and label attempt; It's working but I'm not seeing any text inside the label..

    L01,192,1,197,34,191,223,255,20,"Arial","DUN>>PHON E_ON","CENTER"

    B01,193,0,197,34,"CLOSE_PHOCO||RUN;C:\connect.bat| |SWITCHLABEL;1||SWITCHBUTTON;1>>RUN;C:\disconnect. bat||RESUME_PHOCO||SWITCHLABEL;1|| SWITCHBUTTON;1",""

  6. #6
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731
    Type this as is.
    L01,192,1,197,34,191,223,255,20,"Arial","!MYLABEL" ,"CENTER"

    B01,193,0,197,34,"CLOSE_PHOCO||RUN;C:\connect.bat| |SETLABEL;!MYLABEL;DUN||SWITCHBUTTON;1>>RUN;C:\dis connect. bat||RESUME_PHOCO||SETLABEL;!MYLABEL;PHONE ON||SWITCHBUTTON;1",""

    This should work

  7. #7
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250
    Quote Originally Posted by MGD View Post
    Type this as is.
    L01,192,1,197,34,191,223,255,20,"Arial","!MYLABEL" ,"CENTER"

    B01,193,0,197,34,"CLOSE_PHOCO||RUN;C:\connect.bat| |SETLABEL;!MYLABEL;DUN||SWITCHBUTTON;1>>RUN;C:\dis connect. bat||RESUME_PHOCO||SETLABEL;!MYLABEL;PHONE ON||SWITCHBUTTON;1",""

    This should work
    Thanks!!
    That works.. You have to toggle the button or start the DUN command and then the text is displayed..

  8. #8
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250
    NOW, thanks to MGD here's the DUN/Phoco/Switchbutton.

    Make sure labelcodes and commandcodes match the correct LINE NUMBER! Not label Number!

    /, L, x, y, w, h, color R;RGB, G, B, font size;FONT, font name, Code;LABELCODES, Tooltip;LABELALIGNMENT
    L01,192,1,197,34,191,223,255,20,"Arial","!MYLABEL" ,"CENTER" <-----must be first line in labelcodes to be SETLABEL for SWITCHBUTTON;1

    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B01,193,0,197,34,"CLOSE_PHOCO||RUN;C:\connect.bat| |SETLABEL;!MYLABEL;DUN||SWITCHBUTTON;1>>RUN;C:\dis connect.bat||RESUME_PHOCO||SETLABEL;!MYLABEL;PHONE ON||SWITCHBUTTON;1","" <---- again first line in command codes

    The connect. bat and disconnect.bat files are simple

    Connect.bat
    @echo off
    rasdial "Cingular GPRS" <---- your Dun or dialup name

    disconnect.bat
    @echo off
    rasdial "Cingular GPRS" /d

    Now, I have to set Phoco in the extended config to "ExitIfInitFails" for my phone Motorola and single BT connection

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •