GUI return/break/reload to continue after execution

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
ivill
Posts: 124
Joined: 13 May 2016, 02:23

GUI return/break/reload to continue after execution

22 Sep 2017, 08:43

Hi all, it's me ahk newbie again... again with basic query, sorry i'm keep trying all the time, but with this, i spend days to figure it out, still don't get it...

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
User avatar
ivill
Posts: 124
Joined: 13 May 2016, 02:23

Re: GUI re Z'turn/break/reload to continue after execution

22 Sep 2017, 17:16

did i make myself clear?

Edit: i found an alternative way, it also works for me, just simply add in a "Reload"...

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, Bing [Bot], fiaztv1, Pianist and 185 guests