Search found 1392 matches

by ChrisR
Wed Oct 22, 2025 12:29 pm
Forum: Off Topic
Topic: Preparing automatic repair (windows 10)
Replies: 21
Views: 782

Re: Preparing automatic repair (windows 10)

To download and install the latest original Windows 10 or 11 ISO, there is also the Fido.ps1 PowerShell script . Then use Rufus, from the same author Pete Batard, to install it on a USB drive. Personally, I prefer it to the MediaCreationTool.

To recover lost files, I have previously had success ...
by ChrisR
Tue Oct 21, 2025 1:27 pm
Forum: Coding Questions
Topic: How to set window close event to match each window?
Replies: 3
Views: 175

Re: How to set window close event to match each window?

Yes, I was writing...
I don't have time to test it right now. but just by looking at the shared codes

BindEvent(#PB_Event_Menu, @events_main_window())
BindEvent(#PB_Event_Gadget, @events_main_window())

Is used multiple times, with different procedures and without specifying the window
it would ...
by ChrisR
Tue Oct 21, 2025 12:11 am
Forum: Off Topic
Topic: Preparing automatic repair (windows 10)
Replies: 21
Views: 782

Re: Preparing automatic repair (windows 10)

I just tested Hirens, Win10XPE, on a drive (here D:) encrypted with BitLocker.
The encrypted BitLocker drive is displayed with a yellow padlock icon in Explorer.
And bdeunlock is functional and integrated for drive in Explorer (double click on the encrypted drive).

If the drive is not unlocked ...
by ChrisR
Mon Oct 20, 2025 9:24 pm
Forum: Coding Questions
Topic: How to open and reopen a window from a first window?
Replies: 12
Views: 526

Re: How to open and reopen a window from a first window?

+1 for this approach @TI-994A for multi-window :)
We can also add others BindEvent(#PB_Event_Menu, @Event_Menu_xxx...), BindEvent(#PB_Event_SizeWindow, @Resize_xxx...)
That's what I offer with the option "Bind all Gadgets Events" in IceDesign :wink:

And to be able to test each window individually ...
by ChrisR
Mon Oct 20, 2025 7:19 pm
Forum: Off Topic
Topic: Preparing automatic repair (windows 10)
Replies: 21
Views: 782

Re: Preparing automatic repair (windows 10)

Hiren's is indeed the right choice. It is a great Win10XPE building, with all the features that make it close to a real Windows, and it has a wide range of software for diagnosis, repair, etc
(I would have just liked a little thank you or an indication of the project used for the Hiren building ...
by ChrisR
Mon Oct 20, 2025 3:22 pm
Forum: Coding Questions
Topic: How to open and reopen a window from a first window?
Replies: 12
Views: 526

Re: How to open and reopen a window from a first window?

Yes, If you want to navigate between multiple windows, it is better to use only 1 WaitWindowEvent(), event loop.
With multiple loop, only one loop is active at a time.
If you want to simplify reading, maintenance, you can call Sub-Procedure for each window, ex.:

Procedure EventSubWindow1(EventID ...
by ChrisR
Mon Oct 20, 2025 2:44 pm
Forum: Coding Questions
Topic: [Solved] List the fields of the structure
Replies: 7
Views: 451

Re: [Solved] List the fields of the structure

Extending AZJIO, Demivec example for others basic type structure fields, know in advance!
But it's not very pretty, it is hard-coded for each field/type

Structure Person
FirstName.s
Age.d
LastName${30}
Age2.l
SubName$
Age3.i
EndStructure

Define P.Person
P\FirstName = "John"
P\Age = 42
P ...
by ChrisR
Mon Oct 20, 2025 12:49 pm
Forum: Coding Questions
Topic: How to open and reopen a window from a first window?
Replies: 12
Views: 526

Re: How to open and reopen a window from a first window?


If I want to open the second window from the menu. It won't open. If I close the already opened window, then it will open and close normally. I can open the windows but not have them open at the same time. Is this because the first window is still in this event loop. But then the main window is ...
by ChrisR
Mon Oct 20, 2025 11:26 am
Forum: Coding Questions
Topic: How to open and reopen a window from a first window?
Replies: 12
Views: 526

Re: How to open and reopen a window from a first window?

In your 2 OpenSubWindow1(2), the window is closed when you click the button "Sluiten"
but you don't exit the event loop to return to the main event loop.

Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_Gadget And EventGadget() = 4
CloseWindow(#Venster2) ; Sluit het subvenster
EndIf ...
by ChrisR
Sun Oct 19, 2025 11:55 pm
Forum: Coding Questions
Topic: [Solved] List the fields of the structure
Replies: 7
Views: 451

Re: List the fields of the structure

There may be a workaround using the JSON library

Structure Person
FirstName.s
LastName$
Age.l
List Books.s()
EndStructure

Define P.Person
P\FirstName = "John"
P\LastName$ = "Smith"
P\Age = 42
AddElement(P\Books()): P\Books() = "Investing For Dummies"
AddElement(P\Books()): P\Books ...
by ChrisR
Sun Oct 19, 2025 9:21 pm
Forum: Coding Questions
Topic: [Solved] PanelGadget - One by One (NOT tabs)
Replies: 2
Views: 180

Re: PanelGadget - One by One (NOT tabs)

PanelGadget and ContainerGadget use a gadget list, so you need 2 additional CloseGadgetList() + correction of the y position of the ListViewGadget

PanelGadget(#PanelGadget, 8, 8, 608, 220)
AddGadgetItem(#PanelGadget, 0, "123")
ContainerGadget(#ContainerGadget, 0, 0, GetGadgetAttribute ...
by ChrisR
Sun Oct 19, 2025 6:35 pm
Forum: Coding Questions
Topic: SpinGadget
Replies: 5
Views: 311

Re: SpinGadget

Same as Rashad, while maintaining focus when entering the number
OpenWindow(0, 0, 0, 140, 70, "SpinGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
#spin=1
SpinGadget (#spin, 20, 20, 100, 25, 0, 1000, #PB_Spin_Numeric)
SetGadgetState (#spin, 555)

Procedure test()
If EventType() = #PB ...
by ChrisR
Sun Oct 19, 2025 1:09 pm
Forum: Off Topic
Topic: Preparing automatic repair (windows 10)
Replies: 21
Views: 782

Re: Preparing automatic repair (windows 10)

Hi,

If you have access to another pc, you can create a rescue usb with "hirens boot cd"

https://www.hirensbootcd.org/files/HBCD_PE_x64.iso

This is a collection of tools from partition recovery to everyting else. ( so you can copy files to another drive )

For info, Hiren’s BootCD PE version was ...
by ChrisR
Thu Oct 02, 2025 9:58 am
Forum: Coding Questions
Topic: Problems with list in a procedure - need help
Replies: 13
Views: 779

Re: Problems with list in a procedure - need help

Just to add the positioning at the top of the list(ResetList) before the loop While NextElement(SNB()).
And memorize, restore the current element (Push(Pop)ListPosition) to avoid changing the current List item

EnumerationBinary SNbitflags
#IsWater
#SNType
#IsPathNode
#IsParcelPoint ...