bduke77 Posted May 9, 2023 Posted May 9, 2023 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 Jos Posted May 9, 2023 Developers Posted May 9, 2023 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.
Danp2 Posted May 9, 2023 Posted May 9, 2023 See this page in the wiki for @mLipok's work on translating IE UDF to WebDriver. There is also this recent thread where we discussed using Edge in compatibility mode. Lastly, wd_demo was recently updated to support Edge in IE mode. Latest Webdriver UDF Release Webdriver Wiki FAQs
bduke77 Posted May 9, 2023 Author Posted May 9, 2023 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.
argumentum Posted May 9, 2023 Posted May 9, 2023 52 minutes ago, bduke77 said: $ie = _IECreate("https://Road/Worker1") You should use these boxes to post your code. And, I could not load that web site. Bummer =P Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted May 9, 2023 Posted May 9, 2023 alright !, you're posting everywhere. ( https://www.autoitscript.com/forum/topic/210202-updating-autoit-script-from-ie-to-use-edge-compatibility-mode-and-using-web-driver-udf/ ) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Developers Jos Posted May 10, 2023 Developers Posted May 10, 2023 10 hours ago, bduke77 said: Thanks. Merged cross posted topic which was again in the wrong place. Please stick to this one. 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now