Jump to content

pammi

Active Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by pammi

  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"
  15. Hi Everyone, I am writing scripts to test a window's application. There are hundreds of scripts and there are chances that the application I am testing may crash at any point of time. I want to handle this situation so that the running test script which resulted in a crash wont stop the execution and will move on to the next script when a crash is found. How can I do this?? Any ideas. Thanks in advance
  16. thanks for the help kaotkbliss and MKISH. I unchecked the freexe option and was able to fetch the control info.
  17. Hi All, I need to fetch the info inside a static control. The info is a data window filled with 0's and 1's. Any ideas on this? Attached is the snapshot. Below is the info from Au3info tool. >>>> Window <<<< Title: ABC Class: Afx:400000:8:10011:0:168046d Position: -4, -4 Size: 1288, 1002 Style: 0x15CF8000 ExStyle: 0x00000110 Handle: 0x003B04B8 >>>> Control <<<< Class: Static Instance: 22 ClassnameNN: Static22 Name: Advanced (Class): [CLASS:Static; INSTANCE:22] ID: 1249 Text: Position: 788, 373 Size: 171, 166 ControlClick Coords: 56, 85 Style: 0x50000007 ExStyle: 0x00020305 Handle: 0x00730658 >>>> Mouse <<<< Position: 844, 504 Cursor ID: 0 Color: 0xFFFFFF
  18. @MKISH, I am not trying to create a spin control. I need to fetch the info on a existing application. Attached is the screenshot
  19. Hi Everyone, Is it possible to fetch the Control Type of the spin control button. In my scenario I need to double click on a listview item then the Spin control appears and I need to validate whether that control(Spin Control) is visible or not. I am not able to use Au3Info tool on the Spin control. The spin control button disappears as soon as I click my mouse outside the application. Please share if you have any ideas on this
  20. thanks for the info BrewMan. The links explains everything.
  21. I was able to perform the operation using mouseclickdrag by varying the x and y coordinates. Thanks Johnone for ur support
  22. @rover, Window Detective, Au3info tool is not identifying the checkbox in the header as a button. I used the below code and its not returning any handle to the button. Please have a look at the information about the header from Au3info above. #include <GuiButton.au3> $hWin = WinGetHandle("ABC") msgbox(0,"",$hWin) If Not IsHWnd($hWin)Then Exit ConsoleWrite('!No App hWnd returned' & @crlf) $hListView = ControlGetHandle($hWin, "", "[CLASS:SysHeader32; INSTANCE:2]") msgbox(0,"",$hListView) If Not IsHWnd($hListView)Then Exit ConsoleWrite('!No ListView hWnd returned' & @crlf) $hBtn = ControlGetHandle($hListView, "", "[CLASS:Button]") msgbox(0,"",$hBtn) If Not IsHWnd($hBtn)Then Exit ConsoleWrite('!No Button hWnd returned' & @crlf)
  23. @BrewManNH, Sorry I should have posted the info long back.its a C++ application. Below are the information about the column header from Au3info tool. >>>> Window <<<< Title: ABC Class: Afx:400000:8:10011:0:250455 Position: -4, -4 Size: 1032, 746 Style: 0x15CF8000 ExStyle: 0x00000110 Handle: 0x000A038A >>>> Control <<<< Class: SysHeader32 Instance: 2 ClassnameNN: SysHeader322 Name: Advanced (Class): [CLASS:SysHeader32; INSTANCE:2] ID: Text: Position: 258, 144 Size: 544, 17 ControlClick Coords: 15, 6 Style: 0x500000C2 ExStyle: 0x00000000 Handle: 0x000D0408 >>>> Mouse <<<< Position: 273, 196 Cursor ID: 0 Color: 0xFFFFFF
  24. Ok will try and let u know. But the mouseclickdrag should have worked ryt?
×
×
  • Create New...