frankhack1 Posted January 5, 2015 Share Posted January 5, 2015 (edited) Hi ! I have 50 Firefox.exe (different Profiles), each one of them with the name: Firefox_01 Firefox_02 Firefox_03 Firefox_04 Firefox_05 etc... till Firefox_50 I'm trying to do a script that search If Firefox_30 process exists, if YES, then open next Firefox... in this case Firefox_31 is the next Firefox, but it may happen Firefox_31 is also open, so loop till it finds a Firefox process that is not open and open it. The count starts at Firefox_30 and ends at Firefox_50, I don't want to close any process, just jump it and try to open next Firefox that is not open yet. I have then: ; This is the first Firefox to start Searching for (Firefox_30) $start = 30 ; This is the variable that will increase by one $increment = 31 ; This is another question inside the question... is there any way to say $increment = $start += 1, I mean, whatever is inside $start, it will be one more in $increment, I tried "$increment = $start += 1" but didn't work. ; Search till (Firefox_50) $end = 50 Do If ProcessExists("Firefox_"&$start&".exe") Then Run("Firefox_"&$increment&".exe") Else Run("Firefox_"&$start&".exe") EndIf ; Variable $increment goes 1 more $increment+=1 ; Loop till Firefox_50 and stop Loop Until $increment == $end This far, my code is just checking for FIrefox_30, and if process exist, then is opening all other firefox from 31 till 50 and that is not what I want, I just want only one Firefox to be opened... the one available Edited January 5, 2015 by frankhack1 Link to comment Share on other sites More sharing options...
water Posted January 5, 2015 Share Posted January 5, 2015 Wow. Can you please tell us why you need to run up to 40 instances of FireFox? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
frankhack1 Posted January 5, 2015 Author Share Posted January 5, 2015 (edited) Hi, I just changed the message, is 50 instances, I use iMacros for posting advertisment on different sites, inside iMacros I use javascripts, I can't use 2 javascripts in one Firefox instance (in 2 separated windows but one Firefox) cause it will collapse, so I need to open each javascript macros in different Firefox instances. I bought for this a SSD computer and 16GB Ram in order to run more or less smooth and I use a customize light version of firefox. Edited January 5, 2015 by frankhack1 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 5, 2015 Moderators Share Posted January 5, 2015 frankhack1, is 50 instances, I use iMacros for posting advertisment on different sitesI regard this as spamming and so not something we wish to support - thread closed. M23 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