Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/13/2020 in all areas

  1. trancexx

    WinHTTP functions

    The other day mikeytown2 posted one post in HTTP UDF's thread that got me thinking if there is better (different) method to send requests through the HTTP protocol to HTTP servers. There is Winhttp.dll that ships with windows and that is its main purpose. I couldn't find any examples of using this dll in AutoIt, so I came up with this. Microsoft about Windows HTTP Services: Microsoft Windows HTTP Services (WinHTTP) provides developers with an HTTP client application programming interface (API) to send requests through the HTTP protocol to other HTTP servers... .. blah, blah, and so on... This is an example of getting page header: #include "WinHttp.au3" Opt("MustDeclareVars", 1) ; Open needed handles Local $hOpen = _WinHttpOpen() Local $hConnect = _WinHttpConnect($hOpen, "msdn.microsoft.com") ; Specify the reguest: Local $hRequest = _WinHttpOpenRequest($hConnect, Default, "en-us/library/aa384101(VS.85).aspx") ; Send request _WinHttpSendRequest($hRequest) ; Wait for the response _WinHttpReceiveResponse($hRequest) Local $sHeader = _WinHttpQueryHeaders($hRequest) ; ...get full header ; Clean _WinHttpCloseHandle($hRequest) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) ; Display retrieved header MsgBox(0, "Header", $sHeader)Everything you need to be able to use this UDF can be found at WinHttp site. Remember, basic understanding of the HTTP protocol is important to use this interface. ProgAndy, trancexx WinHttp.au3 is completely free and no one has right to charge you for it. That's very important. If you feel WinHttp.au3 was helpful to you and you wish to support my further work you can donate to my personal account via PayPal address: trancexx at yahoo dot com I will appreciate that very much. Thank you in advance! :kiss:
    1 point
  2. SSD - Set Sound Device Current Version: v4 (2017-Sep-15) Windows XP allows you to output sound to more than one audio device... Vista and newer Windows versions do not. To overcome this "Failure by Design", (IMHO somehow related to DRM, preventing user to make digital copies of analog sources), I have coded SSD - Set Sound Device. SSD enables you to change the default Sound Device by shortcut or command line. It works fine on my Win10-1703 64bit machine. If you find bugs please let me know. The source and executable can be downloaded from my site: http://www.funk.eu Kudos to Ascend4nt and NerdFencer for parts of the code, and Yashied for his most excellent WinAPIEx UDF. Enjoy ...
    1 point
  3. I use it every day at a large Healthcare company to create/run automated regression test. Only reason we use AutoIt instead of UFT, Ranorex, or Python is because the majority of our applications can only be accessed within Citrix desktops that we can't get test suites or Python installed into. We compile all our AutoIt scripts into .a3x files so AV doesn't delete them and store them on a network share. To run from Citrix, we just have a bunch of shortcuts and doubleclick the one we want. I've also created a management app for ALM, as well as my own version of LoginVSI. which reminds me, LoginVSI actually uses AutoIt to run it's tests.
    1 point
  4. I've used autoit in different workplaces for over 15 years and it's great The downsides i saw are : - some AV softwares can generate false positives with it, it happend to me twice, but i just submitted a false positive report to the AV editor and they corrected it quickly, - https://www.autoitscript.com/wiki/Decompiling_FAQ#Are_my_compiled_scripts_safe.3F => you can't use autoit with secret credentials and share the compiled version publicly, - the generated compiled files sizes can be problematic when working in a low bandwidth environement. But if you know this and take the appropriate actions according to them you're good to go
    1 point
×
×
  • Create New...