c7aesa7r Posted May 27, 2017 Share Posted May 27, 2017 Quote $key = "{ENTER}" ;get a list if window handles that match the text $winList = WinList("") ;run until killed/paused in the notification area While 1 ;loop through the windows For $i = 0 to $winList[0][0] $title = $winList[$i][0] $handle = $winList[$i][1] $controlid = "" $text = "" ControlSend($handle,$text,$controlid,$key) Next WEnd Can someone help me finish editing this script, i only need remove the loop, i need it run just one time :'((( Link to comment Share on other sites More sharing options...
c7aesa7r Posted May 27, 2017 Author Share Posted May 27, 2017 Or just close the script after run 1x Link to comment Share on other sites More sharing options...
c7aesa7r Posted May 27, 2017 Author Share Posted May 27, 2017 I cannot edit my posts why? Quote $key = "{ENTER}" $winList = WinList("PXG Client") $title = $winList $handle = $winList $controlid = "" $text = "" ControlSend($handle,$text,$controlid,$key) I tried this way but the script even dont open Link to comment Share on other sites More sharing options...
Xandy Posted May 27, 2017 Share Posted May 27, 2017 (edited) I'm sorry you're experiencing problems. You will be able to edit posts after you have created more posts. You need a post count of 5 for example but it may be greater than 5. To run the nested For loop one time and then end script; remove the While 1 and the WEnd lines from the original script in post 1. Edited May 27, 2017 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
c7aesa7r Posted May 28, 2017 Author Share Posted May 28, 2017 Thankyou it worked, and how i do to close the script after run one time? Also is possible send ENTER 2x? I tried $key = "{ENTER}" ,"{ENTER"} dont worked Link to comment Share on other sites More sharing options...
Xandy Posted May 28, 2017 Share Posted May 28, 2017 Have a look at: https://www.autoitscript.com/autoit3/docs/functions/Send.htm Use the Exit command to terminate the program. c7aesa7r 1 Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
c7aesa7r Posted May 28, 2017 Author Share Posted May 28, 2017 Thankyou again, i read the link and got it working, one more doubt. I have a window tha have [ ] in her title, and when i try declare $winlist = Winlist("[Proxifier]") How i declare a window with [] in title? Link to comment Share on other sites More sharing options...
232showtime Posted May 28, 2017 Share Posted May 28, 2017 (edited) see Array here Edited May 28, 2017 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
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