 	
 	Gui, Submit, Nohide
 	
-	Msgbox, Release Finished!
+	Msgbox, Transfer Finished!
 return
 
+BulkTransfer:
+	Gui, Bulk:Add, ListBox, x20 y20 w240 h300 AltSubmit vTransferList 8, %amountList%
+	Gui, Bulk:Add, Button, x90 y320 w100 h30 gInitBulk, Bulk Transfer
+	Gui, Bulk:Show, h400 w280, Bulk Transfer
+	
+return
+
+InitBulk:
+	
+	MsgBox, 68, Bulk Transfer, This might take some time, would you like to continue?
+	IfMsgBox, No
+	{
+		return
+	}
+	
+	Gui, Submit, Nohide
+	
+	Decrement = 0
+
+	;debug MsgBox, %TransferList%
+	
+	transferListStorage := TransferList
+	
+	Loop, parse, TransferList, |
+	{
+		if A_LoopField = 1
+		{
+			Msgbox, You can't release your trainer! Skipping.
+			GoTo skipLoop
+		}
+	
+	
+		Random, rngsus, 100, 1000
+		
+		rngsusPassIn := 750 + rngsus
+	
+		sleep, %rngsusPassIn%
+	
+		
+		loopFieldStorage := A_LoopField
+		
+		uuidField := CSV_ReadCell("teamList", loopFieldStorage, 15)
+		
+		;debug MsgBox, %uuidField%
+		
+		FileDelete, %A_ScriptDir%\libs\py\pogoapi\doneRelease.txt
+		run, python "%A_ScriptDir%\libs\py\pogoapi\release.py" --uuid %uuidField%, %A_ScriptDir%\libs\py\pogoapi
+		
+		continue = 0
+		
+		While continue = 0
+		{
+			IfExist, %A_ScriptDir%\libs\py\pogoapi\doneRelease.txt
+			{
+				continue = 1
+			}
+		} 
+		
+		FileDelete, %A_ScriptDir%\libs\py\pogoapi\doneRelease.txt
+		
+		
+		
+		
+		Gui, Submit, Nohide
+		
+		skipLoop:
+		
+		
+	}
+	
+	Sort, transferListStorage, R N D|
+	
+	Loop, parse, transferListStorage, |
+	{
+		if A_LoopField = 1
+		{
+			GoTo skipLoop2
+		}
+		TF_RemoveLines("!output.csv", A_LoopField, A_LoopField)
+
+		CSV_Load("output.csv", "teamList", ",")
+		refreshCache()
+		
+		skipLoop2:
+		
+	
+	}
+	
+
+	Gui, Bulk:Destroy
+
+	GuiControl, Main:Choose, PokeList, |1
+	
+	DefaultDDL()
+
+	MsgBox, Done!
+
+return
 
 Close:
 	FileDelete, %A_ScriptDir%\libs\py\pogoapi\info.txt

		GuiControl, , HealthBar, %val21%
}

refreshCache()
{
	

Gui, Add, Text, x32 y219 w100 h20 +Center vWeight, Weight (KG):
Gui, Add, Text, x32 y249 w100 h20 +Center vHeight, Height (M):
Gui, Add, Button, x585 y279 w100 h30 gClose, Close
Gui, Add, Button, x465 y279 w100 h30 gTransfer, Transfer
Gui, Add, Button, x345 y279 w100 h30 gBulkTransfer, Bulk Transfer
Gui, Add, Text, x162 y124 w70 h20 vIV, IV's:
Gui, Add, Text, x162 y144 w150 h20 vAIV, Attack: 
Gui, Add, Text, x162 y164 w150 h20 vDIV, Defense: 
Gui, Add, Text, x162 y184 w150 h20 vHIV, HP: 
Gui, Add, Text, x162 y204 w150 h20 vPIV, Perfection: 
Gui, Add, Picture, x340 y127 w16 h16 , %A_ScriptDir%\res\img\pokeball.png
Gui, Add, Text, x360 y129 w230 h20 vPokeball, Pokeball Used: Standard
Gui, Add, Text, x360 y159 w230 h20 vFWeight, Full Weight (KG): 
