Announcement

Collapse
No announcement yet.

Old NetStumbler SKIN (needs a new owner)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Old NetStumbler SKIN (needs a new owner)

    This was posted long ago.
    I am putting it here for record.

    It may not work as-is. Feel free to improve it and re-post it.
    Attached Files

  • #2
    Alright, I've been playing with it. I changed the skin around, and have a few problems:

    Netstumbler does not embed, unless I am quick enough to click on the 'skin' before NS comes up.

    The buttons don't seem to do anything. They don't change color (skin_down), and they don't send key strokes.

    How do I control the window within a window? I read through the threads, I would search, but I don't know what the inner window is called.

    And finally, but I can live with it, the little message window keeps fighting with SB. I could move the buttons, but that's where I want them!

    Here's what I have:
    -----SB Config:

    [Global]
    DefaultProgram=NetStumbler
    EmbedderRefreshInterval=250

    -----Netstumbler.ini: (C:\Program Files\SkinBedder_v3\NetStumbler)
    [MainForm]
    Caption=SKINbedder NS

    Top=0
    Left=0
    ClientWidth=641
    ClientHeight=390

    BackgroundColor=$000000

    LoadingImage=

    [Scripts]

    StartUp=Run(C:\Progra~1\Networ~1\Netstumbler.exe), Embed(NSMap:500),Focus(NSMap),LoadSkin(NSMap:Skin)
    ShutDown=Kill(netstumbler.exe)
    Hibernate=Focus(NSMap),Send(Alt-B)
    Resume=

    -----NSMap.ini (C:\Program Files\SkinBedder_v3\NetStumbler\NSMap)
    [NSMap]
    WindowClass=
    WindowTitle=Network Stumbler
    Width=
    Height=
    TopBorder=0
    LeftBorder=0
    RightBorder=0
    BottomBorder=0

    NudgeUp=0
    NudgeLeft=0
    NudgeRight=0
    NudgeDown=0

    TransparentColorValue=

    AlphaBlendValue=

    Visable=True

    -----Skin.ini(C:\Program Files\SkinBedder_v3\NetStumbler\NSMap)

    [Skin]
    ButtonUpImage=Skin.png
    ButtonDownImage=Skin_Down.png

    TopBorder=335
    LeftBorder=0
    RightBorder=
    BottomBorder=

    Actions=New,Open,Scan,Save,Exit





    ;OnClick and will occure only if there is not a button in that area.
    OnClick=BringToFront(NSMap)
    ;OnDrag can be set to MoveWindow, CloseWindow, or left blank
    OnDrag=
    OnClose=Exit(SKINbedder)


    [New]
    Top=338
    Bottom=390
    Left=3
    Right=120
    ;If OnPressUp and OnPressDown both have values, then the button will "toggle"
    OnPressDown=
    OnPressUp=Play(ButtonClick.wav),Focus(NSMap),Send( CTRL-N)

    [Open]
    Top=338
    Bottom=390
    Left=132
    Right=249
    ;If OnPressUp and OnPressDown both have values, then the button will "toggle"
    OnPressDown=
    OnPressUp=Play(ButtonClick.wav),Focus(NSMap),Send( CTRL-O)

    [Scan]
    Top=338
    Bottom=390
    Left=262
    Right=379
    ;If OnPressUp and OnPressDown both have values, then the button will "toggle"
    OnPressDown=Play(ButtonClick.wav),Focus(NSMap),Sen d(CTRL-B)
    OnPressUp=Play(ButtonClick.wav),Focus(NSMap),Send( CTRL-B)


    [Save]
    Top=338
    Bottom=390
    Left=391
    Right=507
    ;If OnPressUp and OnPressDown both have values, then the button will "toggle"
    OnPressDown=
    OnPressUp=Play(ButtonClick.wav),Focus(NSMap),Send( CTRL-S)

    [Exit]
    Top=338
    Bottom=390
    Left=519
    Right=635
    ;If OnPressUp and OnPressDown both have values, then the button will "toggle"
    OnPressDown=
    OnPressUp=Play(ButtonClick.wav),Focus(NSMap),Send( ALT-F4)


    ;Text can be overlaid in the center of the Rect.
    Font=
    Size=
    Style=
    Text=
    2000 Subaru OBS

    Dell P3 @ 900 Mhz
    7" Lilliput TS w/DigitalWW in-dash mount
    80GB External HD

    I am Zero Bitrate....

    Comment


    • #3
      And here's a screen capture.
      Attached Files
      2000 Subaru OBS

      Dell P3 @ 900 Mhz
      7" Lilliput TS w/DigitalWW in-dash mount
      80GB External HD

      I am Zero Bitrate....

      Comment


      • #4
        I'm not sure why clicking on the skin would help it work, but I would tweak your startup script a bit...

        You had:
        Code:
        StartUp=Run(C:\Progra~1\Networ~1\Netstumbler.exe), Embed(NSMap:500),Focus(NSMap),LoadSkin(NSMap:Skin)
        You don't need to focus on NS, and I'd add a delay after running the EXE:
        Code:
        StartUp=Run(C:\Progra~1\Networ~1\Netstumbler.exe),Wait(1000),Embed(NSMap:500),LoadSkin(NSMap:Skin)
        The reason you want to wait is that the embed() command will sometimes get the WindowHandle and try to embed the window before the application has even shown the window on the screen. This causes all the width/height math to get all messed up and it doesn't embed properly.

        I plan to fix this in a future version by checking for the window to be visable before trying to embed it.

        Comment


        • #5
          Still doesn't work. And now, it doesn't work, even if I click on the skin before NS launches. I tried fiddling with the numbers, but no doing.
          2000 Subaru OBS

          Dell P3 @ 900 Mhz
          7" Lilliput TS w/DigitalWW in-dash mount
          80GB External HD

          I am Zero Bitrate....

          Comment


          • #6
            Ok... I remember now. The problem is that NS has a random number as part of the title. Sb does not support partial matches. If you search you may find a few solutions that have been done in the past. However, I just actually installed NS for the first time and I came up with a quick solution that will probably work best...

            Here is my start-up:
            Code:
            StartUp=Run(C:\Progra~1\Networ~1\Netstumbler.exe),Wait(3000),Send(Ctrl-F4),Embed(NSMap:500),LoadSkin(NSMap:Skin)
            The Ctrl-F4 will close the sub-window which will cause NS to remove the numbers from its title. Then Sb can embed it. After the Embed() command, you could also send an Ctrl-N to open a new window back up.

            Comment


            • #7
              Alright, I got it to work. I used the script that is in the folder (startup.exe) to launch it, and open the appropriate ns1 file. Then skinbedder takes over again, and finishes the skinning. Here'e the resulting stuff.

              Code:
              StartUp=Run(C:\Progra~1\Skinbe~1\Netstu~1\startup.exe),wait(500),Embed(NSMap:500),LoadSkin(NSMap:Skin)
              The AutoIt script:
              Code:
              Run("C:\Program Files\Network Stumbler\NetStumbler.exe myns1.ns1", "C:\Program Files\Network Stumbler\", @SW_MAXIMIZE)
              WinWaitActive("Network Stumbler - myns1.ns1","",1000)
              Now the problem is that the buttons still don't work!

              Could it be that I have them defined in the wrong spot? And if so, do I define them by the loaction in pixels on the skin? Or what?
              2000 Subaru OBS

              Dell P3 @ 900 Mhz
              7" Lilliput TS w/DigitalWW in-dash mount
              80GB External HD

              I am Zero Bitrate....

              Comment


              • #8
                Bump.

                My buttons still don't work. I've changed the numbers, but nothing is happening. Am I defining them wrong? I tried clicking on anywhere on the skin, but still nothing.

                Here's what I have.
                Attached Files
                2000 Subaru OBS

                Dell P3 @ 900 Mhz
                7" Lilliput TS w/DigitalWW in-dash mount
                80GB External HD

                I am Zero Bitrate....

                Comment


                • #9
                  the buttons coordinates are relative to the bitmap, not to the sb window.

                  just replace on skin.ini

                  Top=338
                  Bottom=390

                  with

                  Top=3
                  Bottom=55

                  and they will work
                  Ikea Case. Epia M10000.M1-ATX. 512 Mb. 2,5" 80 GB HDD. 7" Lilliput. BU-303 GPS. Sony Joystick.
                  Status -->
                  Lilliput Installed (not indash yet..)
                  BraveCar 2.5

                  Comment


                  • #10
                    Sorry I missed your post on the 13th. Thanks for the bump .

                    Bravellir is correct. If you have any other problems please post back and I will try to help. Also, please post your SKIN in a new thread once complete and you are happy with it.

                    One concern: Why do you have to use an Auto-It script? The WinWaitActive command in the AutoIt script doesn't even do anything since your SKINbedder script is Run() instead of RunWait(). Try just running NS instead of the AutoIt script and I bet it will work.

                    Comment


                    • #11
                      Originally posted by RPM_VR4
                      Sorry I missed your post on the 13th. Thanks for the bump .

                      One concern: Why do you have to use an Auto-It script? The WinWaitActive command in the AutoIt script doesn't even do anything since your SKINbedder script is Run() instead of RunWait(). Try just running NS instead of the AutoIt script and I bet it will work.
                      Not sure about kiltjim but my problem is the way netstumbler deals with window names.
                      If I start netstumbler normally, it will create a random file name and the window name will reflect that.
                      Also, I want to open always the same file because it already has the know access points and with the help of GPS can tell-me how far I am from them.
                      So, I always open the myns1.ns1 file and the window name NetStumbler displays is "Network Stumbler - myns1.ns1".
                      But it opens with the file sub window smaller that the main window, and afaik there is no command to maximize the sub window.
                      My auto-it scrip does that by double clicking on the sub window title bar, but then grrr... the netstumbler window title changes again to "Network Stumbler - [myns1.ns1]".
                      To avoid a lot off problems, I chose to have the autoit script to start netsumbler with the correct file, set it up so the window name does not change further, optionally start scanning, and then let Sb do his stuff, by embedding using the name "Network Stumbler - [myns1.ns1]" that I know will not change again unless I open a new file or a different one.
                      Ikea Case. Epia M10000.M1-ATX. 512 Mb. 2,5" 80 GB HDD. 7" Lilliput. BU-303 GPS. Sony Joystick.
                      Status -->
                      Lilliput Installed (not indash yet..)
                      BraveCar 2.5

                      Comment


                      • #12
                        To get around the new window name, you have to launch using "run([netstumbler location] [filename]), etc."

                        SB doesn't seem to like spaces. Is there a way around this? If there is, there is no reason to use the script. Other than that, the skin is working great now. Also with the script, i don't have to keep clicking on the blank skin before NS launches.
                        2000 Subaru OBS

                        Dell P3 @ 900 Mhz
                        7" Lilliput TS w/DigitalWW in-dash mount
                        80GB External HD

                        I am Zero Bitrate....

                        Comment


                        • #13
                          Gotcha. I don't know why you can use spaces in some places and not in others. I will look in to making it support spaces for the StartUp script (That might have to wait until I convert to XML though).

                          Comment


                          • #14
                            Originally posted by Bravellir View Post
                            the buttons coordinates are relative to the bitmap, not to the sb window.

                            just replace on skin.ini

                            Top=338
                            Bottom=390

                            with

                            Top=3
                            Bottom=55

                            and they will work
                            that explains Why my Skin. I'm working on doesn't work!
                            Thanks!
                            View My Blog


                            Click for 2GB FREE on-line storage!

                            Comment

                            Working...
                            X