Jump to content

breakbadsp

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

300 profile views

breakbadsp's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I want to create a excel file from my script if it does not exist. _ExcelBookOpen throws error=2 if file does not exist, after this error i want to create new file at this point. can i use _FileCreate()? _Logger($sLogPath, "{INFO}------: Opening Excel File: " & $sExcelPath& "") While 1 Local $oExcelTestResult = _ExcelBookOpen($sExcelPath) If @error = 2 Then If not _FileCreate($sResExcelPath) Then MsgBox(0, "Error", "Error In Opening REsult Excel File: Error: " & String(@error)) _Logger($sLogPath, "{ERROR}------: Result Excel File does not exist.. tried to create new but :ERROR : " & String(@error) & "") ExitLoop Else _Logger($sLogPath, "{INFO}------: Result Excel File does not exist.. **Created New**: ") EndIf Else ExitLoop EndIf WEnd
  2. Worked after adding the working directory optional parameter RunWait( 'fullpath\Python.exe ReadLog.py  -f "file.log" -k "key" -e "errMsg" ', 'Working_directory_path')
  3. I want to run a python script from autoit. I know we can do this with shellexecute or run , but this python script takes 3 cmd line arguments. How to pass them from autoit script? I tried many ways. Following solution also not working e.g. RunWait( 'fullpath\Python.exe Scriptpath\ReadLog.py  -f "file.log" -k "key" -e "errMsg" ') Found solution: RunWait( 'fullpath\Python.exe ReadLog.py -f "file.log" -k "key" -e "errMsg" ', 'Working_directory_path') PFB description: https://stackoverflow.com/questions/45757834/how-to-pass-command-line-arguments-to-a-python-script-anyscript-while-executin
  4. Same for the .NET GUIs, pop ups which are developed using C#
  5. AutoIT AU3info doeas not detect all gui objects uniquely for .NET GUIs developed in C#. this is not working now i am using COM windows approach for this, But its very difficult. Please let me know if anyone has done it before.
  6. Got it , Its just the implementation. Anyways using == is the best option if you want to avoid the extra typecasting headache
  7. same problem i am also facing , AU3Info.exe is not much useful for the .NET GUIs developed using C#
  8. why ("123a"=123) this returns True?
×
×
  • Create New...