Skip to content

Commit

Permalink
fixed glitch in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmanto committed Jul 23, 2021
1 parent 31e1296 commit 4943698
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions bangwallpaper42.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ Dim WshShell

Set WshShell = CreateObject("WScript.Shell")

<<<<<<< HEAD
WshShell.Run "powershell.exe -nologo -NoProfile -ExecutionPolicy Bypass -command .\rotanconv36.ps1", 0, false
=======
WshShell.Run "powershell.exe -nologo -NoProfile -ExecutionPolicy Bypass -command .\rotanconv35.ps1", 0, false
>>>>>>> a9ab5839e7ebc1400bdf81aafaa63ca57cb5d7ab

set WshShell = nothing
WScript.Quit
7 changes: 0 additions & 7 deletions inst_routine.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ File guisttngs.ps1
File HELP.hta
File parrot.ico
File README.txt
<<<<<<< HEAD
File rotanconv36.ps1
=======
File rotanconv34.ps1
>>>>>>> a9ab5839e7ebc1400bdf81aafaa63ca57cb5d7ab
File settings.vbs

CreateShortcut "$SMSTARTUP\Bang Wallpaper Plus.lnk" $INSTDIR\bangwallpaper42.vbs "" $INSTDIR\parrot.ico 0
Expand Down Expand Up @@ -121,10 +117,7 @@ Section "Uninstall"
Delete $INSTDIR\parrot.ico
Delete $INSTDIR\pwd.txt
Delete $INSTDIR\README.txt
<<<<<<< HEAD
Delete $INSTDIR\rotanconv35.ps1
=======
>>>>>>> a9ab5839e7ebc1400bdf81aafaa63ca57cb5d7ab
Delete $INSTDIR\rotanconv34.ps1
Delete $INSTDIR\rotanconv33.ps1
Delete $INSTDIR\rotanconv32.ps1
Expand Down
13 changes: 0 additions & 13 deletions rotanconv36.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,11 @@ function loadandset {
if(!$ipaddress) {
$ipaddress = (Get-CimInstance Win32_NetworkAdapterConfiguration | ? { $_.IPAddress -ne $null })[0].ipaddress 4> $null
}
<<<<<<< HEAD:rotanconv36.ps1
=======

>>>>>>> a9ab5839e7ebc1400bdf81aafaa63ca57cb5d7ab:rotanconv35.ps1
if(-not ($ipaddress.GetType().IsArray)) {
$addresses=[Object[]]::new(1)
$addresses[0]=$ipaddress
$ipaddress = $addresses
}
<<<<<<< HEAD:rotanconv36.ps1
=======

>>>>>>> a9ab5839e7ebc1400bdf81aafaa63ca57cb5d7ab:rotanconv35.ps1
$ipaddress=$ipaddress | sort-object
$username = $env:USERNAME

Expand Down Expand Up @@ -446,15 +438,10 @@ function loadandset {
# draw strings
$Brush = new-Object Drawing.SolidBrush ([System.Drawing.Color]::FromArgb(255, 255, 255, 255))
$Image.DrawString($hostname, $Font, $Brush, $voffset, $hoffset, $sFormatNew)
<<<<<<< HEAD:rotanconv36.ps1
$i=0
foreach($addr in $ipaddress) {
$Image.DrawString($addr, $Font, $Brush, $ivoffset[$i], $hoffset, $sFormatNew)
$i = $i + 1
=======
for($i=0; $i -lt $ipaddress.count;$i++) {
$Image.DrawString($ipaddress[$i], $Font, $Brush, $ivoffset[$i], $hoffset, $sFormatNew)
>>>>>>> a9ab5839e7ebc1400bdf81aafaa63ca57cb5d7ab:rotanconv35.ps1
}
$Image.DrawString($username, $Font, $Brush, $uvoffset, $hoffset, $sFormatNew)
$bmpFile.rotateflip("Rotate270FlipNone")
Expand Down

0 comments on commit 4943698

Please sign in to comment.