Jump to content











Photo
* * * * * 2 votes

[script]PENetwork


  • Please log in to reply
748 replies to this topic

#351 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 08 December 2008 - 04:40 PM

Hi Holger,

I dont know if you like the idea or not !?
I improved and fixed the idea in case somebody wants to use penetwork.script in a project that %GlobalSupport% or %GlobalTemplates% not defined.
+also fixed a typo

I hope you like:


[Interface]

.

.

pFileBox1=%GlobalTemplates%\PENetwork_drivers,1,13,30,410,380,28,dir

.

pFileBox3=%GlobalTemplates%\Hotfixes\KB918997\WindowsXP-KB918997-v6-x86-ENU.exe,1,13,30,590,380,28,file

.

pButton2="open drv directory",1,8,415,412,96,25,open_drivers_directorya

pButton3="open wla directory",1,8,415,592,96,25,open_wlan_directorya



[Process]

If,NOTEXISTVAR,%GlobalSupport%,Set,%GlobalSupport%,%BaseDir%\Workbench

If,NOTEXISTVAR,%GlobalTemplates%,Set,%GlobalTemplates%,%GlobalSupport%\Common

.

.



[open_drivers_directorya]

If,NOTEXISTVAR,%GlobalSupport%,Set,%GlobalSupport%,%BaseDir%\Workbench

If,NOTEXISTVAR,%GlobalTemplates%,Set,%GlobalTemplates%,%GlobalSupport%\Common

//If,NOTEXISTVAR,%pFileBox1%,Set,%pFileBox1%,%GlobalTemplates%\PENetwork_drivers

If,NOTEXISTDIR,%pFileBox1%,DirMake,%pFileBox1%

If,ExistDir,"%pFileBox1%",ShellExecuteex,Open,explorer,"/e#$c#$q%pFileBox1%#$q"



[open_wlan_directorya]

StrFormat,path,%pFileBox3%,%wlandirectory%

If,NOTEXISTVAR,%GlobalSupport%,Set,%GlobalSupport%,%BaseDir%\Workbench

If,NOTEXISTVAR,%GlobalTemplates%,Set,%GlobalTemplates%,%GlobalSupport%\Common

//If,NOTEXISTVAR,%wlandirectory%,Set,%wlandirectory%,%GlobalTemplates%\Hotfixes\KB918997

If,NOTEXISTDIR,%wlandirectory%,DirMake,%wlandirectory%

If,ExistDir,"%wlandirectory%",ShellExecuteex,Open,explorer,"/e#$c#$q%wlandirectory%#$q"

Edit: ahh sorry, forgot pFileBox1 and pFileBox2, +fixed + Opening with explorer changed :)

#352 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 08 December 2008 - 09:17 PM

Hi Lancelot :)

I will implement the most of these steps.
Next weekend could a good time (maybe a beta for now).
At the moment I'm just working on the GUI which ist mostly finished and usable.
Maybe the option to edit I will later buildin to the editor.
At first I will include some predefined color themes.
Also it will be later possible to use own created icon libs.
Maybe it's a little bit to much for just a network configuration GUI.
However I like scripting and working on this :(

So long...
Holger
P.S. here one of these new styles:
Posted Image

#353 seesoe

seesoe

    Newbie

  • Members
  • 27 posts
  •  
    Lebanon

Posted 26 December 2008 - 05:43 AM

if wifi isn't supported can i just write a script for the wifi tool that comes with the wifi card?

#354 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 26 December 2008 - 10:24 AM

Sure, you don't need my permission for that :cheers:
...
Yeah, it does only work in VistaPE for now without 'thirdparty' tools.
I had semi-success with XPSP2 some weeks ago (the first step to add a wlan profile) but there were changes in SP3 which broke this semi-success...
Maybe I will include an option to directly call a third party tool from the WiFi-tab if it was defined in the WB-script.

So long...
Holger

#355 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 11 January 2009 - 04:53 PM

New version out:
11.01.2009 - v33 (PENM 0.45):
- Fixed: Wrong close button text on main GUI after starting network
- Fixed: Missing status label on after minimizing main GUI
- Fixed: Missing icons under Win2003 based PE
- Fixed: Wrong parameter in driver copying process
- Fixed: GUI won't come up if minimized to tray and should restart by shortcut clicking
- Fixed: Missing language string in computer ident GUI
- Changed: GUI
- Added: GUI color schemes

You can download it from my winbuilder page or directly:
http://holger.winbui...s/PENetwork.zip

Cause I completely changed the GUI design just please let me know about problems.
You can edit the color schemed in the profile editor.
I included here a sample ini where you can see the added color scheme values.

Greets :)
Holger

