
Mayur
Members-
Posts
16 -
Joined
-
Last visited
Mayur's Achievements

Seeker (1/7)
0
Reputation
-
Can i automate it with WM_NOTIFY Command ?
-
I am trying ControlCommand with "SendCommandID", Command ID but i am not able to get WM_COMMAND but not able to get Control ID, I am using Winspector SPY anyone having different solution. Please Let me know. Thanks, Mayur
-
Sorry It's not working i am talking about buttons with name Recipes,Procedures,Operation Templates,Materials,Resources.AutoIt recognises it as Listbar.& The below two folders Production & Scratch are recognized as Tree-view. Please let me know is there any solution.
-
Hi all, Currently in our application there are some buttons for which auto it recognizes as one frame not separate buttons please see below window summary & screen shot. >>>> Window <<<< Title: xRecipe [user: mayur] Class: WindowsForms10.window.8.app.0.2ca5f28 Position: -4, -4 Size: 1288, 1002 Style: 0x17CF0000 ExStyle: 0x00050100 Handle: 0x001F008E >>>> Control <<<< Class: WindowsForms10.window.8.app.0.2ca5f28 Instance: 5 ClassnameNN: WindowsForms10.window.8.app.0.2ca5f285 Name: ListBar Advanced (Class): [NAME:ListBar] ID: 1966350 Text: Position: 1, 50 Size: 198, 924 ControlClick Coords: 86, 851 Style: 0x56010000 ExStyle: 0x00010000 Handle: 0x001E010E >>>> Mouse <<<< Position: 87, 920 Cursor ID: 0 Color: 0xDED3CE >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Header Validate Recipe not Selected toolStrip1 menuStrip1 >>>> Hidden Text <<<< Please tell me how can i use these buttons for writing automation scripts. Regards, Mayur
-
Hi all, For my Automation Project. I need to open xml file find a perticular node change its value & save it with different name. Does any one have any idea how it is possible using basic or Auto it. Thanks, Mayur
-
Hi All, Now for my Automation Project i am using Microsoft Excel for data due to some problems i need to replace Microsoft Excel by Micosoft Excel viewer. But directly using functions in Excel.AU3 is not returning me the handle of Microsoft Excel Viewer. Does any one know something how to get COm object of Excel Viewer. Thanks in Advance, Mayur
-
Hi All, I need to read multiple data from excel sheet so for that purpose i open Excel work book using _ExcelBookOpen Then i used _ExcelSheetActivate Function & then _ExcelReadCell & _ExcelBookClose function. But after execution i found that there are number of EXCEL.exe Processes are running in Task Manager so it slower's the execution time Some times machine gets hang. Does any one have solution for this problem. Thanks in Advance, Mayur
-
I think When window reopens previous handels doesn't work.
-
Hi All, Problem Appears only when window reopens. Please go through code & If you need any information reply. Please try at least,i stuck at this point any input may work. Thanks, Mayur
-
Anyone knows whats the Problem?
-
-
Hi All, I need to select each subchild from tree view & Click Ok button. So i implemented logic by using _GUICtrlTreeView.GetFirstChild() & _GUICtrlTreeView.GetNextChild() methods & used looping statements the logic works correctly for only selecting item but when i inserted code of clicking ok button then the window disappears i invoked the vindow before ending of loop But while when the loop starts again it doesnot expand the items & unable to select item. i used _GUICtrlTreeView_GetItemText() method for checking item handle of items to expand but it returns blank. Please find below snippet of my code & screenshot. send("{ALT}") Send("{T}") Send("{ENTER}") _WinWaitActivate("CustomTest","") $hTreeView=ControlGetHandle("CustomTest","","[CLASS:SysTreeView32; INSTANCE:1]") $hADDButton=ControlGetHandle("CustomTest","","[CLASS:Button; CLASSNN:Button5; TEXT:Add ->; INSTANCE:5]") $hOKButton=ControlGetHandle("CustomTest","","[CLASS:Button; CLASSNN:Button2; TEXT:OK; INSTANCE:2]") _RemovePreviousTests() $htmp_item=_GUICtrlTreeView_GetFirstItem($hTreeView) $Childcount=_GUICtrlTreeView_GetSiblingCount($hTreeView,$htmp_item) $k=1 While $k<=$Childcount if $k=1 Then $htmp_item=_GUICtrlTreeView_GetFirstItem($hTreeView) $SubChildCount=_GUICtrlTreeView_GetChildCount($hTreeView,$htmp_item) Else $htmp_item=_GUICtrlTreeView_GetNextSibling($hTreeView,$htmp_item) $SubChildCount=_GUICtrlTreeView_GetChildCount($hTreeView,$htmp_item) if $htmp_item=0 Then ExitLoop EndIf EndIf $j=1 While $j<=$SubChildCount if $j=1 Then $Temp1=_GUICtrlTreeView_GetFirstChild($hTreeView,$htmp_item) $Tests=_GUICtrlTreeView_GetChildCount($hTreeView,$Temp1) Else $Temp1=_GUICtrlTreeView_GetNextChild($hTreeView,$Temp1) $Tests=_GUICtrlTreeView_GetChildCount($hTreeView,$Temp1) EndIf $i=1 While $i<=$Tests _GUICtrlTreeView_Expand($hTreeView) Sleep(5000) if $i=1 Then $hwItem=_GUICtrlTreeView_GetFirstChild($hTreeView,$Temp1) _GUICtrlTreeView_ClickItem($hTreeView,$hwItem) _GUICtrlButton_Click($hADDButton) Sleep(2000) _SelectTest() _GUICtrlButton_Click($hOKButton) Sleep(2000) _SaveFile($i) Send("{ALT}") Send("{T}") Send("{ENTER}") _WinWaitActivate("CustomTest","") _RemovePreviousTests() Else $hwItem=_GUICtrlTreeView_GetNextChild($hTreeView,$hwItem) _GUICtrlTreeView_ClickItem($hTreeView,$hwItem) _GUICtrlButton_Click($hADDButton) Sleep(1000) _SelectTest() _GUICtrlButton_Click($hOKButton) Sleep(1000) _SaveFile($i) Sleep(1000) MsgBox(1,"Test","Hi") Send("{ALT}") Send("{T}") Send("{ENTER}") _WinWaitActivate("CustomTest","") _RemovePreviousTests() EndIf $i=$i+1 WEnd $j=$j+1 WEnd $k=$k+1 WEnd Please let me know if any one have suggestions for me. Thanks, Mayur
-
Hi All, Below is the summary of Window Info of the application i need to automate. #####################Widow Info###################### >>>> Window <<<< Title: CustomTest Class: #32770 Position: 80, 106 Size: 641, 359 Style: 0x94C800CC ExStyle: 0x00010101 Handle: 0x005A026C >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x006C025E >>>> Mouse <<<< Position: 94, 120 Cursor ID: 0 Color: 0x0000FF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OK Cancel Script Parameters Add -> <- Remove Up Down Parameters >>>> Hidden Text <<<< OK ########################################################################################## I need to click some buttons on it for this purpose i writen following code ############Code################################################# Local $hADDButton,$hOKButton $hADDButton=ControlGetHandle("CustomTest","","[CLASS:#32770;TEXT:Add ->]") $hOKButton=ControlGetHandle("CustomTest","","[CLASS:#32770;TEXT:OK]") _GUICtrlButton_Click($hADDButton) _GUICtrlButton_Click($hOKButton) ###################################################################### But it doesn't work for me Can anyone help me? Thanks, Mayur
-
How to click Menu Items without using x,y co-ordinates?
Mayur replied to Mayur's topic in AutoIt General Help and Support
Thanks for your help It Worked. -
How to click Menu Items without using x,y co-ordinates?
Mayur replied to Mayur's topic in AutoIt General Help and Support
Will you please explain first Method I didn't understand. I tried second method but i am not able to get handle of menu because AutoIt Window Info doesnot recognises Menu Items. I used first _GUICtrlNenu_GetMenu method first to get handle of Menu & Then GUICtrlMenu_GetItemText this method returned blank. Let me know Your Suggestions. Thanks, Mayur