Search found 24 matches

by zztemp
Tue Aug 07, 2018 2:18 am
Forum: PowerShell GUIs
Topic: RAM-Usage of an application
Replies: 3
Views: 485

Re: RAM-Usage of an application

I appreciate the input. That was quite the rabbit hole ... . The more i read the more it became blurred :/ This topic got me way out of my scope but i picked up a thing or two. However, putting your finger on how much ram my application actually uses isn't really clear. We have the book you are talk...
by zztemp
Thu Aug 02, 2018 11:36 pm
Forum: PowerShell GUIs
Topic: RAM-Usage of an application
Replies: 3
Views: 485

RAM-Usage of an application

Hello, I have created a GUI that sits in the systemtray, it get's some computerinformation from the WMI. It has a secundary runspace that has a never ending while-loop that constantly checks something. Now the GUI itself mainly just sits in the systemtray after logon of the user. When clicked it wil...
by zztemp
Tue Jul 17, 2018 3:39 am
Forum: PowerShell GUIs
Topic: Runspaces with Winform, are they disposed ?
Replies: 9
Views: 973

Re: Runspaces with Winform, are they disposed ?

So i wanted to thank you for pointing me into the direction i needed. I've copy\pasted the general outline of how i'm doing it now. This way works perfectly. On one clickevent i know have 2 runspaces started, one for doing the actual work and a second one to go through a imagelist and showing an ani...
by zztemp
Thu Jul 12, 2018 7:34 am
Forum: PowerShell GUIs
Topic: Runspaces with Winform, are they disposed ?
Replies: 9
Views: 973

Re: Runspaces with Winform, are they disposed ?

I tried with the pool but i couldn't find out how i should pass the sharedData variable. I tried to pass it a long to the runspace but it kept notifying me that it wasn't possible. So i figured i just simplify and just try with one powershell instance and runspace. But yes a pool would be better. If...
by zztemp
Thu Jul 12, 2018 7:03 am
Forum: PowerShell GUIs
Topic: Runspaces with Winform, are they disposed ?
Replies: 9
Views: 973

Re: Runspaces with Winform, are they disposed ?

Hi, Thanks for helping again. Well the main reason for me using runspaces, is because i want to learn how it works. The task at hand might not be best suited for it, but its a simple job from which i know what to expect as output. I gotta start small. You say i am not running my runspace "async". Bu...
by zztemp
Thu Jul 12, 2018 6:38 am
Forum: PowerShell GUIs
Topic: Runspaces with Winform, are they disposed ?
Replies: 9
Views: 973

Runspaces with Winform, are they disposed ?

So i posted a question earlier last week : https://www.sapien.com/forums/viewtopic.php?f=21&t=12723&p=68539#p68539 I got that figured out but it got me interested in runspaces all together. Therefore i started reading a lot and made a list of different possibilities and saved them to my github as a ...
by zztemp
Fri Jul 06, 2018 2:33 am
Forum: PowerShell GUIs
Topic: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio
Replies: 9
Views: 1352

Re: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio

I had a brief look at the SDK for powershell 3.0 (there does not seem to be one for 5.0). As you correctly pointed out, the examples are in C# and this is a bit of an issue for me. Yes i understand what the code does, but because of me not knowing any of the syntax, i'm not possible to translate it ...
by zztemp
Wed Jul 04, 2018 1:47 pm
Forum: PowerShell GUIs
Topic: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio
Replies: 9
Views: 1352

Re: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio

Hi, So i implemented your code into mine and it worked within five minutes, so again thanks !! The reason why i didn't post my full code is simply because all the images that it holds, are made with encoding and decoding To and From Base64String. So i would have to replace them by something that's n...
by zztemp
Wed Jul 04, 2018 12:23 am
Forum: PowerShell GUIs
Topic: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio
Replies: 9
Views: 1352

Re: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio

Hi Jvierra,

Thanks for taking the time to create this. I've downloaded it and tested. This gives me the same result as "my way" did but i am now going to try and implement your technique into my full systemtray-GUI. Afterwards i'll report back.
by zztemp
Tue Jul 03, 2018 2:07 am
Forum: PowerShell GUIs
Topic: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio
Replies: 9
Views: 1352

Re: Register-ObjectEvent in combination with GUI\XAML and Powershell Studio

Hi Alexander, Thanks for responding. I read through that post and i did a test (well, quite a few). I tried to make an EXE with just the ShowMessage() and Register-ObjectEvent. This indeed works thanks to that while that keeps the scrips running and active. I then tried to combine it with my full XA...