u probably right. like always the complete stuff is here: https://github.com/sl5net/global-Intell ... htly-Build ( i will update it now)FanaticGuru wrote:Without seeing the callFunction it is hard to say but I imagine that is exactly what is happening. Whether it is a function in the script or a function in a COM object, the thread of execution is not going to proceed beyond the function call until the thread returns from the function.SL5 wrote:script hangs at y.callFunction .
I seems its waiting for return value. surprized
FG
Code: Select all
class Stuff{
static abc := 1
callFunction( name, p* ) { ;allows you to call any function in this script
abc := func( name )
%abc%( p* )
return true
}
}
;<<<<<<<< Receive_wordlistAddress <<<< 180226200244 <<<<
Receive_wordlistAddress(CopyOfData){ ; keywords to find: y.start y.run y.func y.callFunction ReceiveWordlistAddress
lll(A_LineNumber, A_LineFile, "lin1 at Receive_wordlistAddress(CopyOfData= '" . CopyOfData . "' )")
; feedbackMsgBox("Receive_wordlistAddress(CopyOfData)",CopyOfData . "`n" . A_ScriptName . "(inc)~" . A_LineNumber)
if(InStr(CopyOfData,"\_globalWordLists\_global.txt") || InStr(CopyOfData,"\_globalWordListsGenerated\_global.txt")){ ; thats to simple. not load this wordlist 17.02.2018 23:45 18-02-17_23-45
;tooltip,thats to simple. not load this wordlist 17.02.2018 23:45 18-02-17_23-45 `n '%wordlist%' = wordlist `n wordlistOLD='%wordlistOLD%' `n ( %A_ScriptName%(inc)~%A_LineNumber% ) `n
lll(A_LineNumber, A_LineFile, "Receive_wordlistAddress(CopyOfData= '" . CopyOfData . "' ) ==> thats to simple ==> return")
MainLoop()
return true
}
msg:="wordlistOLD <??> CopyOfData ## " . wordlistOLD . " <??> " . CopyOfData . "`n" . A_ScriptName . "(inc)~" . A_LineNumber
;feedbackMsgBox(msg)
lll(A_LineNumber, A_LineFile, msg)
if( 1 && CopyOfData && wordlistOLD <> CopyOfData){
lll(A_LineNumber, A_LineFile, "in Receive_wordlistAddress at wordlistOLD <> CopyOfData")
msg:="wordlistOLD <> CopyOfData ## " . wordlistOLD . " <??> " . CopyOfData . "`n" . A_ScriptName . "(inc)~" . A_LineNumber
; feedbackMsgBox(msg)
; lll(A_LineNumber, A_LineFile, msg)
CloseListBox()
SuspendOn()
;
;feedbackMsgBox("wordlistOLD <> wordlist",wordlistOLD . " <> " . wordlist . "`n" . A_ScriptName . "(inc)~" . A_LineNumber)
tooltip,LOAD NEW '%CopyOfData%' = wordlist `n wordlistOLD='%wordlistOLD%' `n ( %A_ScriptName%(inc)~%A_LineNumber% ) `n
;setGlobalWordlist(wordlistActive)
;InitializeListBox()
;BlockInput, Send ; Send: The user's keyboard and mouse input is ignored while a Send or SendRaw is in progress
InitializeHotKeys()
DisableKeyboardHotKeys()
SetBatchLines, -1 ;Change the Running performance speed (Priority changed to High in GetIncludedActiveWindow)
;feedbackMsgBox("ReadWordList_AND_setLength()",wordlist . "`n" . activeTitle . " = activeTitle `n " . A_ScriptName . "(inc)~" . A_LineNumber)
Gosub, setWordlistFileUpdatedTime ; 29.04.2017 14:03
;prefs_Length := setLength(ParseWordsCount, maxLinesOfCode4length1)
wordlist := CopyOfData
wordlistOLD:=wordlist
RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\sl5net, wordlist, %wordlist%
;<<<<<<<< wordlistOLD <<<< 180217214329 <<<< 17.02.2018 21:43:29 <<<<
; reload ; quick and dirty 17.02.2018 21:30 18-02-17_21-30 <=== todo:
;>>>>>>>> wordlistOLD >>>> 180217214336 >>>> 17.02.2018 21:43:36 >>>>
; SuspendOn() ; maybe it helps. dont know 17.02.2018 18:285
;msg:="wordlistOLD <> CopyOfData ## " . wordlistOLD . " <??> " . CopyOfData . "`n" . A_ScriptName . "(inc)~" . A_LineNumber
lll(A_LineNumber, A_LineFile, "next: ReadWordList_AND_setLength")
ReadWordList_AND_setLength()
lll(A_LineNumber, A_LineFile, "last: ReadWordList_AND_setLength")
prefs_Length := setLength(ParseWordsCount, maxLinesOfCode4length1)
lll(A_LineNumber, A_LineFile, "prefs_Length = " . prefs_Length)
;Gosub , headerPosition
RebuildMatchList()
SuspendOff() ; maybe it helps. dont know 17.02.2018 18:28
;MainLoop()
}
; MainLoop()
; goto, MainLoopLabel
;
;
;InitializeListBox()
;BlockInput, Send ; Send: The user's keyboard and mouse input is ignored while a Send or SendRaw is in progress
;InitializeHotKeys()
;DisableKeyboardHotKeys()
;SetBatchLines, -1 ;Change the Running performance speed (Priority changed to High in GetIncludedActiveWindow)
;ReadWordList_AND_setLength()
MainLoop()
return true ; Returning 1 (true) is the traditional way to acknowledge this message.
}
;
;<<<<<<<< MainLoop <<<< 180208192114 <<<< 08.02.2018 19:21:14 <<<<
;<<<<<<<< MainLoop <<<< 180208192114 <<<< 08.02.2018 19:21:14 <<<<
;<<<<<<<< MainLoop <<<< 180208192114 <<<< 08.02.2018 19:21:14 <<<<
;<<<<<<<< MainLoop <<<< 180208192114 <<<< 08.02.2018 19:21:14 <<<<
;<<<<<<<< MainLoop <<<< 180208192114 <<<< 08.02.2018 19:21:14 <<<<
MainLoop(){
lll(A_LineNumber, A_LineFile, "lin1 at MainLoop")
global g_TerminatingEndKeys
Loop
{
;If the active window has changed, wait for a new one
IF !( ReturnWinActive() )
{
Critical, Off
GetIncludedActiveWindow()
} else {
Critical, Off
}
;Get one key at a time
Input, InputChar, L1 V I, {BS}%g_TerminatingEndKeys%
Critical
EndKey := ErrorLevel
ProcessKey(InputChar,EndKey)
} ; EndOf: Loop
}
;>>>>>>>> MainLoop >>>> 180228203405 >>>> 28.02.2018 20:34:05 >>>>
;>>>>>>>> MainLoop >>>> 180228203405 >>>> 28.02.2018 20:34:05 >>>>
;>>>>>>>> MainLoop >>>> 180228203405 >>>> 28.02.2018 20:34:05 >>>>
;>>>>>>>> MainLoop >>>> 180228203405 >>>> 28.02.2018 20:34:05 >>>>
;>>>>>>>> MainLoop >>>> 180228203405 >>>> 28.02.2018 20:34:05 >>>>