Search found 13477 matches

by jvierra
Mon May 20, 2019 11:32 pm
Forum: PowerShell GUIs
Topic: Displaying a modal form
Replies: 8
Views: 112

Re: Displaying a modal form

Not with basic PowerShell. You would have to use the Win32 API calls to create a proess modal to the desktop. In windows 10 I do not think this is possible. We used to do it With XP. Allowing this can be a security issue.
by jvierra
Mon May 20, 2019 12:18 pm
Forum: PowerShell GUIs
Topic: systray application
Replies: 4
Views: 85

Re: systray application

The first example test code does not work as it is missing files and was built to only run on the 2017 version of PSS. The second linked example suffers from most of the same deficiencies. The URL file should not be stored in "Programs" and the icon file needs to be in the app folder. Change this: "...
by jvierra
Mon May 20, 2019 12:03 pm
Forum: PowerShell GUIs
Topic: systray application
Replies: 4
Views: 85

Re: systray application

Please post a simple version of your PSF file.

The icon has an event that is raised when it is clicked. You will need to use that event and not themenu events.
by jvierra
Sun May 19, 2019 6:24 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

Your form is not connected to the event. Double click on the button in the designer and it should work.
by jvierra
Sun May 19, 2019 6:22 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

GIFs do not explain your issue. The form I posted does what you ask as far as I can decode it. Without some basic knowledge of programming you will no be able to ask a clear question.

Sorry.
by jvierra
Sun May 19, 2019 5:01 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

Thank you for your help Maybe I didn’t express it clearly, 1. When the countdown is over, perform the function of pressing the ok button, the selected items Output in the console 2. During the countdown process, if I perform other operations, such as clicking a form or selecting an item, the countd...
by jvierra
Sun May 19, 2019 4:51 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

Because "CheckedItems" is not a value - it is a collection of objects that have checks. Again. With no programming experience you will continuously make bad guesses. There is no substitute for knowing. Guessing never works in any programming language. The link will not only teach you basic PowerShel...
by jvierra
Sun May 19, 2019 4:11 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

I can give you an example of how to close the form with a timer.

Try this version of your form:
by jvierra
Sun May 19, 2019 4:01 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

No need to delete this. Just do the tutorial and then come back and ask a question that can be answered. The issue is that you are asking for a whole solution and your request is very hard to understand because your are not using PowerShell and Forms as they are designed to be used., Once you learn ...
by jvierra
Sun May 19, 2019 3:33 pm
Forum: PowerShell GUIs
Topic: Select item in the list box, countdown will automatically press button
Replies: 21
Views: 178

Re: Select item in the list box, countdown will automatically press button

Please stop and do the tutorial on PowerShell. Personal instruction is beyond the scope of this forum.

Start with this tutorial. It will answer all of your questions.

Microsoft Virtual Academy - Introduction to PowerShell