-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDLPAutoAufPos.PS1
47 lines (43 loc) · 1.14 KB
/
DLPAutoAufPos.PS1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# DLPAutoAufPos.PS1
Function New-AufPos {
[CmdletBinding()]
Param(
[String]$BelBebNr='10',
[String]$Menge='1',
[String]$Techniker='1'
)
If (Select-App -App "Delapro") {
Send-Key -Keys ' {LEFT}'
Start-Sleep -Milliseconds 200
Send-Key -Keys "$BelBebNr{PGDN}{RIGHT}"
Start-Sleep -Milliseconds 200
Send-Key -Keys "$Menge"
Start-Sleep -Milliseconds 200
Send-Key -Keys "{ENTER}"
Start-Sleep -Milliseconds 200
Send-Key -Keys "$Techniker{PGDN}"
Start-Sleep -Milliseconds 200
Send-Key -Keys "{DOWN}"
Start-Sleep -Milliseconds 200
}
}
Function Exit-AufPos {
[CmdletBinding()]
Param(
[Switch]$Save,
[Switch]$RemoveBlankRow
)
If (Select-App -App "Delapro") {
If ($Save) {
If ($RemoveBlankRow) {
Send-Key -Keys "{UP}"
Start-Sleep -Milliseconds 200
}
Send-Key -Keys "{F10}"
Start-Sleep -Milliseconds 500
} else {
Send-Key -Keys "{ESC}"
Start-Sleep -Milliseconds 200
}
}
}