Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/30/2012 in all areas

  1. Andreik

    Random C++ Questions

    Error 997 it means: Overlapped I/O operation is in progress. What flag are you use as parameter for InternetOpen() function?
    2 points
  2. monoceres

    DirectShow UDF

    Hi. This is a fully capable DirectShow UDF that allows you to play videos in a window using available filters on the local system. The UDF consist of a dll (written by me, source is given on demand and reason) and a au3 file that acts as an interface between you and the dll. The included example is very, very basic, for more detailed usage and tips on how to solve things look at the AAA Player, which is the reason this dll exists in the first place. Have fun, and if there's any questions, don't hesitate to ask! DSEngine.zip Ps. trancexx, I removed the resources from this one
    1 point
  3. Very nice! thank you for sharing it.
    1 point
  4. Might be useful: Func ControlsGetMinMaxPos($hWnd) Local $iPosX_Min = 0xFFFF, $iPosX_Max, $iPosY_Min = 0xFFFF, $iPosY_Max Local $hChild = _WinAPI_GetWindow($hWnd, $GW_CHILD) Do $aRect = ControlGetPos($hChild, "", 0) If $aRect[0] < $iPosX_Min Then $iPosX_Min = $aRect[0] If $aRect[1] < $iPosY_Min Then $iPosY_Min = $aRect[1] If $aRect[0] + $aRect[2] > $iPosX_Max Then $iPosX_Max = $aRect[0] + $aRect[2] If $aRect[1] + $aRect[3] > $iPosY_Max Then $iPosY_Max = $aRect[1] + $aRect[3] $hChild = _WinAPI_GetWindow($hChild, $GW_HWNDNEXT) Until Not $hChild Local $aMinMax[4] = [$iPosX_Min, $iPosY_Min, $iPosX_Max, $iPosY_Max] Return $aMinMax EndFunc Br, UEZ
    1 point
  5. absadjak12, And before you ask: ;=============================================================================== ; Function Name: _MouseClickPlus() ; Version added: 0.1 ; Description: Sends a click to window, not entirely accurate, but works ; minimized. ; Parameter(s): $Window = Title of the window to send click to ; $Button = "left" or "right" mouse button ; $X = X coordinate ; $Y = Y coordinate ; $Clicks = Number of clicks to send ; Remarks: You MUST be in "MouseCoordMode" 0 to use this without bugs. ; Author(s): Insolence <insolence_9@yahoo.com> ;=============================================================================== Func _MouseClickPlus($Window, $Button = "left", $X = "", $Y = "", $Clicks = 1) Local $MK_LBUTTON = 0x0001 Local $WM_LBUTTONDOWN = 0x0201 Local $WM_LBUTTONUP = 0x0202 Local $MK_RBUTTON = 0x0002 Local $WM_RBUTTONDOWN = 0x0204 Local $WM_RBUTTONUP = 0x0205 Local $WM_MOUSEMOVE = 0x0200 Local $i = 0 Select Case $Button = "left" $Button = $MK_LBUTTON $ButtonDown = $WM_LBUTTONDOWN $ButtonUp = $WM_LBUTTONUP Case $Button = "right" $Button = $MK_RBUTTON $ButtonDown = $WM_RBUTTONDOWN $ButtonUp = $WM_RBUTTONUP EndSelect If $X = "" Or $Y = "" Then $MouseCoord = MouseGetPos() $X = $MouseCoord[0] $Y = $MouseCoord[1] EndIf For $i = 1 To $Clicks DllCall("user32.dll", "int", "SendMessage", _ "hwnd", WinGetHandle($Window), _ "int", $WM_MOUSEMOVE, _ "int", 0, _ "long", _MakeLong($X, $Y)) DllCall("user32.dll", "int", "SendMessage", _ "hwnd", WinGetHandle($Window), _ "int", $ButtonDown, _ "int", $Button, _ "long", _MakeLong($X, $Y)) DllCall("user32.dll", "int", "SendMessage", _ "hwnd", WinGetHandle($Window), _ "int", $ButtonUp, _ "int", $Button, _ "long", _MakeLong($X, $Y)) Next EndFunc ;==>_MouseClickPlus Func _MakeLong($LoWord, $HiWord) Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF)) EndFunc ;==>_MakeLong And I have no idea if it works so please do not complain if it does not. M23
    1 point
×
×
  • Create New...