Jump to content

firefox loses focus


Recommended Posts

When I run a script on firefox it suddenly loses it focus.

I have checked my codes and there are no problems,

The moment when it loses it focus happens at random moments,

does somebody know a code that will focus it back on the firefox window so i can paste it after every part of the scripts

 

Link to comment
Share on other sites

give us and example of your script that 'has no problems'

This is the function where its all about:

Case $star

Call ("save")
_FFStart( "https://www.google.nl" )
WinSetState ( "Google - Mozilla Firefox", "",  @SW_MINIMIZE )

Call ("save")









Local $i = _GUICtrlListBox_GetCount($list1)

$i2 = $i/14



GUICtrlSetData($Input4,$i)



    For $idx=1 To $i2

Call ("logintest")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")
call ("test")


 If GUICtrlRead($listcounter2) < 14 Then
                GUICtrlSetData($listcounter2, GUICtrlRead($listcounter2) + 1)
            ElseIf GUICtrlRead($listcounter2) = 14 Then
                GUICtrlSetData($listcounter2, 0)
            EndIf
_FFOpenURL ("tweepi.com/auth/logout")

$i4= GUICtrlRead($listcounter2)

If $i4 = 60 Then
    Sleep(1800000)
 ElseIf $i4 = 60 Then
             $i4 =   Number($i4) - 60
            EndIf




Next

The  "logintest" function:

Func logintest()



_FFOpenURL("http://tweepi.com/auth/login")
_FFLoadWait()
$email1 = GUICtrlRead($Input23)
$plus = ("+")

$number = GUICtrlRead($listcounter3)
$number2 = 5+ Number($number)
$hotmail = ("@hotmail.com")
_FFLoadWait()
Sleep(1000)

_FFXPath("//form//input[@id='signin_username']")
_FFCmd("FFau3.xpath.value='" & $email1 & $plus & $number2 &  $hotmail &"'")

_FFXPath("//form//input[@id='signin_password']")
_FFCmd("FFau3.xpath.value='mypass'")
Sleep(500)
_FFFormSubmit()

EndFunc

the "test" function

func test()

    ProcessClose("iexplore.exe")
    ProcessClose("iexplore.exe")
    ProcessClose("iexplore.exe")
Sleep(500)

_FFOpenURL("http://tweepi.com/account/switch_primary")

_FFLoadWait()
Sleep(500)
$i = GUICtrlRead ($listcounter2)

_FFFormRadioButton("account", Number($i),"name","switch_primary_form", "id")
_FFFormSubmit()



_FFOpenURL("http://tweepi.com/tools/recip#0")
_FFLoadWait()
Sleep(2000)
_FFOpenURL("http://tweepi.com/tools/recip#0")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#40")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#80")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#120")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#160")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)

_FFOpenURL("http://tweepi.com/tools/flush#0")
_FFLoadWait()


Sleep(500)


_FFOpenURL("http://tweepi.com/tools/flush#0")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)

_FFOpenURL("http://tweepi.com/tools/recip#0")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#40")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#80")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#120")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFLoadWait()
_FFOpenURL("http://tweepi.com/tools/recip#160")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)

_FFOpenURL("http://tweepi.com/tools/flush#0")
_FFLoadWait()


Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#20")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#40")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#60")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#80")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#100")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#120")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#140")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#160")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#180")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#200")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#220")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#240")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#260")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#280")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/flush#300")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#320")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#340")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#360")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#380")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#400")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#420")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#420")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/flush#440")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#460")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#480")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#500")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#520")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#540")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#580")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#600")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/flush#620")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#640")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#660")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#680")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#700")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#720")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#740")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#760")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/flush#780")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#800")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#820")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#840")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#860")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#880")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#900")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#920")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/flush#940")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
Sleep(500)
_FFOpenURL("http://tweepi.com/tools/flush#960")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)


Sleep(700)
_FFLoadWait()
$oButton = _FFXPath("//a[@href='/follow_by_followers']")
_FFClick($oButton)

