Jump to content

Leaderboard

Popular Content

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

  1. DXRW4E

    Download Windows 7 image

    http://www.heidoc.net/joomla/technology-science/microsoft/14-windows-7-direct-download-links Ciao.
    1 point
  2. Valik

    saulik

    48 hour ban. I locked two of the user's threads since they were duplicates of each other. Both of them had answers to the question so it wasn't clear which one to leave open. I didn't feel like merging the threads. The user PMed me to inquire why I closed both threads. My response was: The user then followed that up... by sending me a new PM asking for help with their problem. Unsolicited PMs after I explicitly stated not to PM me is not smart.
    1 point
  3. Valik

    saulik

    Extended to 5 days for sending another PM.
    1 point
  4. _RecFileListToArray allows you to specify an argument to get the entire path of the files (which is probably what you want.) Rewrite it as: $files = _RecFileListToArray("C:", "*.pst", 1, 0, 0, 2) And it should work as is. Edit: =/
    1 point
  5. You would have to include the whole path in your FileCopy, since _RecFileListToArray returns just the file name. This works for me, copying from a folder with a number of .pst files in it. #include <RecFileListToArray.au3> #include <Array.au3> Local $files = _RecFileListToArray(@DesktopDir & "Test", "*.pst", 1, 0) _ArrayDisplay($files) For $element in $files FileCopy(@DesktopDir & "Test" & $element, "C:PSTs", 8) Next Edit: obviously if you're trying to scan the entire drive for the .pst files, rather than just one or two directories, this may not be the best solution.
    1 point
  6. UEZ

    Editable Label

    Thanks MrCreatoR, I searched for something like GUICtrlSetStyle() but found first _WinAPI_SetWindowLong()... Here the code with GUICtrlSetStyle(): #include <Constants.au3> #include <EditConstants.au3> #include <WinAPI.au3> #include <GUIConstantsEx.au3> Global $Data, $Label, $sData, $iExStyle, $iStyle, $hGUI, $hData, $State, $Set $hGUI = GUICreate("Example", 500, 500) $Data = GUICtrlCreateEdit("Write something in here and hit lock.", 0, 0, 500, 480) $hData = GUICtrlGetHandle($Data) $State = GUICtrlCreateButton("Lock", 0, 480, 500, 20) GUISetState(@SW_SHOW) $iStyle = _WinAPI_GetWindowLong($hData, $GWL_STYLE ) $iExStyle = _WinAPI_GetWindowLong($hData, $GWL_EXSTYLE) $Set = 0 While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $State If $Set = 0 Then GUICtrlSetStyle($Data, $iStyle + $ES_READONLY) GUICtrlSetData($State, "Unlock") $sData = GUICtrlRead($Data) $Set = 1 ElseIf $Set = 1 Then GUICtrlSetStyle($Data, $iStyle) GUICtrlSetData($State, "Lock") $Set = 0 Else ; _Error() Exit EndIf EndSwitch WEnd Br, UEZ
    1 point
  7. MrCreatoR

    Editable Label

    What wrong with GUICtrlSetStyle($Data, BitOR($iStyle, $ES_READONLY))? #include <GUIConstantsEx.au3> #include <EditConstants.au3> $hGUI = GUICreate("Example", 500, 500) $iData = GUICtrlCreateEdit("Write something in here and hit lock.", 0, 0, 500, 480) $iState = GUICtrlCreateButton("Lock", 0, 480, 500, 20) GUISetState(@SW_SHOW) $iSet = 0 While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $iState Local $aData[2][2] = [[$ES_READONLY, 0], ["Unlock", "Lock"]] GUICtrlSetStyle($iData, BitOR($GUI_SS_DEFAULT_EDIT, $aData[0][$iSet])) GUICtrlSetData($iState, $aData[1][$iSet]) $iSet = Number(Not $iSet) EndSwitch WEnd
    1 point
  8. MrCreatoR

    Editable Label

    I thought it would be something like this: #include <GUIConstantsEx.au3> #include <EditConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Misc.au3> #include <WinAPI.au3> $hGUI = GUICreate("Example", 500, 500) $iLabel = GUICtrlCreateLabel("Some data, right click to show the menu.", 20, 20, 460, 40) $iMenu = GUICtrlCreateContextMenu($iLabel) $iRename_MItem = GUICtrlCreateMenuItem("Rename", $iMenu) GUISetState(@SW_SHOW) While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit Case $iRename_MItem GUICtrlSetState($iLabel, $GUI_HIDE) $aCtrlPos = ControlGetPos($hGUI, '', $iLabel) $iEdit = GUICtrlCreateEdit(GUICtrlRead($iLabel), $aCtrlPos[0], $aCtrlPos[1], $aCtrlPos[2]+5, $aCtrlPos[3]+5, BitOR($ES_WANTRETURN, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL)) $hEdit = GUICtrlGetHandle($iEdit) While 1 Sleep(10) $tPoint = _WinAPI_GetMousePos() If _WinAPI_WindowFromPoint($tPoint) <> $hEdit And (_IsPressed('01') Or _IsPressed('1B')) Then ExitLoop EndIf WEnd GUICtrlSetData($iLabel, GUICtrlRead($iEdit)) GUICtrlDelete($iEdit) GUICtrlSetState($iLabel, $GUI_SHOW) EndSwitch WEnd
    1 point
  9. MvGulik

    Auto IT..Best thing.

    Hnit: usng IT instd of It givs serios cred dran. (Same for general AutoIt opensource suggestion btw.) Where is that junk coming from. Can't be Google as its only giving one hit one it ... this topic. (That's with the quotes of course.)
    1 point
×
×
  • Create New...