I want to ask about this :
I want it runs from 1 to 100 and It opens 10 firefox profiles then access youtube. After I close a firefox window, the loop runs and wait for another window close until loop ends
I have a loop like this.
Func launch() Local $from = Int(GUICtrlRead($input1)) Local $to = Int(GUICtrlRead($input2)) If $to <> "" Then While $from <= $to Local $profile = $to _RunDos("start firefox.exe -p " & $profile & " -no-remote youtube.com") $to=$to+1 WEnd Else Local $profile = $to _RunDos("start firefox.exe -p " & $profile & " -no-remote youtube.com") EndIf EndFunc Is there any solution?
I was wondering if there was a library or something which provides the capability to Send() to inactive windows, and I know what you're thinking, I could just use ControlSend(); the reason I can't use that in this situation is because I need to hold down keys for specific prolonged periods of time. Also activating the window, Send()ing then de-activating the window isn't really an option here, I need the target window to always be in the background. I've looked around the forums for an adequate amount of time and didn't find anything useful, perhaps because the threads were all 10 years old, nevertheless, if anyone has any suggestions they would be greatly appreciated.
I am capturing data from a web page as soon as it opens. The problem is I am running a dual screen setup and the script don't capture the data when the window is opened up in the non default monitor. On the default monitor it works fine.
Func Monitor() Local $hTimer = TimerInit() Do $fDiff = TimerDiff($hTimer) Until WinActive("ActivityDetail - Internet Explorer") Or $fDiff >= 5000 ; Only sees window on default monitor. If WinActive("ActivityDetail - Internet Explorer") Then ; Only sees window on default monitor. Local $hWnd = WinGetHandle("ActivityDetail - Internet Explorer", "") Local $oIE = _IEAttach($hWnd, "hwnd") If @error Then $oIE.Quit() Else Local $oForm = _IEGetObjByName($oIE, "lblHeaderActRefValue") Local $Ref = _IEPropertyGet($oForm, "innertext") Local $oForm = _IEGetObjByName($oIE, "lblCompileDate") Local $Compile = _IEPropertyGet($oForm, "innertext") Local $oForm = _IEGetObjByName($oIE, "Table2") Local $Description = _IEPropertyGet($oForm, "innertext") $Description = StringTrimLeft($Description, 49) Local $iLength = StringLen($Description) Local $iPosition = StringInStr($Description, "Network Tag") Local $sString = StringTrimRight($Description, ($iLength - ($iPosition - 1))) Local $sString1 = StringStripWS($sString, $STR_STRIPLEADING + $STR_STRIPTRAILING + $STR_STRIPSPACES) Local $sString = $sString1 Local $oForm = _IEGetObjByName($oIE, "lblDisruption") Local $Disruption = _IEPropertyGet($oForm, "innertext") If $flag <> $Ref And $Ref <> 0 and $Compile <> 0 Then $ICount = _GUICtrlListView_GetItemCount($ListView1) _GUICtrlListView_AddItem($ListView1, $Compile, $ICount) _GUICtrlListView_AddSubItem($ListView1, $ICount, $Ref, 1) _GUICtrlListView_AddSubItem($ListView1, $ICount, $Disruption, 2) _GUICtrlListView_AddSubItem($ListView1, $ICount, $sString, 3) _FileWriteLog(@ScriptDir & "\" & @YEAR & @MON & ".txt", $Ref & " " & $Disruption & " " & $sString & @CRLF) $flag = $Ref EndIf EndIf EndIf EndFunc ;==>Monitor
A UDF with Extended Functions for Window Management
Fixes WinGetClassList's barbaric returning of a @LF separated string instead of an array.
Automating applications that change their controls' handles/classes on each launch (e.g. half of Cisco's programs)
10/04/2016 (v0.4): _WinGetClassNNList Fixed : Not Returning an Index when using $2D_ARRAY _WinGetClassNNList Fixed : Not Properly returning $aArray[x] on Classes with instances > 9 when using $2D_ARRAY 10/03/2016 (v0.3): _WinGetClassList Added : Exactly the same as WinGetClassList but returns a more civilized Array _WinGetClassNNList Added : Returns Classes and their instances in either a 1D or 2D array depending on Flags _WindowGetHandleList Renamed: _WinGetHandleList SCRIPT BREAKING! _WindowGetHandleListFromPos Renamed: _WinGetHandleListFromPos SCRIPT BREAKING! 10/01/2016 (v0.2): WindowsExConstants.au3 Added : Flags in _WindowGetHandleListFromPos _WindowGetHandleListFromPos Removed: ConsoleWrite left in during debug _WindowGetHandleListFromPos Added : Flag for if part of a Control is at $X, $Y return it as well. 10/01/2016 (v0.1): _WindowGetHandleList Added : Retrieves the handles of classes from a window. _WindowGetHandleListFromPos Added : Retrieves the handles of classes at a specific position from a window. Known and Reported Bugs:
None reported To Do:
To Be Decided. Opinions welcome! Upcoming Changes:
To Be Decided.