User contributions

Jump to navigation Jump to search
Search for contributions
 
 
      
 
   

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

  • 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)
  • 19:20, 6 April 2019 (diff | hist) (+251) N Pred(Created page with " function pred($a) { return $a - 1 <# .SYNOPSIS Returns the predecessor of number .DESCRIPTION VDS list seek $listbox1 $(pred $(index $listbox1...") (current)
  • 19:19, 6 April 2019 (diff | hist) (+368) N Pos(Created page with " function pos($a,$b) { $regEx = [regex]$a $pos = $regEx.Match($b) if ($pos.Success){ return $pos.Index } else { return false } <#...") (current)
  • 19:18, 6 April 2019 (diff | hist) (+232) N Path(Created page with " function path($a) { return Split-Path -Path $a <# .SYNOPSIS Returns the path of a file .DESCRIPTION VDS console $(path $file) .LINK...") (current)
  • 19:17, 6 April 2019 (diff | hist) (+192) N Ok(Created page with " function ok { return $? <# .SYNOPSIS Returns true if OK. .DESCRIPTION VDS console $(ok) .LINK https://dialogshell.com/vds/help/in...") (current)
  • 19:00, 6 April 2019 (diff | hist) (+236) N Numeric(Created page with " function numeric($a) { return $a -is [int] <# .SYNOPSIS Returns true if numeric .DESCRIPTION VDS console $(numeric $isnumber) .LINK...") (current)
  • 18:59, 6 April 2019 (diff | hist) (+324) N Null(Created page with " function null($a) { if ($a -eq $null) { return $true } else { return $false } <# .SYNOPSIS Returns true if null .DESCRIPTIO...") (current)
  • 18:58, 6 April 2019 (diff | hist) (+314) N Not(Created page with " function not($a){ if ($a -eq $false) { return $true } else { return $false} <# .SYNOPSIS Returns true if false .DESCRIPTION VD...") (current)
  • 18:57, 6 April 2019 (diff | hist) (+387) N Next(Created page with " function next($a) { if ($a.items.count -gt $a.selectedIndex + 1) { $a.selectedIndex = $a.selectedIndex + 1 return $a.selectedItems } else { re...") (current)
  • 18:55, 6 April 2019 (diff | hist) (+269) N Name(Created page with " function name($a) { return [io.path]::GetFileNameWithoutExtension($a) <# .SYNOPSIS Returns the file name without extension .DESCRIPTION VDS $n...") (current)
  • 18:55, 6 April 2019 (diff | hist) (+565) N Msgbox(Created page with " function msgbox($a,$b,$c,$d) { $msgbox = [System.Windows.Forms.MessageBox]::Show($a,$b,$c,$d) return $msgbox <# .SYNOPSIS Generates a messagebox according to...") (current)
  • 18:54, 6 April 2019 (diff | hist) (+1,109) N Mousepos(Created page with " function mousepos($a) { switch ($a) { x { return [System.Windows.Forms.Cursor]::Position.X | Out-String } y { return [Syst...") (current)
  • 18:53, 6 April 2019 (diff | hist) (+273) N Mousedown(Created page with " function mousedown { return [System.Windows.Forms.UserControl]::MouseButtons | Out-String <# .SYNOPSIS Returns the mousebutton that is pressed. .DESCRIPTION...") (current)
  • 18:52, 6 April 2019 (diff | hist) (+236) N Mod(Created page with " function mod($a,$b) { return $a % $b <# .SYNOPSIS Returns the modulo of dividend and divisor .DESCRIPTION VDS $mod = $(mod 60 30) .L...") (current)
  • 18:51, 6 April 2019 (diff | hist) (+445) N Match(Created page with " function match($a,$b,$c) { if ($c = $null){ $c = -1 } else { $c = $c } try{$return = $a.FindString($b,$c)} catch{$return = $a.Items.Inde...") (current)

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