Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/08/2012 in all areas

  1. http://www.codematterings.com/uncategorized/autoit-corner
    1 point
  2. guinness

    Show a GIF in the gui.

    Thanks, I saw the other 2 posts as well!
    1 point
  3. guinness

    Gifs in Autoit?

    This isn't the first time Belini has done this. I'm surprised he didn't find
    1 point
  4. Once you have looked up the references to the help file as BrewManNH suggests, take a look at FTYPE in Windows XP. You can use this to easily change the file type association.
    1 point
  5. guinness

    get type control

    Was in the progress of creating this >> #include <ButtonConstants.au3> #include <Constants.au3> #include <WinAPI.au3> Example() Func Example() Local $hGUI = GUICreate('') Local $iLabel = GUICtrlCreateButton('', 0, 0, 50, 50) Local $iCheckbox = GUICtrlCreateCheckbox('', 0, 0, 100, 20) ; This is considered a 'Button' by _WinAPI_GetClassName too. GUISetState(@SW_SHOW, $hGUI) MsgBox(4096, '', 'AutoIt Button ID: ' & _IsButton($iLabel) & @CRLF & _ 'AutoIt Button Handle: ' & _IsButton(GUICtrlGetHandle($iLabel)) & @CRLF & _ 'AutoIt Checkbox ID: ' & _IsButton($iCheckbox) & @CRLF & _ 'AutoIt Checkbox Handle: ' & _IsButton(GUICtrlGetHandle($iCheckbox)) & @CRLF) Return GUIDelete($hGUI) EndFunc ;==>Example ; Check if a variable is referencing a Button control. Func _IsButton($hWnd) If IsHWnd($hWnd) = 0 Then $hWnd = GUICtrlGetHandle($hWnd) EndIf Local $sClassName = _WinAPI_GetClassName($hWnd) If $sClassName = 'Button' Then Local $aStyle[5] = [4, $BS_CHECKBOX, $BS_AUTOCHECKBOX, $BS_RADIOBUTTON, $BS_AUTORADIOBUTTON] Local $iLong = _WinAPI_GetWindowLong($hWnd, $GWL_STYLE) For $i = 1 To $aStyle[0] If BitAND($iLong, $aStyle[$i]) = $aStyle[$i] Then Return False EndIf Next Return True EndIf Return False EndFunc ;==>_IsButton
    1 point
×
×
  • Create New...