douma2010 Posted March 11, 2013 Share Posted March 11, 2013 hey Guysi need help at this function pleasemy idea is when the program for exemple "photoshop.exe" begins runnig the process for exemple "notepad.exe" closed after 5 secondshow can i do that please ??? Link to comment Share on other sites More sharing options...
douma2010 Posted March 11, 2013 Author Share Posted March 11, 2013 12 views and no answer Link to comment Share on other sites More sharing options...
JohnOne Posted March 11, 2013 Share Posted March 11, 2013 while...WEnd loop If...EndIf condition ProcessExists() Sleep() ProcessClose() All in help file, post your attempt when you have read up on them. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted March 11, 2013 Share Posted March 11, 2013 12 views and no answer 12 minutes and no patiencehttp://www.autoitscript.com/wiki/FAQ#When_should_I_bump_my_threads.3F AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
douma2010 Posted March 11, 2013 Author Share Posted March 11, 2013 can while...WEnd loopIf...EndIf conditionProcessExists()Sleep()ProcessClose()All in help file, post your attempt when you have read up on them.can you give me an exemple please for 2 programs 1 photoshop and 2 notepad Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 11, 2013 Moderators Share Posted March 11, 2013 douma2010, Why not read the Help file pages on the functions JohnOne suggested and try to code something yourself? That way you get to learn something new. We are here to help if you run into difficulties - but we will not write it for you. M23 douma2010 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...
Starstar Posted April 1, 2013 Share Posted April 1, 2013 (edited) hey Guys i need help at this function please my idea is when the program for exemple "photoshop.exe" begins runnig the process for exemple "notepad.exe" closed after 5 seconds how can i do that please ??? $fd = WinActive("Adobe Photoshop...etc") if $fd <> 0 Then Sleep(5000) WinClose("Notpad") MsgBox(0,"Notpad","Notpad Was Closed") Else Exit EndIf Edited April 1, 2013 by adnanbaloch Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." Link to comment Share on other sites More sharing options...
Starstar Posted April 1, 2013 Share Posted April 1, 2013 If you have any other problem you can also mail me my friend....... Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." 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