Search found 58 matches

by lontru
Mon Apr 01, 2019 1:49 am
Forum: Windows PowerShell
Topic: Working with MAC address
Replies: 5
Views: 1111

Re: Working with MAC address

I needed to validate diff way to type a mac address socreated the function for that purpose.
by lontru
Tue Mar 26, 2019 3:41 am
Forum: Windows PowerShell
Topic: Working with MAC address
Replies: 5
Views: 1111

Re: Working with MAC address

created below function to return XX:XX:XX:XX:XX:XX if syntax is a valid mac Validate-MAC -MACAddress '01:23:45:67:89:ab' Validate-MAC -MACAddress '3D:F2:C9:A6:B3:00' Validate-MAC -MACAddress '001e.1324.683f' Validate-MAC -MACAddress '001E.1324.683F' Validate-MAC -MACAddress '00-25-86-DC-FD-3B' Valid...
by lontru
Tue Mar 26, 2019 2:42 am
Forum: Windows PowerShell
Topic: Working with MAC address
Replies: 5
Views: 1111

Working with MAC address

Hi Im working on a tool where i need the mac address in this syntax xx:xx:xx:xx:xx:xx I have below code to validate diff syntax but want it xx:xx:xx:xx:xx:xx so how to do this ? function Validate-MAC ($MACAddress) { $patterns = @( '^([0-9a-f]{2}:){5}([0-9a-f]{2})$' '^([0-9a-f]{2}-){5}([0-9a-f]{2})$'...
by lontru
Mon Mar 25, 2019 3:25 am
Forum: PowerShell GUIs
Topic: Ping/Tracert Gui - responsive forms
Replies: 4
Views: 289

Re: Ping/Tracert Gui - responsive forms

Think i understand it a little but seem to work $buttonStartJob_Click = { $Count = '5' $Device = $($textbox1.Text) $buttonStartJob.Enabled = $false Write-Host "$Device $Count" #Create a New Job using the Job Tracker Add-JobTracker -Name 'JobName' ` -JobScript { #-------------------------------------...
by lontru
Mon Mar 25, 2019 1:45 am
Forum: PowerShell GUIs
Topic: Marquee - progress bar how to use it?
Replies: 6
Views: 370

Re: Marquee - progress bar how to use it?

i see i will look into those sample code
by lontru
Mon Mar 25, 2019 1:24 am
Forum: PowerShell GUIs
Topic: Ping/Tracert Gui - responsive forms
Replies: 4
Views: 289

Re: Ping/Tracert Gui - responsive forms

I have tried the sample code from the blog and it works but my brain can gasp it. So i created a simple form and added the custom control "Button - Start Job" https://i.imgur.com/g4tMkah.png $buttonStartJob_Click={ $buttonStartJob.Enabled = $false #Create a New Job using the Job Tracker Add-JobTrack...
by lontru
Mon Mar 25, 2019 12:57 am
Forum: PowerShell GUIs
Topic: Marquee - progress bar how to use it?
Replies: 6
Views: 370

Re: Marquee - progress bar how to use it?

Is this where you are refering to? i only have these?
Image
by lontru
Mon Mar 25, 2019 12:39 am
Forum: PowerShell GUIs
Topic: Marquee - progress bar how to use it?
Replies: 6
Views: 370

Re: Marquee - progress bar how to use it?

is there a download link for the sample showed in the blog?

The code behind this form?
Image
by lontru
Mon Mar 25, 2019 12:34 am
Forum: PowerShell GUIs
Topic: Ping/Tracert Gui - responsive forms
Replies: 4
Views: 289

Ping/Tracert Gui - responsive forms

Hi I want to create a responsive form so the gui doesnt freeze when used as sample i want to create a gui where you type in a device/hostname. And then you can ping and tracert without locking the gui at the same time is this possible at all before i continue this? https://i.imgur.com/5oEZUqZ.png So...
by lontru
Thu Mar 14, 2019 3:37 am
Forum: PowerShell GUIs
Topic: Marquee - progress bar how to use it?
Replies: 6
Views: 370

Marquee - progress bar how to use it?

https://info.sapien.com/index.php/guis/gui-controls/spotlight-on-the-progressbar-control I have a loop that run when i press a button until a condition is meet. so i want to use the Marquee animation but i cant figure out how to use it? Marquee Indicates progress by continuously scrolling a block ac...