Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/02/2019 in all areas

  1. Maybe like this: #include "WinHttp.au3" $sAddress = 'https://api.betfair.com/exchange/betting/json-rpc/v1/' $sAppKey = '4YpsEhdsgtedjd' $sSession_key = 'BhKl7Ijdu4E3pzHhKu7K5fQrvzf9p3wq/diRMt7bZka7' $sjson_req = '{"filter":{ }}' $hOpen = _WinHttpOpen() $hConnect = _WinHttpConnect($hOpen, $sAddress) $sReturned = _WinHttpSimpleSSLRequest($hConnect, "POST", "listEventTypes/", Default, $sjson_req, 'X-Application: ' & $sAppKey & @CRLF & 'X-Authentication: ' & $sSession_key & @CRLF & 'Content-Type: application/json', Default, Default, Default, Default, 1) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) ConsoleWrite($sReturned & @CRLF)
    2 points
  2. Very very bad idea on relying on pixels for automating a web site. That would be the worst possible strategy. I strongly suggest you use IE or other UDF to perform your automation. But if you insist on going with pixelsearch or other pixel approach, I truly trusted that you will invest hundreds of hours for nothing, and that we will see you struggling in multiple threads with very little help... When implementing a numeric solution, Instead of thinking as a human, you should think as a machine. Human see a notification, but the machine has multiple ways to detect a particular alert. Mimicking human is not the best approach of making a great software...
    1 point
  3. Did you, by chance, search for OCR on the forum? I know there are a ton of threads on the subject...
    1 point
  4. Its an easy language to learn Its capable of controlling other applications: Click buttons, set textvalues, read values Easy to install from a zip or usb stick Small and quick IDE compared to the bigger ones for Java, C# just use Scite and you are up and running Small exe when compiled Examples in the help files are excellent Nowadays I would partly say that Powershell can also do a lot of stuff where I used AutoIt for in the past. Create simple and quick a GUI frontend No install (ISE is available on all Windows machines) AutoIt syntax I favor over PowerShell although both decided to have a $ in front of variable names
    1 point
  5. Hey, no worries, it was just confusing as it felt like that simply piece of code gave you the "hanging GUI" issue, which is pretty impossible. This is about my second comment? I was just explaining when the "hanging gui" issue occurs. Jos
    1 point
  6. Is that necessary if it works by using the name? I used Earthshines UDF to wait for the items to appear and it accepts the items name. Seems to work fine so far. 2 days so far of no hiccups. Marcus
    1 point
  7. There a space in front of " wp1ImageRef".
    1 point
  8. It sounds like you're looking for just the matching section to be written to the file, if so, check out the help page for StringRegExp and read up on the flag parameter. Edit: I would guess you're looking for Flag 3, but you can use this to check... I wrote this because I couldn't understand the what the flags did. Hope it helps #include <Array.au3> RegExpExample() Func RegExpExample() Local $sTest = '<test>a</test> <test>b</test> <test>c</Test>' Local $sPattern = '(?i)<test>(.*?)</test>' Local $vResult For $iFlag = 0 To 4 $vResult = StringRegExp($sTest, $sPattern, $iFlag) If @error Then ConsoleWrite("! StringRegExp Error: " & @error & @CRLF & @TAB & " Flag: " & $iFlag & @CRLF) ElseIf IsArray($vResult) Then If $iFlag = 4 Then For $i=0 To UBound($vResult) - 1 If IsArray($vResult[$i]) Then _ArrayDisplay($vResult[$i], "Flag " & $iFlag & " Part " & $i & "- StringRegExp Result") EndIf Next Else _ArrayDisplay($vResult, "Flag " & $iFlag & " - StringRegExp Result") EndIf Else MsgBox(0, "Flag " & $iFlag & " StringRegExp Result", $vResult) EndIf Next EndFunc
    1 point
  9. If StringRegExp($regex, $pattern, 0) Then FileWriteLine ("Output.txt",$regex) EndIf This ?
    1 point
  10. You can use REGEXPCLASS special title definition to grab the class pattern...
    1 point
  11. Nine

    Align text with row object

    maybe this ? #include <FontConstants.au3> #include <GUIConstantsEx.au3> #Include <GUIConstants.au3> Local Const $Row_No = 14 Local $idInputbox[$Row_No] Local $Textlist = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] GUICreate("Test", 400, 400, 50, 50) GUICtrlCreateLabel ("", 25,30,30,5+14*22,$SS_BLACKFRAME+$SS_SUNKEN) For $i = 0 To $Row_No - 1 $idInputbox[$i] = GUICtrlCreateInput("ABCD", 80 , 10 + (22 * ($i + 1)), 80 ) GUICtrlCreateLabel ($Textlist[$i], 30, 12 + (22 * ($i + 1)), 20) Next GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
    1 point
  12. Yep, I've written a few programs for clients using strictly autoit (usualy data scraping programs)
    1 point
  13. But it shouldn't work with a self-signed exe, the AV companies shouldn't be accepting them as valid proof you're not sending viruses around was my point. There's no reputation behind a SSC, it's just you saying "hey I swear I'm not encrypting everyone's files because I signed my exe."
    1 point
  14. I have used freelance.com in the past, but from the time I spent there, it is a lot more competitive and freelance.com takes fees for almost anything (for placing a sponsored bid, taking a skill test, to withdraw money etc.) I have had much greater success through Upwork, in my opinion it is better than freelancer, there is a fixed fee that you pay Upwork for money earned by a single client, you have payment protection as long as you follow the rules, so that means even if a client plays it dirty, you are still guaranteed to earn the original amount that you have agreed upon (read the about fixed price protection carefully). The fee is not too bad and is simple to follow: 20% for first $500 10% after >$500 5% after >$10,000 The fee is calculated by lifetime earnings from a single client, so if you have a long-term client who has paid more than $10,000 for your services, then you only cut 5% of the following earnings to Upwork. It depends on what your client is looking for, and if they are a programmer and are wanting to deal with the script. If you are having a hard time with a task, then I do recommend planning out what you need and make sure that your requirements are clear before approaching a freelancer. Upwork also offers client payment protection, so as long as the requirements are clear, you should be on the safe side, even if the freelancer does not have a good will. From my personal experience, I am working with a client who has very good understanding of all programming concepts and has worked on many complex software projects, but they instead chose to focus on their business instead of the intricacies in programming (which can often get overwhelming, especially when you are running a business alongside). So at the moment I am taking care of all the code while my client takes care of testing and the higher level design of the code I do not think many do actually, most of them do it as a hobby or as part of their already existing traditional job. There are a few I know who do take up freelance work now and then, I am one of them myself (if you haven't figured out that by now ). From on top of my head, both @Xandy and @Danyfirex are open to freelance work, not sure I remember any other members who are know to work freelance. It is actually not that hard to become one, as long as you have the right skill and knowledge, you can utilize it to work on related jobs. Always be persistent when looking for jobs, especially in the beginning. It might not pay your bills until a few months, as your reputation on the site grows (ratings, client feedback, ranking/status), you will start getting a lot more jobs, enough to make a living if you plan it out just right. It might be worth trying this if you are not living independently and have someone who can take care of your expenses until you get on your feet.
    1 point
×
×
  • Create New...