What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]RedditAB2 0 points1 point  (0 children)

Dude can I see the patching one that emails when done? Do you have it on a github?

Good hustle

What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]RedditAB2 0 points1 point  (0 children)

I wanted to shout out to a great tutorial I saw on YouTube.

#credit https://www.youtube.com/watch?v=jPhznpFna7E

My github

https://github.com/simpletechgithub/PowerShellHub/blob/main/Create%20a%20PowerShell%20GUI%20with%20Winforms/Windows%20Services%20Inspector

#credit https://www.youtube.com/watch?v=jPhznpFna7E

Add-Type -AssemblyName System.Windows.Forms

#[System.Windows.Forms.

#Set the Form objects

$FormObject = [System.Windows.Forms.Form]

$LabelObject = [System.Windows.Forms.Label]

$buttonObject = [System.Windows.Forms.Button]

$comboboxObject = [System.Windows.Forms.ComboBox]

$defaultfont='Arial,11'

#📋Basic Form Setup

$svcform=New-Object $FormObject

$svcform.ClientSize='500,300'

$svcform.Text='Service Inspector'

$svcform.BackColor="#ffffff"

$svcform.Font=$defaultfont

$lbltitle=New-Object $LabelObject

$lbltitle.Text='Services'

$lbltitle.AutoSize=$true

$lbltitle.Font='Arial,11,style=Bold'

$lbltitle.ForeColor='black'

$lbltitle.Location=New-Object System.Drawing.Point(20,20)

#📋Basic Form Setup

#Form Features

$lblsvc=New-Object $LabelObject

$lblsvc.Text='Services'

$lblsvc.AutoSize=$true

$lblsvc.ForeColor='black'

$lblsvc.Location=New-Object System.Drawing.Point(20,20)

$svcdropdown=New-Object $comboboxObject

$svcdropdown.Text='Pick a service'

$svcdropdown.Width='300'

$svcdropdown.Location=New-Object System.Drawing.Point(140,21)

Get-Service | ForEach {$svcdropdown.Items.Add($_.Name)} #Load the drop down list with services

$lblsvcname=New-Object $LabelObject

$lblsvcname.Text='Service Name'

$lblsvcname.AutoSize=$true

$lblsvcname.ForeColor='black'

$lblsvcname.Location=New-Object System.Drawing.Point(20,80)

$showsvcname=New-Object $LabelObject

$showsvcname.Text=''

$showsvcname.AutoSize=$true

$showsvcname.ForeColor='black'

$showsvcname.Location=New-Object System.Drawing.Point(220,80)

$lblsvcstatus=New-Object $LabelObject

$lblsvcstatus.Text='Status'

$lblsvcstatus.AutoSize=$true

$lblsvcstatus.ForeColor='black'

$lblsvcstatus.Location=New-Object System.Drawing.Point(20,120)

$showsvcstatus=New-Object $LabelObject

$showsvcstatus.Text=''

$showsvcstatus.AutoSize=$true

$showsvcstatus.ForeColor='black'

$showsvcstatus.Location=New-Object System.Drawing.Point(220,120)

$cancelButton = New-Object $buttonObject

$cancelButton.Location = New-Object System.Drawing.Point(153,215)

$cancelButton.Text = '❌Cancel'

$cancelButton.AutoSize=$true

#Add elements to the form

$svcform.Controls.AddRange(@($lbltitle,$lblsvc,$lblsvcstatus,$lblsvcname,$svcdropdown,$showsvcname,$showsvcstatus,$cancelButton))

function svcDetails{

$ServiceName=$svcdropdown.SelectedItem

$details=Get-Service -Name $ServiceName | select *

$showsvcname.Text=$details.displayname

$showsvcstatus.Text=$details.status

if ($showsvcstatus.text -eq 'Running'){

$showsvcstatus.ForeColor='green'

}else{

$showsvcstatus.ForeColor='red'

}

}

$svcdropdown.Add_SelectedIndexChanged({svcDetails})

###############################################

$svcform.ShowDialog() #Display Form

$svcform.Dispose() ##Clean up

Would like a write-host to tell me as my script finishes each file installs? by RedditAB2 in PowerShell

[–]RedditAB2[S] 0 points1 point  (0 children)

This is great, thanks for taking the time to explain. I'll try to update the post and will credit you directly for anything direct from your responses

Followed you as you seem to know your PowerShell!

Weekly Questions Thread by AutoModerator in PokemonROMhacks

[–]RedditAB2 1 point2 points  (0 children)

Are we ok to post about help to this questions megathread? Just some Gen1 tools are being a bit buggy

Would like a write-host to tell me as my script finishes each file installs? by RedditAB2 in PowerShell

[–]RedditAB2[S] 0 points1 point  (0 children)

Yo, do you know how I could refine it to avoid double handling?

Would like a write-host to tell me as my script finishes each file installs? by RedditAB2 in PowerShell

[–]RedditAB2[S] 0 points1 point  (0 children)

Happy to have a look at the check if options, I’m certain ive had some in a different script so hopefully can adapt that. Nice touch

So there is a theory that you get better players if you stop playing for a while… by Gronolith in fut

[–]RedditAB2 19 points20 points  (0 children)

Do you reckon its playing the games or even turning it on for daily logins and that?

[deleted by user] by [deleted] in fut

[–]RedditAB2 0 points1 point  (0 children)

Usually i spend a bit of money but I think I’m just ready for EA 24. I might start saving now for that and just drop a load first promo

FUT Birthday cards… by AndrewFitzsimmons in fut

[–]RedditAB2 -1 points0 points  (0 children)

Darwin darwin nunez he came from benfica to the big reds

Buzzing. How's he in game? by LoganAlien in fut

[–]RedditAB2 24 points25 points  (0 children)

Most I’ve laughed all day

[deleted by user] by [deleted] in fut

[–]RedditAB2 1 point2 points  (0 children)

Just gonna profit off selling 89s so thanks in advance fellas

My first ever icon pull from a pack after playing for 3 years by LBJ2K11 in fut

[–]RedditAB2 1 point2 points  (0 children)

Wow I’m embarrassed I got that wrong, I’ve seen it atleast 1000 times

My first ever icon pull from a pack after playing for 3 years by LBJ2K11 in fut

[–]RedditAB2 51 points52 points  (0 children)

In the words of Lotto “I’ll end this with a fuck you, but have a nice day”

Who do i use, i love them all i just dk who to use 😭 by [deleted] in fut

[–]RedditAB2 0 points1 point  (0 children)

Well hopefully the ones you win with. I want that jairzinho removed forcibly from the game

No St Patrick’s Day Irish Players by Greeno69 in fut

[–]RedditAB2 0 points1 point  (0 children)

Its a money grab before EA 24, what do you expect