Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/29/2011 in all areas

  1. I wish I could remove AU3Record.exe from the package. And not piss off a flock of retards. A paraphrase.
    3 points
  2. This thread is to be used for reporting issues and/or code improvements for the AutoIt Help file only. Up until now those that have posted have done so in a clear and concise manner, so lets keep it that way. If this starts to deviate in any way then I will be forced to adopt a similar approach as Trac does. Issue with AutoIt: For reporting an issue with AutoIt ensure you've isolated the problem in a small script that reproduces the error, assessed in the General Help and Support Forum that it's not a problem with poorly written code and then if none of those fix the problem post to Trac for an AutoIt Developer to assess the issue.
    1 point
  3. Exit

    Identify Control Tool

    Cntl+F6 in SciTE4Autoit (full version) or "C:\Program Files (x86)\AutoIt3\Au3Info.exe"
    1 point
  4. A quick search of the forum and you would've found this >> (posted yesterday)
    1 point
  5. i failed my 000-M601 exam,i have the practice exam from bookmarket i was doing good on that but when i took the 000-M601 exam how they ask u questions was totally different i was lost i need all the help i can get to what materials i should get to study for this exam thanks
    1 point
  6. Yashied

    WinAPIEx UDF

    The library has been updated. v3.6 Now you can download WinAPIEx library for AutoIt 3.3.6.1 and 3.3.8.0 separately (see first post). Also redesigned Help file for 3.3.8.0 like latest version of AutoIt.
    1 point
  7. Help File Documentation - Reference to Windows 95 There is a reference to a fail situation in the Limits/Defaults section regarding values greater than 32768 in respect of WINTEXTBUFFER. As support for Windows '98 is gone then I thought that reference to W '95 was also no longer needed in the help file. http://www.autoitscript.com/autoit3/docs/appendix/LimitsDefaults.htm Apologies if this is too minor an issue to mention. Regards, DeMo.
    1 point
  8. Here's my current UDF and an example. _FileMapping.au3 FileMapExample.au3
    1 point
  9. @wraithdu Yes it would be interesting to see if anything there could be used. Attached is the latest sources I've used. Resident data extraction is the latest fix. NTFS_271211.zip
    1 point
  10. Yashied

    Button Text Color

    Another way. #Include <GUIConstantsEx.au3> #Include <GUIButton.au3> #Include <GUIImageList.au3> #Include <WinAPI.au3> #Include <WindowsConstants.au3> GUICreate('MyGUI', 200, 200) GUICtrlCreateButton('', 65, 170, 70, 23) _GUIButtonSetTextColor(-1, 'OK', 0xFF0000) GUISetState() Do Until GUIGetMsg() = -3 Func _GUIButtonSetTextColor($iCtrlID, $sText, $iTextColor) Local $hWnd, $hTheme, $hImageList, $hBitmap, $hObj, $hDC, $hMemDC, $tRect, $pRect, $Data, $Width, $Height, $Prev = -1 $hWnd = GUICtrlGetHandle($iCtrlID) If Not $hWnd Then Return 0 EndIf $hTheme = DllCall('uxtheme.dll', 'ptr', 'OpenThemeData', 'hwnd', $hWnd, 'wstr', 'Button') If (@error) Or (Not $hTheme[0]) Then GUICtrlSetColor($iCtrlID, $iTextColor) GUICtrlSetData($iCtrlID, $sText) Return 1 EndIf $hTheme = $hTheme[0] $Width = _WinAPI_GetClientWidth($hWnd) $Height = _WinAPI_GetClientHeight($hWnd) $hImageList = _GUIImageList_Create($Width - 8, $Height - 8, 4, 4) $hBitmap = _WinAPI_CreateBitmap($Width - 8, $Height - 8, 1, 32) $tRect = DllStructCreate('int[4]') DllStructSetData($tRect, 1, -4, 1) DllStructSetData($tRect, 1, -4, 2) DllStructSetData($tRect, 1, $Width - 4, 3) DllStructSetData($tRect, 1, $Height - 4, 4) $pRect = DllStructGetPtr($tRect) $hDC = _WinAPI_GetDC(0) $hMemDC = _WinAPI_CreateCompatibleDC($hDC) _WinAPI_ReleaseDC(0, $hDC) _WinAPI_SelectObject($hMemDC, _SendMessage($hWnd, $WM_GETFONT)) _WinAPI_SetTextColor($hMemDC, BitOR(BitAND($iTextColor, 0x00FF00), BitShift(BitAND($iTextColor, 0x0000FF), -16), BitShift(BitAND($iTextColor, 0xFF0000), 16))) _WinAPI_SetBkMode($hMemDC, $TRANSPARENT) ; PBS_NORMAL $hObj = _WinAPI_SelectObject($hMemDC, $hBitmap) DllCall('uxtheme.dll', 'int', 'DrawThemeBackground', 'ptr', $hTheme, 'hwnd', $hMemDC, 'int', 1, 'int', 1, 'ptr', $pRect, 'ptr', 0) _WinAPI_DrawText($hMemDC, $sText, $tRect, BitOR($DT_CENTER, $DT_SINGLELINE, $DT_VCENTER)) _WinAPI_SelectObject($hMemDC, $hObj) _GUIImageList_Add($hImageList, $hBitmap) ; PBS_HOT $hObj = _WinAPI_SelectObject($hMemDC, $hBitmap) DllCall('uxtheme.dll', 'int', 'DrawThemeBackground', 'ptr', $hTheme, 'hwnd', $hMemDC, 'int', 1, 'int', 2, 'ptr', $pRect, 'ptr', 0) _WinAPI_DrawText($hMemDC, $sText, $tRect, BitOR($DT_CENTER, $DT_SINGLELINE, $DT_VCENTER)) _WinAPI_SelectObject($hMemDC, $hObj) _GUIImageList_Add($hImageList, $hBitmap) ; PBS_PRESSED $hObj = _WinAPI_SelectObject($hMemDC, $hBitmap) DllCall('uxtheme.dll', 'int', 'DrawThemeBackground', 'ptr', $hTheme, 'hwnd', $hMemDC, 'int', 1, 'int', 3, 'ptr', $pRect, 'ptr', 0) _WinAPI_DrawText($hMemDC, $sText, $tRect, BitOR($DT_CENTER, $DT_SINGLELINE, $DT_VCENTER)) _WinAPI_SelectObject($hMemDC, $hObj) _GUIImageList_Add($hImageList, $hBitmap) ; PBS_DISABLED $hObj = _WinAPI_SelectObject($hMemDC, $hBitmap) DllCall('uxtheme.dll', 'int', 'DrawThemeBackground', 'ptr', $hTheme, 'hwnd', $hMemDC, 'int', 1, 'int', 4, 'ptr', $pRect, 'ptr', 0) $Data = DllCall('uxtheme.dll', 'int', 'GetThemeColor', 'ptr', $hTheme, 'int', 1, 'int', 4, 'int', 3803, 'dword*', 0) If (Not @error) And (Not $Data[0]) Then $Prev = _WinAPI_SetTextColor($hMemDC, $Data[5]) EndIf _WinAPI_DrawText($hMemDC, $sText, $tRect, BitOR($DT_CENTER, $DT_SINGLELINE, $DT_VCENTER)) If $Prev > -1 Then _WinAPI_SetTextColor($hMemDC, $Prev) EndIf _WinAPI_SelectObject($hMemDC, $hObj) _GUIImageList_Add($hImageList, $hBitmap) ; PBS_DEFAULTED $hObj = _WinAPI_SelectObject($hMemDC, $hBitmap) DllCall('uxtheme.dll', 'int', 'DrawThemeBackground', 'ptr', $hTheme, 'hwnd', $hMemDC, 'int', 1, 'int', 5, 'ptr', $pRect, 'ptr', 0) _WinAPI_DrawText($hMemDC, $sText, $tRect, BitOR($DT_CENTER, $DT_SINGLELINE, $DT_VCENTER)) _WinAPI_SelectObject($hMemDC, $hObj) _GUIImageList_Add($hImageList, $hBitmap) _WinAPI_DeleteDC($hMemDC) _WinAPI_DeleteObject($hBitmap) DllCall('uxtheme.dll', 'int', 'CloseThemeData', 'ptr', $hTheme) $Data = _GUICtrlButton_GetImageList($hWnd) If $Data[0] Then _GUIImageList_Destroy($Data[0]) EndIf GUICtrlSetData($iCtrlID, '') If Not _GUICtrlButton_SetImageList($hWnd, $hImageList, 4) Then _GUIImageList_Destroy($hImageList) Return 0 EndIf Return 1 EndFunc ;==>_GUIButtonSetTextColor
    1 point
  11. You can use a For-loop: #include <GUIConstantsEx.au3> GUICreate("Test", 320, 320) $chkUseProgram = GUICtrlCreateCheckbox("Program", 20, 35, 110, 17) $lblBasic = GUICtrlCreateLabel("Basic Options:", 20, 57, 80, 17) GUICtrlSetColor(-1, 0xff0000) $lblProgramPath = GUICtrlCreateLabel("Exe path:", 50, 74, 80, 17) $txtProgramPath = GUICtrlCreateInput("", 105, 71, 129, 19) $cmdProgramPath = GUICtrlCreateButton("...", 238, 71, 20, 19) $lblProfile = GUICtrlCreateLabel(" Profile to load:", 25, 96, 80, 17) $txtProfile = GUICtrlCreateInput("", 105, 94, 129, 19) $cmdProfile = GUICtrlCreateButton("...", 238, 94, 20, 19) $lblBatchPath = GUICtrlCreateLabel("Batch path:", 39, 119, 80, 17) $txtBatchPath = GUICtrlCreateInput("", 105, 117, 129, 19) $cmdSelectBatchPath = GUICtrlCreateButton("...", 238, 117, 20, 19) For $X = $lblProgramPath To $cmdSelectBatchPath GUICtrlSetState($X, $GUI_DISABLE) Next GUISetState() While 1 Switch GUIGetMsg() Case $chkUseProgram If BitAnd(GUICtrlRead($chkUseProgram),$GUI_CHECKED) Then For $X = $lblProgramPath To $cmdSelectBatchPath GUICtrlSetState($X, $GUI_ENABLE) Next Else For $X = $lblProgramPath To $cmdSelectBatchPath GUICtrlSetState($X, $GUI_DISABLE) Next EndIf Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
    1 point
×
×
  • Create New...