Jump to content
Advert

ShadoWarrior

Members
  • Posts

    10
  • Joined

  • Last visited

ShadoWarrior's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. is there a way i can tell if a *.exe app is "not responding" in windows? maybe something related with "ProcessGetStats"
  2. it's a very good idea JohnOne but the script is very very long and bugs can have many forms and be anywhere... i just what to be able to see the error info as i would if the script wasn't compiled
  3. most of the error i get are related to arrays. what i need is to see where the error occurred in the original script so i can fix it... but the script work in a compiled form, so any info regarding the source of the problem dissipates into a general error box...something like error in line -1. I'm looking for a way to log all the errors that makes the script stop.
  4. I'm lost... I just need a way to log the script runtime errors into a log file... any help will be appreciated.
  5. I've built a script that runs on the background of my computer.... and it needs to run for hours so i can't track it manually all the time and their are always bug to be fixed... i want to write a script that monitor the first one and log it's runtime errors with details. thought of using "StderrRead" but i don't quite understand how to use it... #include <Constants.au3> Global $FileName = IniRead("Setting.ini", "Monitors", "Machine", "NotFound") & "/ErrorStdOut" ; "first" auto-it script already compiled Global $Location = IniRead("Setting.ini", "Monitors", "Location", "NotFound") Local $foo = Run($FileName ,$Location,@SW_HIDE,$STDERR_CHILD) Local $line While 1 $line = StderrRead($foo) If @error Then MsgBox(0, "STDERR read:", $line) ExitLoop EndIf Sleep(1000) Wend MsgBox(0, "Debug", "Exiting...") tried to use this simple script but $line just return blank after a runtime error...
  6. tnx it was a simple white space problem... >_
  7. lol.. i know how to use "if condition" the problem is that although $substring is real substring of $WindowTitle $result is always 0
  8. I have a problem with understanding what is wrong with "StringInStr"... the first msgbox show a specific window title and the second a substring of it but result always shows "0"???? "... MsgBox(0, "text", $WindowTitle[0]) MsgBox(0, "text", $substring[0][0]) $result = StringInStr($WindowTitle[0], String($substring[0][0])) MsgBox(0, "text", $result) ..." remark: if i change the parameter String($substring[0][0]) to "example" it works perfectly problem is that my input string is always changing
  9. Hello everyone.... I'm trying to learn autoit functionality.. and got a little stuck on how to get info from a window, if to be more specific how do i know which part of the window i can interact with for example; where is each button? is there a menu bar? how to scroll the window? let's say i want to interact with the browser... how can i find the location of the search? or the print in the menu?
×
×
  • Create New...