Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/04/2018 in all areas

  1. See example for _GDIPlus_MatrixRotate in help file.
    1 point
  2. Really? Strange, but it works for me. What am I doing wrong? #include <ScreenCapture.au3> ; create temp image file _ScreenCapture_Capture(@ScriptDir & "\temp.png", 0, 0, 200, 200) ; ---------------- _GDIPlus_Startup() $hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\temp.png") $hBuffer = _GDIPlus_BitmapCreateFromScan0(400, 400) $hGraphic = _GDIPlus_ImageGetGraphicsContext($hBuffer) $hMatrix = _GDIPlus_MatrixCreate() _GDIPlus_MatrixRotate($hMatrix, 20) _GDIPlus_GraphicsSetTransform($hGraphic, $hMatrix) _GDIPlus_GraphicsDrawImage($hGraphic, $hImage, 150, 0) $hGUI = GUICreate("test") GUISetState() $hGraph = _GDIPlus_GraphicsCreateFromHWND($hGUI) _GDIPlus_GraphicsDrawImage($hGraph, $hBuffer, 0, 0) Do Until GUIGetMsg() = -3 _GDIPlus_GraphicsDispose($hGraph) _GDIPlus_GraphicsDispose($hGraphic) _GDIPlus_ImageDispose($hImage) _GDIPlus_BitmapDispose($hBuffer) _GDIPlus_MatrixDispose($hMatrix) _GDIPlus_Shutdown()
    1 point
  3. _GDIPlus_ImageRotateFlip() ; or _GDIPlus_MatrixRotate()
    1 point
  4. You could use CAPTCHA before someone enters a certain area of your site, this generally stops most automation scripts. Search on Google for "Prevent web scraping" will give you a large number of ideas on how to prevent bots from scraping your website.
    1 point
  5. Do you open the workbook using AutoIt? How long does it take to open the workbook?
    1 point
  6. What is your requirement? What are you trying to prevent? Based on that people can give advice but I also guess only checking mouse behaviour will give you an educated guess it its human moving mouse or some robot/automated solution.
    1 point
  7. @faustf Try to activate IE window first WinSetOnTop(WinActivate("[CLASS:IEFrame]"), "", 1)
    1 point
  8. Run commands don't like spaces in paths unless you add quotes around it. ..same is true through the command line Example $s = '"./some dir/some.exe"' Or, on the run itself: Run ('"' & $yourvariable & '"')
    1 point
  9. In future it would be better to post executable code as you probably would get more help. With that being said I assume you were after something like below? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #include <ListViewConstants.au3> Local $iSelection = "", $aSelection = "" Local $hGui = GUICreate("Benutzersteuerung", 612, 460, 189, 132) GUICtrlCreateLabel("Vorname", 12, 8, 70, 17) Local $idFirstName = GUICtrlCreateInput("", 90, 4, 146, 21) GUICtrlCreateLabel("Nachname", 12, 32, 70, 17) Local $idLastName = GUICtrlCreateInput("", 90, 28, 146, 21) GUICtrlCreateLabel("Badgenummer", 12, 56, 70, 17) Local $idBadgeNumber = GUICtrlCreateInput("", 90, 52, 146, 21) Local $idAddButton = GUICtrlCreateButton("ADD", 266, 8, 60, 25) Local $idDelButton = GUICtrlCreateButton("DEL", 330, 8, 60, 25) Local $idModButton = GUICtrlCreateButton("MOD", 266, 40, 60, 25) Local $idSearchButton = GUICtrlCreateButton("SEARCH", 330, 40, 60, 25) Local $idListView = GUICtrlCreateListView("Badgenummer|Vorname|Nachname", 0, 75, 609, 383, BitOR($LVS_EDITLABELS, $LVS_SINGLESEL)) _GUICtrlListView_SetColumnWidth($idListView, 0, 150) GUISetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $idAddButton $sGuiInputData = "" $sGuiInputData &= GUICtrlRead($idFirstName) & "|" $sGuiInputData &= GUICtrlRead($idLastName) & "|" $sGuiInputData &= GUICtrlRead($idBadgeNumber) GUICtrlCreateListViewItem($sGuiInputData, $idListView) GUICtrlSetData($idFirstName, "") GUICtrlSetData($idLastName, "") GUICtrlSetData($idBadgeNumber, "") Case $idDelButton _GUICtrlListView_DeleteItemsSelected($idListView) Case $idModButton Switch GUICtrlRead($idModButton) Case "Mod" $iSelection = _GUICtrlListView_GetSelectionMark($idListView) If $iSelection = -1 Then ContinueLoop $aSelection = _GUICtrlListView_GetItemTextArray($idListView, $iSelection) If $aSelection[0] = 0 Then ContinueLoop GUICtrlSetState($idAddButton, $GUI_DISABLE) GUICtrlSetState($idDelButton, $GUI_DISABLE) GUICtrlSetState($idSearchButton, $GUI_DISABLE) GUICtrlSetData($idModButton, "Update") GUICtrlSetData($idFirstName, $aSelection[1]) GUICtrlSetData($idLastName, $aSelection[2]) GUICtrlSetData($idBadgeNumber, $aSelection[3]) Case "Update" _GUICtrlListView_SetItemText($idListView, $iSelection, GUICtrlRead($idFirstName), 0) _GUICtrlListView_SetItemText($idListView, $iSelection, GUICtrlRead($idLastName), 1) _GUICtrlListView_SetItemText($idListView, $iSelection, GUICtrlRead($idBadgeNumber), 2) GUICtrlSetData($idModButton, "Mod") GUICtrlSetState($idAddButton, $GUI_ENABLE) GUICtrlSetState($idDelButton, $GUI_ENABLE) GUICtrlSetState($idSearchButton, $GUI_ENABLE) $iSelection = "" $aSelection = "" EndSwitch EndSwitch WEnd
    1 point
  10. trancexx

    WinHTTP functions

    Constants are defined inside WinHttpConstants.au3. ;... Global Const $WINHTTP_FLAG_SECURE_PROTOCOL_SSL2 = 0x00000008 Global Const $WINHTTP_FLAG_SECURE_PROTOCOL_SSL3 = 0x00000020 Global Const $WINHTTP_FLAG_SECURE_PROTOCOL_TLS1 = 0x00000080 Global Const $WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 = 0x00000200 Global Const $WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 = 0x00000800 Global Const $WINHTTP_FLAG_SECURE_PROTOCOL_ALL = 0x000000A8 ;... If you need TLS1.1 and TLS1_2 just BitOR them with the other.
    1 point
  11. Did you try my ADO.au3 udf ?
    1 point
  12. Things changed since 2005. Object-oriented syntax is an hour away. Unfortunately there is no one to drive the car. Arguments used 5-6 years ago aren't valid today, this is proven fact. Anyone not accepting that is just plain ignorant. Another unfortunate thing is there are lot of those. edit: excepting
    1 point
×
×
  • Create New...