Jump to content

Recommended Posts

Posted

Here is the code I'm rewriting:

Local $ie

$ie = _IEATTACH("Road work home")

if @error > 0 Then

      $ie =  _IECreate("https://Road/Worker1")

      Sleep(6000)

      If @error = 6 Then

          MsgBox(16, "testing", "unable to access site")

          Exit

     EndIf

EndIf

if StringInStr(_IEPropertyGet($ie), "title"), "Road Work Home") then

   WinSetState("Road Work Home", "" , @SW_MINIMIZE)

   Return True

Else

      Do 

          If StringInStr(_IEPropertyGet($ie, "titlte"), "Road Login") then

             WinSetState("Road Login", "", @SW_MAXIMIZE)

            $continue = MsgBox(36, "test","cannt continue")

            If $continue = 7 or $continue = -1 Then

               _IEQUIT($ie)

               Exit

            ElseIf $continue = 6 Then

                  While(1)

                        $idle_time = _Timer_GetIdleTime()

                        If StringInStr(_IEPropertyGet($ie, "title"), "Road Work Home") Then

                             WinSetState("Road Work Home", "", @Sw_MINIMIZE)

                             Return True

                       ElseIf $idle_Time < 30000 Then

                             Slepp(1000)

                        Else  ExitLoop

                        EndIf

               WEnd

         EndIf

    Else

    EndIf

   Until Not StringInStr(_IEPropertyGet($ie, "title"), "Road Login")

 

any assistance would be greatly appreciated I'm new to AutoIt scripting and I think it could really be useful.

      

  • Developers
Posted

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Here is the code I'm rewriting:

Local $ie

$ie = _IEATTACH("Road work home")

if @error > 0 Then

      $ie =  _IECreate("https://Road/Worker1")

      Sleep(6000)

      If @error = 6 Then

          MsgBox(16, "testing", "unable to access site")

          Exit

     EndIf

EndIf

if StringInStr(_IEPropertyGet($ie), "title"), "Road Work Home") then

   WinSetState("Road Work Home", "" , @SW_MINIMIZE)

   Return True

Else

      Do 

          If StringInStr(_IEPropertyGet($ie, "titlte"), "Road Login") then

             WinSetState("Road Login", "", @SW_MAXIMIZE)

            $continue = MsgBox(36, "test","cannt continue")

            If $continue = 7 or $continue = -1 Then

               _IEQUIT($ie)

               Exit

            ElseIf $continue = 6 Then

                  While(1)

                        $idle_time = _Timer_GetIdleTime()

                        If StringInStr(_IEPropertyGet($ie, "title"), "Road Work Home") Then

                             WinSetState("Road Work Home", "", @Sw_MINIMIZE)

                             Return True

                       ElseIf $idle_Time < 30000 Then

                             Slepp(1000)

                        Else  ExitLoop

                        EndIf

               WEnd

         EndIf

    Else

    EndIf

   Until Not StringInStr(_IEPropertyGet($ie, "title"), "Road Login")

 

any assistance would be greatly appreciated I'm new to AutoIt scripting and I think it could really be useful.

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
  • Recently Browsing   0 members

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