Edit:: forgot: Added: - security page in "Windows Explorer"

Attached Files



#356 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 11 January 2009 - 05:25 PM

Wonderful

Besides new features,

Very nice gui (+ also i appreciate gray background and very nice color choosing) , and tidy

and thank you for explore buttons on script

:) :) :) :)

#357 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 11 January 2009 - 10:22 PM

I found a script bugy,

IF - [Close program] is not equal to: [Minimize to tray] evaluated string: [If,%pScrollBox1%,NotEqual,"Minimize to tray",RegWrite,"HKLM",0x1,"%HiveKey%\PENetwork","MinimizeToTray","0"]
RegWrite - root key: [HKLM] Type: [0x1] Section [WB-Software\PENetwork] key [MinimizeToTray=0..]
IF - [Auto] is equal to: [Auto] evaluated string: [If,%pScrollBox2%,Equal,"Auto",RegDelete,"HKLM","%HiveKey%\PENetwork","LangCode"]
RegDelete - Failed to delete registry key in: [HKLM\WB-Software\PENetwork],LangCode

Changing this line
If,%pScrollBox2%,Equal,"Auto",RegDelete,"HKLM","%HiveKey%\PENetwork","LangCode"
to this
If,%pScrollBox2%,Equal,"Auto",If,EXISTREGKEY,"HKLM","%HiveKey%\PENetwork","LangCode",RegDelete,"HKLM","%HiveKey%\PENetwork","LangCode"
fixes the problem

:)

#358 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 12 January 2009 - 06:12 AM

Thanks for info.
Don't know if this command "EXISTREGKEY" does exist in WB074 too - otherwise I will just change the RegDelete-commands to set just an empty value...
Will update the script in the later afternoon.

Greets :)
Holger

#359 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 12 January 2009 - 07:44 AM

Don't know if this command "EXISTREGKEY" does exist in WB074 too - otherwise I will just change the RegDelete-commands to set just an empty value...

That would be best if you want to keep it compatible with older versions of WB. This new command is only available with 075b, but not sure which beta.

Regards,
Galapo.

#360 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 12 January 2009 - 07:38 PM

New version out:
12.01.2009 - v34 (PENM 0.45):

- Changed: RegDelete command changed to RegWrite empty value to work with WB074 and WB075Beta

You can download it from my winbuilder page or directly:
http://holger.winbui...s/PENetwork.zip

Greets
Holger

#361 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 January 2009 - 07:58 PM

New version out:
12.01.2009 - v34 (PENM 0.45):

- Changed: RegDelete command changed to RegWrite empty value to work with WB074 and WB075Beta

You can download it from my winbuilder page or directly:
http://holger.winbui...s/PENetwork.zip

Greets
Holger

Since now version 34 is in the actual 'nightly' nativeEx_barebone_075

Peter :)

#362 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 January 2009 - 08:15 PM

Hi Holger,

I am very unhappy to write bad news for your wonderful utility :), at least news is not about utility, only about script :)

but
If,%pScrollBox2%,Equal,"Auto",RegWrite,"HKLM","%HiveKey%\PENetwork","LangCode",""
causes
RegWrite - Failed to write REG key in root key: [HKLM] Type: [WB-Software\PENetwork] Section [LangCode] key []
on log file

#363 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 January 2009 - 08:23 PM

