Search found 16 matches

by noescape
Wed Mar 30, 2016 1:55 am
Forum: PowerShell Studio
Topic: Dark Theme
Replies: 1
Views: 452

Dark Theme

Hi,

I really like the dark theme you introduced in PSS2016 and we would like to use it, but unfortunately we only have licenses for PSS2015.
Could you please share the theme file?

Thanks
by noescape
Wed Feb 10, 2016 2:49 am
Forum: PowerShell GUIs
Topic: DataGridView commit change immediately
Replies: 2
Views: 1222

Re: DataGridView commit change immediately

Nevermind,

the solution is:

Code: Select all

$DGV_CurrentCellDirtyStateChanged={
if ($DGV.IsCurrentCellDirty)
{
$DGV.CommitEdit([System.Windows.Forms.DataGridViewDataErrorContexts]::Commit)
}

}
by noescape
Wed Feb 10, 2016 2:34 am
Forum: PowerShell GUIs
Topic: DataGridView commit change immediately
Replies: 2
Views: 1222

DataGridView commit change immediately

Product, version and build: PowerShell Studio 2015 Version 4.2.83 32 or 64 bit version of product: 64bit Operating system: Win8.1 64bit Hi, I'm interested in the option of commiting changes to any cell inside a DataGridView without ending the edit mode. I've found some options for C# and other langu...
by noescape
Wed Jan 20, 2016 1:02 am
Forum: Windows PowerShell
Topic: (Start-Process) vs. (New-Object System.Diagnostics.Process)
Replies: 2
Views: 5509

Re: (Start-Process) vs. (New-Object System.Diagnostics.Process)

Hi David, I tried adding $install.WaitForExit() with no success. We are using PowerShell v4. Maybe the problem isn't with the Wait parameter, but because the PsExec process starts it's thread out of PowerShell Studio process tree, unlike (New-Object System.Diagnostics.Process) which creates the thre...
by noescape
Mon Jan 18, 2016 7:01 am
Forum: Windows PowerShell
Topic: (Start-Process) vs. (New-Object System.Diagnostics.Process)
Replies: 2
Views: 5509

(Start-Process) vs. (New-Object System.Diagnostics.Process)

Hi, from within a jobscript, when I create a process using New-Object System.Diagnostics.Process and then start it, it works fine and the process I create (psexec) start within context of PS Studio: -JobScript { ` param ($Station, $Package, $Version) $installinfo = New-object System.Diagnostics.Proc...
by noescape
Wed Jan 13, 2016 6:09 am
Forum: Windows PowerShell
Topic: two background jobs colision
Replies: 10
Views: 3491

Re: two background jobs colision

Thanks for useful information, it makes sense. I figured it out myself but I'm glad it was the right place to stop the timer. Here is how to run a continuous background ping against multiple computers. It will run until you stop the job. You can use a timer to poll the job and display/update the st...
by noescape
Wed Jan 13, 2016 4:11 am
Forum: Windows PowerShell
Topic: two background jobs colision
Replies: 10
Views: 3491

Re: two background jobs colision

Thanks for useful information, it makes sense. I figured it out myself but I'm glad it was the right place to stop the timer.
by noescape
Wed Jan 13, 2016 3:54 am
Forum: Windows PowerShell
Topic: two background jobs colision
Replies: 10
Views: 3491

Re: two background jobs colision

Yes I get it now... the line works if I remove the pingtimer job, I'll have to figure out that one first. I stopped the timer before I called the job, I just didn't add that to the post...
by noescape
Wed Jan 13, 2016 3:32 am
Forum: Windows PowerShell
Topic: two background jobs colision
Replies: 10
Views: 3491

Re: two background jobs colision

Where do I call jobtracker from completed scriptblock? If you mean the $timerJobTracker.start() that was just for the debugging purpose as you proposed before. I can't see what else could you have in mind with that. I will have to re-design the whole thing that is true. I'm glad that I know now I ca...
by noescape
Wed Jan 13, 2016 3:07 am
Forum: Windows PowerShell
Topic: two background jobs colision
Replies: 10
Views: 3491

Re: two background jobs colision

There is way too much code to se your issue. It is fairly certain that you have a bit of bad script somewhere. Anther issue is that you will not be able to reliably run this under a debugger while the timer is ticking. You will need to put a timer stop in at the breakpoint, then you will be able to...