zerodha provides pi platform where it accepts signals from amibroker.
I am trying to automate the acceptance part of semi automated mode with autoit.
Has any tried this ?
i am facing trouble getting the hold of PI window based on the Title.
#Region ............ Included Scripts
#include-once
#include <GUIConstants.au3>
#include <Array.au3>
#include <GuiListView.au3>
#include <Date.au3>
#include <file.au3>
#EndRegion ............ Included Scripts
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
MsgBox(0,"test Pi ","running test pi")
$Title="Pi"
_WinWaitActivate($Title,"test")
Global $hWnd = WinGetHandle($Title) ; Get handle for NOW main window
Global $hWatch = ControlGetHandle($hWnd, "", 67868) ;Get handle of Market Watch Control
MsgBox(0,"test Pi ","got window handles")
Local $iColumnCount = _GUICtrlListView_GetColumnCount($hWatch)
MsgBox(0,"test Pi ","column count is " & $iColumnCount)
Local $aColumns[] = []
For $i = 0 To $iColumnCount - 1
$aColumns = _GUICtrlListView_GetColumn($hWatch, $i);
Local $Name = $aColumns[5]
MsgBox(0,"test ",$Name)
Next
The same piece works with notepad++ if i give full path of the notepad doc.(but auto it window info shows the path in the in the title section , for PI platform it says just PI.
Any ideas?