_FFLoadWait()
$followbacklist = GUICtrlRead($List4)
_FFLoadWait()
Sleep(500)
_FFXPath("//form//input[@id='username']")
_FFCmd("FFau3.xpath.value='" & $followbacklist & "'")
_FFLoadWait()
Sleep(1000)
_FFFormSubmit()
_FFLoadWait()
Sleep(500)
$oButton1 = _FFXPath("//div [@border='http://tweepi.com/js/tweepigxt/clear.cache.gif']")
_FFClick($oButton1)



_FFOpenURL("http://tweepi.com/tools/follow_by_followers#0")
_FFLoadWait()

Sleep(500)

_FFLoadWait()
$oButton2 = _FFXPath("//input [@id='button888']")
_FFClick($oButton2)
_FFLoadWait()
$oButton2 = _FFXPath("//input [@id='button888']")
_FFClick($oButton2)
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#20")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#40")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#60")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#80")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#100")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#120")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#140")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#160")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#180")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#200")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#220")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#240")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#260")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#280")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#300")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#320")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#340")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#360")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#380")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#400")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#420")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#440")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#460")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#480")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)

_FFOpenURL("http://tweepi.com/tools/follow_by_followers#500")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#520")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#540")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#560")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#580")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#600")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#620")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#640")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#660")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#680")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#700")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#720")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#740")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)

_FFOpenURL("http://tweepi.com/tools/follow_by_followers#760")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#780")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#800")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#820")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#840")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#860")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#880")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)
_FFOpenURL("http://tweepi.com/tools/follow_by_followers#900")
_FFLoadWait()
$oButton2 = _FFXPath("//input [@type='button']")
_FFClick($oButton2)



            $iIndex += 1
            If $iIndex = _GUICtrlListBox_GetCount($List1) Then $iIndex = 0
            _GUICtrlListBox_SetCurSel($List1, $iIndex)

            If $iIndex = _GUICtrlListBox_GetCount($List2) Then $iIndex = 0
            _GUICtrlListBox_SetCurSel($List2, $iIndex)

                        If $iIndex = _GUICtrlListBox_GetCount($List3) Then $iIndex = 0
            _GUICtrlListBox_SetCurSel($List3, $iIndex)

                        If $iIndex = _GUICtrlListBox_GetCount($List4) Then $iIndex = 0
            _GUICtrlListBox_SetCurSel($List4, $iIndex)

            If $iIndex = _GUICtrlListBox_GetCount($List5) Then $iIndex = 0
            _GUICtrlListBox_SetCurSel($List5, $iIndex)

If $iIndex = _GUICtrlListBox_GetCount($List9) Then $iIndex = 0
            _GUICtrlListBox_SetCurSel($List9, $iIndex)


GUICtrlSetData($listcounter,$iIndex)



  If GUICtrlRead($listcounter2) < 14 Then
                GUICtrlSetData($listcounter2, GUICtrlRead($listcounter2) + 1)
            ElseIf GUICtrlRead($listcounter2) = 14 Then
                GUICtrlSetData($listcounter2, 0)
                GUICtrlSetData($listcounter3, GUICtrlRead($listcounter3) + 1)
            EndIf

Sleep(1500)
            EndFunc

it  loses focus on random moments and functions, please help me

Link to comment
Share on other sites

Why do you use Call() ???

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

No but it's just slowing down your code uselessly and opening doors to typing errors only detected at runtime.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

so do you maybe know a solution for this problem, some code that focuses on a window, I thought of a function like: "get handle" but i dont know if that is the right one, and how i can use it on a firefox window ( that chance for pages and websites all the time)

Link to comment
Share on other sites

Like WinActivate and WinWaitActive...?

Though I seem to have read once it is not 100% dependable.

Personally, I'd also use a small Sleep(ms) after it, so the window is "totally there" before you paste stuff in there (though you would expect that's the whole point of WinWaitActive, in reality maybe it can use this help, depending on the situation).

Edited by Guy_
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...