mazef Posted September 10, 2022 Share Posted September 10, 2022 The task of the code is to open multiple game windows through Steam. The code is responsible for opening only one window, but it is repeated many times in the script. The problem is that after 20+- Here is the area of code that copies and pastes the text. expandcollapse popupWinActivate("Steam Desktop Authenticator") WinWaitActive("Steam Desktop Authenticator") Sleep (300) WinMove("Steam Desktop Authenticator", "", 1408, 296) ControlClick("Steam Desktop Authenticator", "", "[Class:WindowsForms10.LISTBOX.app.0.afceb_r7_ad1; INSTANCE:1]") Sleep (300) Send("{end}") $sda = ControlGetText ("Steam Desktop Authenticator", "", "[Class:WindowsForms10.Window.8.app.0.afceb_r7_ad1; INSTANCE:2]") Send("{home}") $a = ControlGetText ("Steam Desktop Authenticator", "", "[Class:WindowsForms10.Window.8.app.0.afceb_r7_ad1; INSTANCE:2]") $b = 0 $c = "Account: mfcsfarm01m" if $a = $c Then $b = 1 EndIf While $b <>1 Send("{down 1}") $a = ControlGetText ("Steam Desktop Authenticator", "", "[Class:WindowsForms10.Window.8.app.0.afceb_r7_ad1; INSTANCE:2]") if $a = $c Then $b = 1 EndIf if $b <> 1 and $a = $sda then MsgBox (0, "error", "Account not found" ) Exit EndIf WEnd $d = ControlGetText("Steam Desktop Authenticator", "", "[Class:WindowsForms10.EDIT.app.0.afceb_r7_ad1; INSTANCE:2]") ClipPut($d) WinSetState("Steam Desktop Authenticator", "", @SW_MINIMIZE) WinActivate("Steam Guard") WinWaitActive("Steam Guard") SendKeepActive("Steam Guard") Sleep (100) Send('+{INS}') Sleep (100) Send("{enter}") SendKeepActive("") Link to comment Share on other sites More sharing options...
mazef Posted September 10, 2022 Author Share Posted September 10, 2022 I'm sorry. The translator simply does not allow you to send a message normally. I turned it off. That's what I wanted to write. The task of the code is to open multiple game windows through Steam. The code is responsible for opening only one window, but it is repeated many times in the script. The problem is that after 20+- the script does not insert the previously copied text and pauses. Here is the code area that copies and pastes the text. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 10, 2022 Developers Share Posted September 10, 2022 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The 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. Link to comment Share on other sites More sharing options...
Recommended Posts