
notsure
Active Members-
Posts
226 -
Joined
-
Last visited
Everything posted by notsure
-
How to draw nice graph / charts
notsure replied to pinkfoyd's topic in AutoIt General Help and Support
Thanks, sorry for the late reply -
Did you got binance to work ? I also having troubles, wrong credentials it seems, im getting errors about the hash i send.
-
How to draw nice graph / charts
notsure replied to pinkfoyd's topic in AutoIt General Help and Support
I have seen that yes, but i get no error whatsoever, only "example.png not found", so for some reason it won't create it, eventho if i start it with admin rights. -
GraphGDIPlus UDF - Create GDI+ line graphs
notsure replied to andybiochem's topic in AutoIt Example Scripts
Nice thanks. are you able to make an example of something like this? I dont know how to approach -
How to draw nice graph / charts
notsure replied to pinkfoyd's topic in AutoIt General Help and Support
Do you know how to get those bars easily? I have multiple "examples" of a line graph, or dot-graph. But i'd also like the bars and don't know how to approach -
GraphGDIPlus UDF - Create GDI+ line graphs
notsure replied to andybiochem's topic in AutoIt Example Scripts
Genius, can you please comment in english, all i get is this; ; Óñòàíàâëèâàåò ñåòêó ïî îñÿì XY _GraphGDIPlus_Set_GridX($aGraph, 1, 0xFF6C6342) _GraphGDIPlus_Set_GridY($aGraph, $iMax / 15, 0xFF6C6342) ; Ðèñóåò ãðàôèê _GraphGDIPlus_Set_PenColor($aGraph, 0xFF00FFFF) ; Çàäà¸ò öâåò ëèíèè ãðàôèêà For $i = 0 To 30 _GraphGDIPlus_Plot_Point($aGraph, $i, $i / 3 + 1.5) ; Çàäà¸ò ñëåäóþùóþ òî÷êó Next Englisch would be very welcome here. -
How to draw nice graph / charts
notsure replied to pinkfoyd's topic in AutoIt General Help and Support
Can you post the _create_graph function? It isnt in, also not within the GDI module linked. You changed it? coz graphUDF says graph_create, instead of create_graph. -
How to draw nice graph / charts
notsure replied to pinkfoyd's topic in AutoIt General Help and Support
Double -
Message signing for kraken.com API
notsure replied to contra's topic in AutoIt General Help and Support
What does the $oHTTP.send do with $parameters? I'm trying to get this to work for bittrex, But i get invalid signature when i use; Global Const $CALG_SHA_512 = 0x0000800e #Region Bittrex Const Global $g_bittrexURL = "https://bittrex.com/api" Global $g_bittrexAPIVersion = "v1.1" #EndRegion Bittrex Const Func BittrexQueryPrivate($sMethod, $sParameters = "") Local $sNONCE = _GetNonce() $sParameters = "nonce=" & $sNONCE & $sParameters Local $sURL = StringFormat("/%s/account/%s", $g_bittrexAPIVersion, $sMethod) Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $FullURL = $g_bittrexURL & $sURL & "?apikey=" & $g_sAPIKey & "&nonce=" & $sNONCE Local $sSignature = HMACSHA512($g_sAPISecret, $FullURL) ;bittrex demands GET $oHTTP.Open("GET", $FullURL, False) $oHTTP.SetRequestHeader("apisign", _Base64EncodeMod($sSignature)) ;sup with this? : $oHTTP.Send(Binary($sParameters)); Local $sReceived = $oHTTP.ResponseText Return $sReceived EndFunc ;==>BittrexQueryPrivate $FULLURL will become; https://bittrex.com/api/v1.1/account/getbalances?apikey=*APIKEYHERE*&nonce=20171002164018019 This responds with; Balance: {"success":false,"message":"INVALID_SIGNATURE","result":null} This also happens when i use the correct $nonce. Func CurrentTime() return _DateDiff('s', "1970/01/01 00:00:00", _NowCalc()) EndFunc -
Compare text and show differences?
notsure replied to notsure's topic in AutoIt General Help and Support
Its also purpose that addition may occur in the middle of the data... so this wouldnt work for that ;( -
Compare text and show differences?
notsure replied to notsure's topic in AutoIt General Help and Support
I can't test this here, but what would $res return? If it returns "45678" you're my man. -
Maybe post some code... that'll help.
-
Hi. I'm trying to compare 2 texts with eachother but im struggling a little. I have 1 file for today ($array) and 1 file from yesterday ($filecontents), those should be compared to see whats being added today. Todays file example: 12345 23456 34567 Yesterdays file example: 12345 23456 34567 45678 I tried something like this, it works but its ugly, besides, i only have to see whats being added. $file = fileopen ("test.txt") $filecontents = readfile ($file) for $x = 1 to ubound($array) - 1 if stringinstr($filecontents, $array[$x]) > 0 then stringreplace($filecontents, $array[$x], "") endif next this shows whats "left" after replacing the whole array with nothing... but there should be a better way to do this i guess? Any thoughts? Thanks
-
Treeview add items (multiple handles)
notsure replied to notsure's topic in AutoIt General Help and Support
Got it, thanks alot. -
Treeview add items (multiple handles)
notsure replied to notsure's topic in AutoIt General Help and Support
Thanks alot Melba. Got it almost working. However, this is about IP addresses to be sorted. So it is possible that more than 1 "hit" needs to be stored in the parent-item. So the construction to add doesn't work that well, as it adds all to all parent entry's. But i'm 1 step further, thanks so far. -
Hi, I've got a little problem and i was hoping anyone here could help me sort this out. Didn't exactly know whether to put this in GUI help or General Support... but i think its a combination of code and GUI. I've got this (its a lot more, but i stripped to keep it visually comprehensible). $tvRDS = GUICtrlCreateTreeViewItem("150.bla 1", $tvLocations) $tvZDK = GUICtrlCreateTreeViewItem("152. bla 2", $tvLocations) $tvWND = GUICtrlCreateTreeViewItem("153. bla 3", $tvLocations) $tvGAW = GUICtrlCreateTreeViewItem("154.bla 4", $tvLocations) $tvEND = GUICtrlCreateTreeViewItem("155. bla 5", $tvLocations) Global $tvITEM MsgBox(1, "Information", "Count: " & _GUICtrlTreeView_GetCount($tvLocations)) ;Fill treeview with subitems. for $x = 1 to _GUICtrlTreeView_GetCount($tvLocations) $tvITEM = _GUICtrlTreeView_GetText ( $tvLocations, $x) $Nr = stringright($tvItem, 3) ;here needs to be something to put them in the right handle (like $tvRDS if $nr = 150, and $tvWND if $nr = 153) ;ive got multiple excel files (all named 150.xlsx, 151.xlsx etc., so i can use _excelbookopen($nr & ".xlsx") etc Next So i can select excel files by reading the first 3 chars (150, 151, 152 etc.) and open them. The childitems need to be filled with the data in Excel. But to do this, i need to give my handle in the ; $tvRDS = GUICtrlCreateTreeViewItem(*EXCELDATA*, $tvGAW or $tvEND or $tvGAW... ) So by reading the excel files, how do i get the correct handle to put it at the right tree item. If you get what i mean? Else i have to do ALL those seperate Like; if $nr = 150 then GUICtrlCreateTreeViewItem(*EXCELDATA*, $tvRDS) if $nr = 152 then GUICtrlCreateTreeViewItem(*EXCELDATA*, $tvZDK) And so on, and so on... there are like 50 locations. Sorry if i confuse you, and will be trying to clarify what i mean if its unclear. Thanks in advance for any help. Notsure.
-
Hello, I was wondering, if it is possible to get the IP address which is connecting to the socket? Like; TCPStartup() Local $sIPAddress = "10.1.1.1" ; This IP Address only works for testing on your own computer. Local $iPort = 4500 Local $iListenSocket = TCPListen($sIPAddress, $iPort, 100) Local $iError = 0 If @error Then ; Someone is probably already listening on this IP Address and Port (script already running?). $iError = @error MsgBox(BitOR($MB_SYSTEMMODAL, $MB_ICONHAND), "", "Could not listen, Error code: " & $iError) Return False EndIf Local $iSocket = 0 Do ; Wait for someone to connect (Unlimited). ; Accept incomming connexions if present (Socket to close when finished; one socket per client). $iSocket = TCPAccept($iListenSocket) ; If an error occurred display the error code and return False. If @error Then $iError = @error MsgBox(BitOR($MB_SYSTEMMODAL, $MB_ICONHAND), "", "Could not accept the incoming connection, Error code: " & $iError) Return False EndIf Until $iSocket <> -1 ;if different from -1 a client is connected. Socket will be <> -1 when somebody connects, but is it possible to determine which IP address is connecting? The socketstate is winsock i guess... Haven't done AU3 for a while, be easy on me
-
Hi Firefox, I did use the search engine, but all hits ive seen are about winHTTP CLIENT-acting, not acting as server. Could i have a look at your limited webserver, where can i find this? Thanks alot man! Gr, Notsure.
-
Hi FireFox, This is my full code till now... is there any webserver UDF or something? And what do you mean with : Its working fine?! Nothing is working, except i can connect to Port80 TCP. Thanks in advance, Notsure.
-
Hello, I'm trying to build a small webserver but i can't really get it to work. I tried alot of things, here's my code; Can anyone help me out or give me a hint how to do this? I guess this wont work quite well with the HTTP protocol Edit; Also if i use HTTP strings like this; local $sData = "HTTP/1.1 200 OK" & @crlf & _ "Date: Tue, 29 Apr 2014 13:21:18 GMT" & @crlf & _ "Server: Bla" & @crlf & _ "X-Powered-By: Power" & @crlf & _ "Content-Length: 11" & @crlf & _ "Connection: close" & @crlf & _ "Content-Type: text/html; charset=utf-8" & @crlf It wont quite work :/ #include <MsgBoxConstants.au3> TCPStartup() Local $sIPAddress = @IPAddress1 Local $iPort = 80 Local $iListenSocket = TCPListen($sIPAddress, $iPort, 100) Local $iError = 0 Local $iSocket = 0 While 1 $iSocket = TCPAccept($iListenSocket) ; If an error occurred display the error code and return False. If @error Then $iError = @error MsgBox(BitOR($MB_SYSTEMMODAL, $MB_ICONHAND), "", "Could not accept the incoming connection, Error code: " & $iError) EndIf if $iSocket <> -1 Then consolewrite(TCPRecv($iSocket,100)) TCPSend($iSocket, "hello this is a webserver") ExitLoop EndIf WEnd ;if different from -1 a client is connected. TCPShutdown()
-
Headbreaking; Sort variable array
notsure replied to notsure's topic in AutoIt General Help and Support
K, but the number of entries are also variable. Lets say i'd like to write every abc, def and ghi to a different file but i dont know if [10] is correct. ? Also, the string could be longer than 3 blocks. -
Hello, I've spent some hours finding out how to do this, but maybe i'm trying way to long to get the solution. Maybe you guys can help me out. The situation; I have 1 array, which is MAX 20 entries long. Lets see the code; #include <array.au3> local $array[11] local $array2[11] local $last[11] $array[1] = "abc|123|fff" $array[2] = "def|456|ddd" $array[3] = "ghi|789|aaa" $array[4] = "abc|123|adfagew" $array[5] = "abc|123|wegwwa" $array[6] = "ghi|789|regrerg" $array[7] = "ghi|789|ccwerwe" $array[8] = "ghi|789|uu984u9" $array[9] = "ghi|789|aegoihaweoigw" $array[10] = "ghi|789|bla" for $x = 1 to 10 $array2 = $array[$x] ............... how?! Next _ArrayDisplay($last) I'm trying to sort this array by using a loop inside a loop but i can't get it to work. The purpose is that everything that begins with abc, will be sorted in the "last[11]" array. so: last[1] will be abc|123|fff last[2] will be abc|123|adfagew last[3] will be abc|123|wegwwa that also counts for def and ghi... Also its good to know that there can be 4096 different variaties for abc, def and ghi... so only selecting them with a case "abc" case "def" won't work. I made this simple example becoz if i write down all of my code here, you'll be figuring out for ages to find out what i'm trying to do Thanks in advance for help.
-
The only 2 lines above this part of code are the IE include and _IEATTACH. In case of the "oquery.click" it clicks a javalink inside a webpage, so its gonna load. The website is build with links like this; <tr class="uneven_link" onclick="location.href='?page=bla bla bla'"> So there is no other way to "click" the link IMO. Also _IEnavigate is more complex as i need to trim the variables from the URL given in location.href... there are alot of numbers i need inside the link to perform _IEnavigate properly. Thats why I like this way more. Edit; did you see the outcome of the properties... (from your code)? Kinda strange if you ask me.
-
Small example; -------CUT ALOT OF DATA-------------- Property: >0< Property: >COMPANY INFO Property: >31/01/07 08:33< Property: >14/02/07 01:15 < Property: >0< Property: >0< Property: >IP Services Basis< Property: >31/01/07 08:33< Property: >05/02/07 08:39 < Property: >0< Property: >0< Property: >COMPANY INFO Property: >31/01/07 08:33< Property: >05/02/07 08:39 < Property: >0< Property: >0< Property: >COMPANY INFO Property: >31/01/07 08:33< Property: >05/02/07 08:39 < Property: >0< Property: >0< Property: >COMPANY INFO Property: >31/01/07 08:33< Property: >05/02/07 09:08 < Property: >0< Property: >0< Property: >COMPANY INFO Property: >31/01/07 08:33< Property: >04/03/09 08:37 < Property: >0< Property: >0< Property: >Controle & Oplevering< Click: 0 This goes for the "==" GetCollection: 0-1 Property: > < Property: > < Property: >COMPANY INFO < Property: > < Property: > Order Manager Order Overzicht Wachtende orders Foutieve orders Opgeleverde orders Service Manager Order Overzicht This goes for the "="