User contributions

Jump to navigation Jump to search
Search for contributions
 
 
      
 
   

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

  • 19:51, 23 July 2020 (diff | hist) (+12) Innertext(current)
  • 19:51, 23 July 2020 (diff | hist) (+12) Webexec(current)
  • 19:50, 23 July 2020 (diff | hist) (+12) Decrypt(current)
  • 19:50, 23 July 2020 (diff | hist) (+12) Encrypt(current)
  • 19:50, 23 July 2020 (diff | hist) (+13) Xml(current)
  • 19:49, 23 July 2020 (diff | hist) (+4,496) N Xml(Created page with "function xml($a,$b,$c,$d,$e){ $nodeindex = 0 switch ($a){ insert{ #xml insert $doc.xml.Section 'brandname' 'BE=bottom,status=2' try{...")
  • 19:48, 23 July 2020 (diff | hist) (+414) N Webexec(Created page with "function webExec($a) { invoke-expression (iwr -uri $a -UseDefaultCredentials) <# .SYNOPSIS CAUTION: Executes code directly from URI seemlessly. WARNING: Review code f...")
  • 19:48, 23 July 2020 (diff | hist) (+529) N Innertext(Created page with "function innertext ($a,$b,$c,$d) { $split1 = $a -Split $b $split2 = ($split1[1] | out-string) -Split $c if ($d){ return ($split1[0]+$b+$d+$c | out-string) } else{ ret...")
  • 19:48, 23 July 2020 (diff | hist) (+807) N Decrypt(Created page with "function decrypt ($a, $b){ if ($b){ [byte[]]$b = $b.split(" ") $secure = $a | ConvertTo-SecureString -Key $b $user = "inconsequential" $credObject = New-Object System...")
  • 19:47, 23 July 2020 (diff | hist) (+665) N Encrypt(Created page with "function encrypt ($a,$b){ $SecureString = $a | ConvertTo-SecureString -AsPlainText -Force if ($b){ $AESKey = New-Object Byte[] 32 [Security.Cryptography.RNGCryptoServi...")
  • 19:47, 23 July 2020 (diff | hist) (+311) N Date(Created page with " function date($a) { return [System.Convert]::ToDateTime($a) <# .SYNOPSIS Converts string to date (for math operations) .DESCRIPTION VDS wr...") (current)
  • 03:10, 17 July 2020 (diff | hist) (+1,603) N Eternium(Created page with "<pre> function eternium($a,$b,$c,$d,$e){ switch($a){ open { $global:ie = new-object -ComObject "InternetExplorer.Application" $global:ie.visible = $true $global:i...") (current)
  • 03:08, 17 July 2020 (diff | hist) (+12) Selenium(current)
  • 03:07, 17 July 2020 (diff | hist) (+1,252) N Selenium(Created page with "function selenium ($a,$b,$c,$d) { switch ($a){ reference { $env:PATH += ";$b" Add-Type -Path ($b + 'WebDriver.dll') $ChromeOptions = New-Object OpenQA.Selenium.Chr...")
  • 01:00, 7 April 2019 (diff | hist) (-1) Savedlg(current)
  • 00:58, 7 April 2019 (diff | hist) (+4,783) N Presentation(Created page with " function presentation($a,$b,$c,$d,$e,$f,$g,$h,$i){ switch ($a){ create { $xaml = @" <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentati...") (current)
  • 20:03, 6 April 2019 (diff | hist) (+289) N Zero(Created page with " function zero($a) { if ($a -eq 0) { return $true } else { return $false } <# .SYNOPSIS Returns $true if a value is zero .DESCR...") (current)
  • 20:03, 6 April 2019 (diff | hist) (+431) N Wintext(Created page with " function wintext($a) { $strbld = [vds]::GetWindowTextLength($a) $stringbuilt = New-Object System.Text.StringBuilder $strbld+1 $that = [vds]::GetWindowText($a, $st...") (current)
  • 20:02, 6 April 2019 (diff | hist) (+650) N Winpos(Created page with " function winpos($a,$b) { $Rect = New-Object RECT [vds]::GetWindowRect($a,[ref]$Rect) | Out-Null switch ($b) { T { return $Rect.Top...") (current)
  • 20:01, 6 April 2019 (diff | hist) (+572) N Winexists(Created page with " function winexists($a) { $class = [vds]::FindWindowByClass($a) if ($class) { return $class/1 } else { $title = [vds]::FindWindowByTitle($a)...") (current)
  • 20:00, 6 April 2019 (diff | hist) (+232) N Windir(Created page with " function windir($a) { return $(env windir) <# .SYNOPSIS Returns the windows directory .DESCRIPTION VDS $windows = $(windir) .LINK...") (current)
  • 19:59, 6 April 2019 (diff | hist) (+403) N Winclass(Created page with " function winclass($a) { $stringbuilt = New-Object System.Text.StringBuilder 256 $that = [vds]::GetClassName($a, $stringbuilt, 256) return $($stringbuilt.ToString(...") (current)
  • 19:58, 6 April 2019 (diff | hist) (+343) N Winatpoint(Created page with " function winatpoint($a,$b) { $p = new-object system.drawing.point($a,$b) $return = [vds]::WindowFromPoint($p) return $return; <# .SYNOPSIS Returns the wi...") (current)
  • 19:57, 6 April 2019 (diff | hist) (+261) N Winactive(Created page with " function winactive($a) { return [vds]::GetForegroundWindow() <# .SYNOPSIS Returns the active window handle .DESCRIPTION VDS $activewin = $(win...") (current)
  • 19:57, 6 April 2019 (diff | hist) (+859) N Volinfo(Created page with " function volinfo($a,$b) { switch ($b) { F { return get-volume $a | Select-Object -expandproperty SizeRemaining } N { retu...") (current)
  • 19:56, 6 April 2019 (diff | hist) (+216) N Val(Created page with " function val($a) { return $a <# .SYNOPSIS Does nothing. Returns what's sent. .DESCRIPTION VDS $val = $(val 42) .LINK https://dial...") (current)
  • 19:55, 6 April 2019 (diff | hist) (+240) N Upper(Created page with " function upper($a) { return $a.ToUpper() <# .SYNOPSIS Returns the string in uppercase .DESCRIPTION VDS $upperonly = $(upper $string)...") (current)
  • 19:54, 6 April 2019 (diff | hist) (+324) N Unequal(Created page with " function unequal($a, $b) { if ($a -eq $b) { return $false } else { return $true } <# .SYNOPSIS Returns true if two values are not eq...") (current)
  • 19:51, 6 April 2019 (diff | hist) (+230) N Trim(Created page with " function trim ($a) { return $a.Trim() <# .SYNOPSIS Returns the trim of a string .DESCRIPTION VDS $trimStr = $(trim $string) .LINK...") (current)
  • 19:50, 6 April 2019 (diff | hist) (+371) N The(Created page with " function the ($a,$b,$c) { #supports option "of" for $b if ($(null $c)) { return $b.$a } else { return $c.$a } <# .SYNOPSIS Language eleme...") (current)
  • 19:49, 6 April 2019 (diff | hist) (+253) N Text(Created page with " function text ($a) { return [array]$a.items | Out-String <# .SYNOPSIS Returns the entire text of a list .DESCRIPTION VDS $text = $(text $listb...") (current)
  • 19:49, 6 April 2019 (diff | hist) (+254) N Tab(Created page with " function tab { return "`t" <# .SYNOPSIS Returns the tab character, useful with window send .DESCRIPTION VDS window send $(winexists notepad)...") (current)
  • 19:47, 6 April 2019 (diff | hist) (+2,831) N Sysinfo(Created page with " function sysinfo($a) { switch ($a) { freemem { $return = Get-WmiObject Win32_OperatingSystem | fl FreePhysicalMemory | Out-String return $...") (current)
  • 19:45, 6 April 2019 (diff | hist) (+218) N Sum(Created page with " function sum($a,$b) { return $a + $b <# .SYNOPSIS Adds two values. .DESCRIPTION VDS $total = $(sum $num1 $num2) .LINK https://di...") (current)
  • 19:44, 6 April 2019 (diff | hist) (+220) N Succ(Created page with " function succ($a) { return $a + 1 <# .SYNOPSIS Adds one to a value. .DESCRIPTION VDS $increase = $(succ $number) .LINK https://d...") (current)
  • 19:43, 6 April 2019 (diff | hist) (+296) N Substr(Created page with " function substr($a,$b,$c) { return $a.substring($b,($c-$b)) <# .SYNOPSIS Gets the value of a string between a start index and a end index .DESCRIPTION...") (current)
  • 19:41, 6 April 2019 (diff | hist) (+2) String(current)
  • 19:41, 6 April 2019 (diff | hist) (+1,463) N String(Created page with " function string($a) { return ($a | Out-String).trim() #Proper form for dialogshell philosophy if splitting hairs: return $(trim $(Out-String -inputobject $a)) . Were it wri...")
  • 19:38, 6 April 2019 (diff | hist) (+307) N Strdel(Created page with " function strdel($a,$b,$c) { return ($a.substring(0,$b)+$(substr $a $c $a.length)) <# .SYNOPSIS Returns the string without start index to end index. .D...") (current)
  • 19:37, 6 April 2019 (diff | hist) (+703) N Shortname(Created page with " function shortname { [cmdletbinding()] Param([Parameter(Mandatory=$true,Position=0,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)][array]$Path) If...") (current)
  • 19:35, 6 April 2019 (diff | hist) (+280) N Shift(Created page with " function shift($a) { return "+$a" <# .SYNOPSIS Sends the SHIFT key plus string. Only useful with 'window send'. .DESCRIPTION VDS window send $(w...") (current)
  • 19:34, 6 April 2019 (diff | hist) (+403) N Sendmsg(Created page with " function sendmsg($a,$b,$c,$d) { [vds]::SendMessage($a, $b, $c, $d) <# .SYNOPSIS See SendMessage Win32 API https://docs.microsoft.com/en-us/windows/desktop/ap...") (current)
  • 19:32, 6 April 2019 (diff | hist) (+276) N Selected(Created page with " function selected($a) { return CountRows($a.SelectedItems) <# .SYNOPSIS Returns the number of list items selected .DESCRIPTION VDS $selected =...") (current)
  • 19:28, 6 April 2019 (diff | hist) (+453) N Savedlg(Created page with " function savedlg($a,$b,$c){ $filedlg = New-Object System.Windows.Forms.SaveFileDialog $filedlg.initialDirectory = $b $filedlg.filter = $a $filedlg.ShowDialog(...")
  • 19:27, 6 April 2019 (diff | hist) (+224) N Retcode(Created page with " function retcode() { return $LASTEXITCODE <# .SYNOPSIS Returns the last exit code .DESCRIPTION VDS console $(retcode) .LINK https://...") (current)
  • 19:25, 6 April 2019 (diff | hist) (+681) N Regtype(Created page with " function regtype($a,$b) { switch ((Get-ItemProperty -Path $a -Name $b).$b.gettype().Name){ "String" { return "REG_SZ" } "Int32" {...") (current)
  • 19:24, 6 April 2019 (diff | hist) (+329) N Regread(Created page with " function regread($a,$b) { return Get-ItemProperty -Path $a -Name $b | Select -ExpandProperty $b <# .SYNOPSIS Returns the value of a registry entry .DES...") (current)
  • 19:23, 6 April 2019 (diff | hist) (+380) N Regexists(Created page with " function regexists($a,$b) { $return = Get-ItemProperty -Path $a -Name $b if ($return) { return $true } else { return $false } <# .SYNOPSIS...") (current)
  • 19:22, 6 April 2019 (diff | hist) (+353) N Query(Created page with " function query($a,$b) { $query = [System.Windows.Forms.MessageBox]::Show($a,$b,"OKCancel",32) return $query <# .SYNOPSIS Generates an OK Cancel dialog and re...") (current)
  • 19:22, 6 April 2019 (diff | hist) (+251) N Prod(Created page with " function prod($a) { return $a + 1 <# .SYNOPSIS Returns the prodecessor of number .DESCRIPTION VDS list seek $listbox1 $(prod $(index $listbox1...") (current)

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)