Jump to content

ABDULLAH701

Members
  • Posts

    3
  • Joined

  • Last visited

ABDULLAH701's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you GPinZone for replying and thank Delstone I got the following script from the linke provided above it activate system propertis window and press the tab advanced ; This must be run with Beta 3.2.13.1 or later to have _GuiCtrlTab_ClickTab() #include <GuiTab.au3> ; Open system properties Dim $sTitle = "System Properties" Send("#{Pause}") WinWait($sTitle, "", 10) $hWnd = WinGetHandle($sTitle) If @error Then _Exitonerror("Failed to open System Properties window.") WinActivate($hWnd) Sleep(2000) ; Get handle to Tab control $hTab = ControlGetHandle($hWnd, "", "SysTabControl321") If @error Then _Exitonerror("Failed to get handle to TAB control.") ; Find and select Advanced tab $iAdvTab = _GUICtrlTab_FindTab($hTab, "Advanced") If $iAdvTab = -1 Then _Exitonerror("Failed to find 'Advanced' tab.") _GUICtrlTab_ClickTab($hTab, $iAdvTab) If _GUICtrlTab_GetCurSel($hTab) <> $iAdvTab Then _Exitonerror("Failed to change selected tab to 'Advanced'.") Sleep(2000) ; Click on Error Reporting button ControlClick($hWnd, "", "[CLASS:Button; INSTANCE:8]"); Error Reporting ; Wait for Error Reporting dialog and click 'Cancel' WinWait("Error Reporting", "", 10) Sleep(2000) ControlClick("Error Reporting", "", "[CLASS:Button; INSTANCE:8]"); CANCEL Sleep(2000) ; Close System Properties WinClose($hWnd) Func _Exitonerror($sText) MsgBox(16, "Error", $sText) Exit EndFunc the problem here is even if you change the name of the window Dim ($sTitle = "System Properties") for another window say Dim $sTitle = "X-Axis Properties" and change $iAdvTab = _GUICtrlTab_FindTab($hTab, "Advanced") to $iAdvTab = _GUICtrlTab_FindTab($hTab, "Periodicity") when i run the script the system properties window open i dont know why you can try it your self if you have an explanation please let me know thank you very much
  2. I did not created GUI the tab control is part of pupolar application (metastock)
  3. Hello Everybody I am new to AutoIt I just practiced it few days ago I want to write script that change periodicity for metastock applicatio I did most of the script I go to menu then F&rmat Then &X-Axis... As follow WinWaitActive("[CLASS:MetaStockMainWnd]", "") WinMenuSelectItem("[CLASS:MetaStockMainWnd]", "", "F&ormat", "&X-Axis..." ) Sleep(500) Then a window comes out with tab control of four tabs Scale Periodicity Margins Grid and I want to choose periodicity how can I press Periodicity tab any help please
×
×
  • Create New...