mendrofa Posted April 22, 2016 Share Posted April 22, 2016 expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Array.au3> #include <IE.au3> #Region ### START Koda GUI section ### Form=F:\data2\tes\array.kxf $Form1 = GUICreate("Form1", 258, 155, 192, 124) $Group1 = GUICtrlCreateGroup("", 8, 1, 241, 145) $numberarray = GUICtrlCreateInput("10", 80, 14, 73, 21) $Label1 = GUICtrlCreateLabel("Input Array", 16, 16, 55, 17) $Edit1 = GUICtrlCreateEdit("", 17, 40, 217, 97) $Button1 = GUICtrlCreateButton("RUN", 160, 11, 75, 25) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Global $aspot[999], $savespot, $sstring, $sstring1[9999], $span, $idx = 1 While 1 $nMsg = GUIGetMsg() Switch $nMsg case $button1 runarray() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd func runarray() If @error Then Return False Local $oie $url = "https://www.binary.com/trading?l=EN" If NOT WinExists("Binary.com") Then $oie = _IECreate($url) Sleep(50) Else $oie = _IEAttach("Binary.com", "instance", 1) ;WinActivate("Binary.com") Sleep(50) EndIf while 1 $span = _iegetobjbyid($oie, "spot") If NOT IsObj($span) Then ContinueLoop If $savespot = $span.innerhtml Then ContinueLoop GUICtrlSetData($edit1, "tick " & $idx & " " & "adalah " & $Span.innerHTML & @CRLF, 1) $aspot[$idx] = $span.innerhtml $savespot = $span.innerhtml $idx += 1 local $array[guictrlread($numberarray)] ????? WEnd EndFunc how can i get array suitable with how we input number and sum all array we get suitable input number Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now