earthwarder Posted July 8, 2015 Share Posted July 8, 2015 Heres the code:Run("C:\Program Files (x86)\nost begins\WoW.exe") WinWait("World of Warcraft") WinActivate("World of Warcraft") Send("USERNAME") Send("{Tab}") Send("PASSWORD") Send("{ENTER}") Sleep(10000) Send("{ENTER}") Sleep(18000) Send("{HOME}") Sleep(120000) WinClose("World of Warcraft")What this does is open world of warcraft, type in acc / pw, logs in, and logs into my character, and starts my recording software with the home hotkey. Then closes it after 2 minutes (just for testing purposes. will be increased to 2 hours later / 7200000) What I want this to do instead is get the PID from the wow.exe when its ran by the script and wait for that specific PID window to activate, rather than waiting for any world of warcraft window, then I could later close that specific PID with winclose at end of this script. The reason I need PID specifics is because I will be having mutliple instances of World of Warcraft running and not using the PID will screw up this script. (multiboxing is allowed on the private server im using, don't worry! )Additionally, I was wondering if I added exit or end to the end of this script if it will end the process in the task managers processes section. How can I ensure the script will end and remove from the processes after it does what it's intended to do? It seems to linger in my Task Managers processes after the script has been long completed. off topic: Oh, by the way, I'm new to the forums so I'm sorry to start off here with a question if that's rude! But, in truth I've been using the forum for help for a long time, just finally decided to create account and join the community. Im hoping to be a regular eventually, i'm loving autoit. MANY THANKS IN ADVANCE AND MUCH LOVE! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 8, 2015 Moderators Share Posted July 8, 2015 earthwarder,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 interaction - 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.M23 earthwarder 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts