it's a GUI with Editbox&DropDown list&Listbox$Listview
once i put some variables in editbox, it stored them all and calculate some stuff,
for example, if Dropdown list item's SelectResult := HONGZ, while i click/select the result, then open the latest file from the path F:\1\1\1\, then ;blablabla do something, after the HONGZ finished, i want to go back to the GUI and do something else, such as click on Dropdown list and select other items then do something...
but i can't make the script return or break the loop, to load the true path, it stucked in loading the 1st or the 2nd loaded path... someone please point out my mistake, thanks!
Code: Select all
#Persistent
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, 0
SetTitleMatchMode, 2
DetectHiddenWindows, On
SendMode Input
#SingleInstance Force Ignore Off
Menu, Tray, Icon, D:\icons\imageres_106.ico, 1, 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;blablabla (some Editbox&DropDown list&Listbox$Listviews)
Gui, Add, Edit, x85 y0 w211 vDDL gDDL
;blablabla
SelectResult:
Gui, Submit, NoHide
;blablabla
IfInString, DDL, HONGZ
{
MsgBox, HONGZ
Loop F:\1\1\1\*.*
{
If ( A_LoopFileTimeModified >= Time )
{
Time := A_LoopFileTimeModified
File := A_LoopFileLongPath
Filename := A_LoopFileName
}
}
MsgBox % File
;blablabla
}
else
IfInString, DDL, GG
{
MsgBox, GG
Loop F:\2\1\1\*.*
{
If ( A_LoopFileTimeModified >= Time )
{
Time := A_LoopFileTimeModified
File := A_LoopFileLongPath
Filename := A_LoopFileName
}
}
MsgBox % File
;blablabla
}
else
IfInString, DDL, RIGHT
{
MsgBox, RIGHT
Loop F:\3\1\1\*.*
{
If ( A_LoopFileTimeModified >= Time )
{
Time := A_LoopFileTimeModified
File := A_LoopFileLongPath
Filename := A_LoopFileName
}
}
MsgBox % File
;blablabla
}
}
return