Rei10 Posted January 14, 2020 Share Posted January 14, 2020 If WinExists("firefox.exe") Then FileWrite('1.txt', '1') When the window is open for longer than 10 minutes, do not see the process. Link to comment Share on other sites More sharing options...
spudw2k Posted January 14, 2020 Share Posted January 14, 2020 WinExists is used to check if a window name (or handle or class) exists that matches a string. It is not intended for a process name. Perhaps the ProcessExists function is what you need? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Rei10 Posted January 14, 2020 Author Share Posted January 14, 2020 (edited) If WinExists("[TITLE:Mozilla Firefox]") Then FileWrite('1.txt', '1') does not work If WinExists("[CLASS:MozillaWindowClass]") Then FileWrite('1.txt', '1') Thanks, works in class. Edited January 14, 2020 by Rei10 Link to comment Share on other sites More sharing options...
1957classic Posted January 14, 2020 Share Posted January 14, 2020 4 hours ago, spudw2k said: Perhaps the ProcessExists function is what you need? If ProcessExists("firefox.exe") Then FileWrite('1.txt', '1') 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