Kammamuri Posted July 4, 2013 Share Posted July 4, 2013 HI again! I'm running my autoit program (in truth 2 programs, if one stops/gets an error gets launched again by the other) on my laptop, a Sony Vaio FW. The programs work fine during the day but for some reason at night the computer goes nuts. Yesterday it was windows update which was scheduled for 3 am and for some reason it went to sleep after that, so the program stopped at 3 am and in the morning i found the pc sleeping. So i turned windows update off. This morning the pc was still working but the screen was frozen on a page of about 3 am! (the last verified activity, from a txt file which gets modified by the program, is at 2:52 am) so i guess something happened again at about 3 am. when i managed to get the screen refreshed i saw the program was still running (but had done nothing from 3am up to 7 am). Ah and the ErrorLog (a txt file that saves the errrors my main program encounters) was empty! Any idea what might be the problem?? Also, I've noticed that IExplorer (the program interacts with it) becomes very slow after it has run for maybe an hour, while GoogleCrome and Firefox don't get this lag issue. I've even thought to make the program relaunch IE periodically .. ideas to fix this? Thanks in advance! Link to comment Share on other sites More sharing options...
orbs Posted July 4, 2013 Share Posted July 4, 2013 if the program runs during daytime, i doubt you'll find it is the cause of your troubles. how i would proceed: 1) check what Windows Event Log has to say. 2) apply some cleanup methods to your pc, like CCleaner. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
water Posted July 4, 2013 Share Posted July 4, 2013 It's very hard if not impossible to help without having seen your code! My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 4, 2013 Moderators Share Posted July 4, 2013 Kammamuri,My crystal ball is being repolished at the moment, thus it would help if you posted the scripts so we can look at them. We might then be able to come up with some sensible suggestions - at the moment I am tending towards the idea of your cat pressing the wrong key overnight. M23P.S. When you post code please use Code tags - see here how to do it. - then you get a small scrolling codebox and syntax colouring. Bert, TheSaint and water 3 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...
orbs Posted July 4, 2013 Share Posted July 4, 2013 i second Melba23's idea about the cat. hey, i witnessed it once myself - the cat actually posted "neiu" on facebook! i guess the NSA are on our tracks now. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Kammamuri Posted July 4, 2013 Author Share Posted July 4, 2013 Where can i find the "Windows event log"? searching that name in the pc gives only a bunch of txt files. unfortunately no cat (or dog) is involved .. I'll try to clean the pc and to run the program on another machine the parent program is: HotKeySet("{ESC}", "Terminate") Local $line Local $ErrorLog = FileOpen("ErrorLog.txt",2) FileClose($ErrorLog) While 1 If ProcessExists("TheBeast v0.75.exe") = 0 Then If ProcessExists("iexplore.exe") Then ProcessClose("iexplore.exe") Local $foo = Run('C:\Users\....\TheBeast v0.83.exe /ErrorStdOut', "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) EndIf While 1 $line = StdoutRead($foo) If @error Then ExitLoop Local $ErrorLog = FileOpen("ErrorLog.txt",1) FileWrite($ErrorLog, $line) FileClose($ErrorLog) WEnd Sleep(200) WEnd ;Terminate Func Terminate() Exit 0 EndFunc the child one now is over 3k lines long and i can't post it here basically what it does is: -browse to a website -refreshes some information that it has about the website -then checks the time every second (since it uses the time of the website it has to do a _iebodyreadhtml and some stringregexp every second) -if the time is right it does some actions, mainly _ieaction($oIE, "click"), some getobjects functions and formobjectsetvalue i don't think there is nothing wrong here, and even if there was something it would just crash and get launched again also, usually i use the IE window as "visible" so that i can see what the program is doing, but i can put it to "invisible" easily Link to comment Share on other sites More sharing options...
water Posted July 4, 2013 Share Posted July 4, 2013 Run "eventvwr". My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted July 4, 2013 Share Posted July 4, 2013 Can you please tell us what "TheBeast v0.75.exe" is? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Kammamuri Posted July 4, 2013 Author Share Posted July 4, 2013 (edited) ops didn't change the name of the program there!! well, that might be a problem! .. it's just the name of the child program edit: still the child program didn't crash so that line (with the wrong name) should not have been run Edited July 4, 2013 by Kammamuri Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 4, 2013 Moderators Share Posted July 4, 2013 Kammamuri, the child one now is over 3k lines long and i can't post it hereThat and the use of an executable called "TheBeast" (which makes for some interesting Googling) are not giving me a warm fuzzy feeling. You have already been pointed to the Forum rules - are you sure this is legal? And I have now seen your response to water - it seems it is not. Thread closed. That is 2 strikes - do NOT go for a third. 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