Jump to content

pammi

Active Members
  • Posts

    41
  • Joined

  • Last visited

pammi's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. to make this combobox visible I need to double click on the second column and then select an item from the combobox.
  2. Hi All, I have a listview. And inside this listview there is a combobox in the second column and I need to select an item from this combo box. Can anyone please help me on how to select an item from the combobox in the second column of the listview??
  3. As I know TimerInit() doesn't start a counter. It only returns the ticks since last boot and the timerdiff function takes the timestamp of TimerInit() and calculates the time elapsed from there. plz correct me if I am wrong.. What I want is to start a counter at the begining of the script and at the end of the script have to make sure that the counter dint exceed the specified time.
  4. Hi Everyone, i need help. I have a script and I want to start a timer at the begining of the execution of the script with a specified time and want to close the application when the timer exceeds the specified time. Its something like this.. ;Main script Timer(10000) ; call timer function code.... code... code... ;end of main script Func Timer($time) start counter if start counter>$time then close app endif endfunc How Can I do this?
  5. No luck again..dint work in windows XP. is there any other way??
  6. I tried the following on notepad, still no luck WinMenuSelectItem("[CLASS:Notepad] ", "", "File", "Page Setup..." )
  7. Hi Zedna, To use WinMenuSelectItem(), we need underlined menu items that contain a '&' character to indicate the underlining. For ex. WinMenuSelectItem("[CLASS:Notepad] ", "", "&File", "Page Set&up..." ) But in my scenario there is no underlining of the menu as its added during runtime.
  8. Hi all, I need to click on a menu that is added during application runtime. Since its a runtime menu it doesn't have a underlining(when ALT is pressed). So is there a way to click on the menu during runtime?
  9. JohnOne, The following worked ... AdlibRegister("_IsAppCrash",250) Run("C:abc.exe") sleep(1000) send("!vg") sleep(2000) Func _IsAppCrash() if winexists("abc","") then $HWND=WinGetHandle("abc") $aHungApp = DllCall("user32.dll", "int", "IsHungAppWindow", "hwnd", $HWND) ; handle of app window must be global for use with Adlib* functions If @error Then MsgBox(0, "DllCall Error", @error) EndIf If $aHungApp[0]=0 Then ControlClick("abc.exe","&Close","") EndIf Else exit endif EndFunc I have one more question. Do I have to include this in all the scripts?. Can't we declare this function as global and call it in all the scripts?
  10. Thanks a lot JohnOne and Water I dont have access to my application from home. Il get back to u guys with result. Thanks once again.
  11. @JohnOne, In my scenario the application doesn't Hang. Once it crashes an error popup window will appear and I need to perform the popup window close operation. So does the "IsHungAppWindow" in Dllcall function works in this case? Or do I need to use some other function in Dllcall inplace of "IsHungAppWindow"?
  12. @water, Once the application crashes an error popup window will appear and I need to click "close the program" button to close the application. you said "If the c++ application throws an error screen the main testing script should handle this situation." How to do this? Can you please elaborate. i am new to autoit.
  13. Below is the content of main script : #Include <Excel.au3> #include<globalFunc.au3> ; Global Function ;Open the test specification file. $sFilePath1 = "D:Projectsabc.xlsx" ;This file should already exist $oExcel = _ExcelBookOpen($sFilePath1) If @error = 1 Then MsgBox(0, "Error!", "Unable to Create the Excel Object") Exit ElseIf @error = 2 Then MsgBox(0, "Error!", "File does not exist") Exit EndIf _ExcelSheetActivate($oExcel, "Test Spec-Report") #include "TS_17_001.au3" #include "TS_17_002.au3" #include "TS_17_003.au3" #include "TS_17_004.au3" #include "TS_17_005.au3" #include "TS_17_006.au3" #include "TS_17_007.au3" #include "TS_17_008.au3" #include "TS_17_009.au3" #include "TS_17_010.au3" #include "TS_17_011.au3" #include "TS_17_012.au3" #include "TS_17_013.au3" #include "TS_17_014.au3" #include "TS_17_015.au3" ......... ......... ......... .........
  14. JohnOne, i am testing C++ application. I have a main script which contains subscripts in the below manner. When I run the main script the subscripts mentioned starts executing one by one. During the executionof these subscripts there are chances tht the application may crash at any point. How to look for the crash window. You mean I need to insert a code to look for a window with text something like "error"? I am running the scripts in the following manner : #include "TS_17_001.au3" #include "TS_17_002.au3" #include "TS_17_003.au3" #include "TS_17_004.au3" #include "TS_17_005.au3" #include "TS_17_006.au3" #include "TS_17_007.au3" #include "TS_17_008.au3" #include "TS_17_009.au3" #include "TS_17_010.au3" #include "TS_17_011.au3" #include "TS_17_012.au3" #include "TS_17_013.au3" #include "TS_17_014.au3" #include "TS_17_015.au3"
×
×
  • Create New...