Maybe solution is this
If,%pScrollBox2%,Equal,"Auto",RegWrite,"HKLM",0x1,"%HiveKey%\PENetwork","LangCode",""
or this
If,%pScrollBox2%,Equal,"Auto",RegDelete,"HKLM",0x1,"%HiveKey%\PENetwork","LangCode",""
:)

#364 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 January 2009 - 08:23 PM

I have the feeling that WinBuilder.exe is responsible for this issue, and PENetwork is innocent ...

Peter :)

@Lancelot: As shown some posts ago, Holger changed from 'Delete' to 'Write empty' because of compatibility reasons.
And with a well working WB this should be possible ...

#365 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 January 2009 - 08:36 PM

SORRY Lancelot!

I did not see the missing 0x1

Peter :)

#366 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 12 January 2009 - 08:36 PM

Lancelot, thanks for info.
Yeah, I missed the 0x1.
Reuploaded the script (no version change).

Peter, just add the 0x1 in the line like Lancelot wrote.

Greets
Holger

#367 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 January 2009 - 08:50 PM

nativeEX_barebone_075 with (0x1) corrected PENetwork.script v034 online!

Peter

#368 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 12 January 2009 - 09:12 PM

Thank you for your fast responds Holger :) :)

After successfull test, now online with livexp :) :)

#369 ladiko

ladiko

    Newbie

  • Members
  • 15 posts
  •  
    Germany

Posted 18 March 2009 - 02:31 PM

i have a problem:

i have profiles with this settings:

CMDChange.CMD1=X:\Program Files\BGInfo\RunBGInfo.exe
CMDChange.Start1=Hidden
CMDChange.Wait1=Yes

the ip, mask, gateway and dns were set by applying the profile, but the command is not executed. i also tried to change it to:
CMDChange.CMD1="X:\Program Files\BGInfo\RunBGInfo.exe"
but it's still not executed. if i copy the command from the penetwork.ini and run it by [Start]->[Run] it works fine and the new ip can be seen on the desktop. i also tried it with it to Start1=Normal and Wait1=No

i tried it this with v3 for vista and v34 for xp.

#370 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 18 March 2009 - 02:48 PM

Hi ladiko,

at the moment I'm a little bit busy and tired of working.
But I will do some tests and if there is a problem try to fix it soon.

Greets :good:
Holger

Edit: forget it - I forgot: this is something I wanted to implement for a long time - I mean: at the moment it's only present in the profile editor.
(To start something after applying a profile on network startup use the "CMD's after startup" tab.)
Will try to finish this open part the next days...

#371 almulder

almulder

    Newbie

  • Members
  • 12 posts
  •  
    Netherlands

Posted 09 June 2009 - 10:24 PM

Holger,

where can I find the syntac of the PENetwork.ini file?

#372 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 10 June 2009 - 08:10 PM

At the moment there is no real syntax explanation.
For now just use the profile editor.
Greets
Holger

#373 almulder

almulder

    Newbie

  • Members
  • 12 posts
  •  
    Netherlands

Posted 10 June 2009 - 09:12 PM

Holger,

BTW You have done a great job with AutoIt.
I am using beta V4 and there is no profile editor
So pls can you tell me how I can do this?

Regards
Louis

#374 almulder

almulder

    Newbie

  • Members
  • 12 posts
  •  
    Netherlands

Posted 11 June 2009 - 09:18 PM

Holger,

is it possible to set a fixed IPAddress like PENETCFG.exe?

regards
Louis

#375 Holger

Holger

    Silver Member

  • .script developer
  • 534 posts
  • Location:Munich
  • Interests:- programming / scripting
    - scooter driving / modifying
    - writing poems
  •  
    Germany

Posted 12 June 2009 - 06:57 AM

Yeah, just press the "Obtain IP address automatically" - button, it will change then to set a static IP address and if you press the button again it will change to DHCP.
It's a button - I changed the GUI design some month ago.
In the new V5 beta for VistaPE/W7 script I have added the editor functionality like for LiveXP.
At the moment I still have some problems with the updated Win7PE project I still want so solve.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users