Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/13/2017 in all areas

  1. Somerset

    For Next Error

    I'm gonna keep that as a screenshot.
    2 points
  2. trashy

    Easy_DISM

    Version 2.5.5

    1,695 downloads

    Easy_DISM Striving to be the Best and Easiest to use DISM GUI available! On first run Easy_DISM will open to Config Tab. Advanced Settings you can change start tab to suit your needs. Windows 7 DISM = v 6.1 Windows 8.1 DISM = v 6.3 Windows 10 DISM = v 10 DISM Path Windows 7 Default = @ProgramData ( Dism 10 ) Windows 8.1 and 10 Default = @SystemDir Starting to see Dism commands that are specific to DISM v10 Example; Export ESD to WIM Windows 8.1 recommend install DISM 10 and change DISM Path to @ProgramData only when necessary
    1 point
  3. trashy

    Easy_DISM

    Easy_Dism Primary goal is an easy to use, user friendly interface! For amateur and expert alike. Download Page Windows 8.1 and 10 you can now run Easy_DISM from anywhere. No need to add dism files to Easy_DISM folder. Requirement: For Windows 7 only, Dism files Must be located in Easy_DISM folder. Reason for this gives the ability to use Easy_DISM from any version Windows OS or PE Recommend DISM 10 and can be used on any Windows Image from 7 to 10 (Probably add Vista also). Use Get Waik Tools "Thanks to JFX" and download Dism for 10. Download GetWaik Restrictions: Easy_DISM Program folder must not contain any blank spaces in path! If running from PE just use the plugin and everything will be done automatically. http://theoven.org/index.php?topic=955.msg11799#msg11799 Easy_DISM v2.5 Added AppPkg Tab. This was all for Subz and created by Subz. Primary focus on removing Apps and the process he came up with is really simple to use. Add AppPkgs Untested and I won't pursue unless requested. Program Update: In Windows 8.1 and 10 No longer necessary to run from same folder as DISM files. Removed Edit tab and need for Imagex. Easy_DISM v2.4.1 Thanks to Subz new process sorting exported drivers New folder structure will be SaveFolder\ClassName\ProviderName\blahblahblah\driverfiles Easy_DISM v2.4 New Progress Bar! Driver Export\Import Now uses PnPutil as default installer available in all Windows and PE SE projects DPinst option still available Easy_DISM v2.3 Added a Progress Bar and eliminated Cmd Window all tabs except pkgs and features. As I added Progress Bar and testing fixed a few bugs already present and fixed any new bugs caused by the new addition (I Hope). Biggest source of problems has always been spaces in file path so if you find any let me know.
    1 point
  4. The video is a good demonstration of your findings. It seemed to misbehave when I tried it too. Unfortunately the code does not appear to be available for the Window Info Tool. Let's see what other people have to say about it. I still think that the IE functions might be more suitable for your requirements (rather than using pixel functions).
    1 point
  5. or search in forum _GDIPlus_BitmapLockBits will give you alternatives to scan yourself any bitmap
    1 point
  6. Ok, here is the skinny. The settings for auto hiding the taskbar are not as simple as on / off unless you use the "built in" function. Changing the registry requires you to kill the 'explorer.exe' process and reload it for the changes to happen.. Sucks.. So.. Here is a quick and dirty work around. It will do the mouse movements to accomplish what you want, if your taskbar is on the bottom. It's not the ideal solution but works. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Run_Tidy=y #Tidy_Parameters=/tc 4 /reel #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client Local $Properties HotKeySet("{ESC}", "_Quit") Run("Notepad.exe") While 1 Sleep(10) If ProcessExists("Notepad.exe") Then _HideTaskBar() _Quit() EndIf WEnd Func _HideTaskBar() $x = @DesktopWidth / 2 $y = @DesktopHeight - 1 MouseClick("right", $x, $y, 1, 1) MouseClick("left", $x + 5, $y - 5, 1, 1) Sleep(100) If WinExists("Taskbar and Start Menu Properties") Then $Properties = WinGetPos("Taskbar and Start Menu Properties") WinActivate("Taskbar and Start Menu Properties") MouseClick("left", $Properties[0] + 45, $Properties[1] + 118, 1, 1) Send("{ENTER}") EndIf EndFunc ;==>_HideTaskBar Func _Quit() Exit EndFunc ;==>_Quit
    1 point
  7. Could always use taskbar control. Hot key to hide show taskbar. http://www.thefreewindows.com/3252/hide-completely-the-windows-taskbar-using-a-hotkey-and-unhide-it-with-taskbar-control/
    1 point
  8. Another option would be to just loop until the command fails: $i = 0 $oForm = _IEGetObjById($oIE,"bulk-action-form") While 1 _IEFormElementCheckBoxSelect($oForm,$i,"", 1, "byIndex") If @error Then ExitLoop $i += 1 WEnd
    1 point
  9. Ok... Looks like you are using the wrong commands. Try this piece of untested code: $cnt = 0 $oForm = _IEGetObjById($oIE,"bulk-action-form") $oElements = _IEFormElementGetCollection($oForm, -1) For $oElement In $oElements If $oElement.type = "checkbox" Then $cnt += 1 EndIf Next MsgBox(64, $cnt, "Checkbox count")
    1 point
  10. Have you looked at the YouTube API? https://developers.google.com/youtube/v3/guides/implementation/videos#videos-retrieve-uploads I would suggest using "winhttp.winhttprequest.5.1" for the requests and "ScriptControl" for parsing the JSON.
    1 point
  11. There's a couple ways you can remove the style. This is the easiest (to understand), just save the default styles when the window is created #include <GuiRichEdit.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> $hGUI = GUICreate("RichEdit Style", 500, 500, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "Test", 20,40,460,400) $iExStyle = _WinAPI_GetWindowLong($hRichEdit, $GWL_EXSTYLE) GUISetState(@SW_SHOW, $hGUI) MsgBox("", "", "Default") _WinAPI_SetWindowLong($hRichEdit, $GWL_EXSTYLE, BitOR(_WinAPI_GetWindowLong($hRichEdit, $GWL_EXSTYLE), $WS_EX_TRANSPARENT)) MsgBox("", "", "WS_EX_TRANSPARENT added") _WinAPI_SetWindowLong($hRichEdit, $GWL_EXSTYLE, $iExStyle) MsgBox("", "", "WS_EX_TRANSPARENT removed") The other way is to subtract the style #include <GuiRichEdit.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> $hGUI = GUICreate("RichEdit Style", 500, 500, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "Test", 20,40,460,400) GUISetState(@SW_SHOW, $hGUI) MsgBox("", "", "Default") _WinAPI_SetWindowLong($hRichEdit, $GWL_EXSTYLE, BitOR(_WinAPI_GetWindowLong($hRichEdit, $GWL_EXSTYLE), $WS_EX_TRANSPARENT)) MsgBox("", "", "WS_EX_TRANSPARENT added") _WinAPI_SetWindowLong($hRichEdit, $GWL_EXSTYLE, _WinAPI_GetWindowLong($hRichEdit, $GWL_EXSTYLE) - $WS_EX_TRANSPARENT) ; Or use the BitXO operation ; _WinAPI_SetWindowLong($hRichEdit, $GWL_EXSTYLE, BitXOR(_WinAPI_GetWindowLong($hRichEdit, $GWL_EXSTYLE), $WS_EX_TRANSPARENT)) MsgBox("", "", "WS_EX_TRANSPARENT removed") Or, some easy to use functions #include <GuiRichEdit.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> $hGUI = GUICreate("RichEdit Style", 500, 500, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "Test", 20,40,460,400) GUISetState(@SW_SHOW, $hGUI) MsgBox("", "", "Default") GUIAddExStyle($hRichEdit, $WS_EX_TRANSPARENT) MsgBox("", "", "WS_EX_TRANSPARENT added") GUIRemoveExStyle($hRichEdit, $WS_EX_TRANSPARENT) MsgBox("", "", "WS_EX_TRANSPARENT removed") Func GUIAddStyle($hWnd, $iStyle) Return _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, BitOR(_WinAPI_GetWindowLong($hWnd, $GWL_STYLE), $iStyle)) EndFunc Func GUIRemoveStyle($hWnd, $iStyle) Return _WinAPI_SetWindowLong($hWnd, $GWL_STYLE, BitXOR(_WinAPI_GetWindowLong($hWnd, $GWL_STYLE), $iStyle)) EndFunc Func GUIAddExStyle($hWnd, $iExStyle) Return _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, BitOR(_WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE), $iExStyle)) EndFunc Func GUIRemoveExStyle($hWnd, $iExStyle) Return _WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, BitXOR(_WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE), $iExStyle)) EndFunc
    1 point
  12. water

    AutoIt Snippets

    My 2 cents worth: Describing the snippet as almost useless and then link people to Github from a thread that was created to post code is a bit of an overhead, isn't it? ; #FUNCTION# ==================================================================================================================== ; Name ..........: IniReadWrite ; Description ...: Write the default value to Ini if it does not exist ; Syntax ........: IniReadWrite($sFile, $sSection, $sKey, $sDefault) ; Parameters ....: $sFile - The path for the .ini file. ; $sSection - The section name in the .ini file. ; $sKey - The key name in the .ini file. ; $sDefault - The default value. ; Return values .: The value of the $sKey in the Ini file or $sDefault if the $sKey does not exists ; Author ........: Damon Harris (TheDcoder) ; Remarks .......: PRO TIP: IniReadWrite is fully compatible with IniRead (i.e Same parameters) ; Related .......: IniRead and IniWrite ; Link ..........: https://gist.github.com/TheDcoder/b5035d600b7a130ea45311541a15a555 ; Example .......: No ; =============================================================================================================================== Func IniReadWrite($sFile, $sSection, $sKey, $sDefault) Local $sIniRead = IniRead($sFile, $sSection, $sKey, "") If Not $sIniRead = "" Then Return $sIniRead IniWrite($sFile, $sSection, $sKey, $sDefault) Return $sDefault EndFunc Does a four liner with more documentation than code need to be packed into a ZIP fil including a license file? With Git you spread code all over the world. Sometimes it's hard to remember where on the AutoIt website (forum, wiki ...) some code can be found. In your words: "almost useless"
    1 point
  13. Subz

    Recursive file search

    Suggest running "Dism /Image:<ImagePath> /Get-Drivers" from an elevated command prompt to see exactly what drivers are stored in the image and get further information regarding versions etc... If you can post the results that would be great. WIth regards to the script, I suggest we just use DirMove rather than FileCopy it would get around the SourceDiskFiles issue and you no longer have to delete the directory if it exists. It should also be alot quicker since the move is occurring in the same folder, something like: #include <Array.au3> #include <File.au3> Global $hSRC_FILEPATH = 'D:\Drivers', $hDST_FILEPATH = 'D:\NewDriver', $aSRC_DISKFILE Global $aSRC_FILEPATH = _FileListToArrayRec ($hSRC_FILEPATH, "*.inf", 1, 1, 1, 1) Global $aINF_FILEINFO[UBound($aSRC_FILEPATH)][5] For $i = 1 To $aSRC_FILEPATH[0] ;~ .inf Source File Path $aINF_FILEINFO[$i][0] = $hSRC_FILEPATH & '\' & $aSRC_FILEPATH[$i] ;~ .inf Class name $aINF_FILEINFO[$i][1] = _FNC_INFCLEAN(IniRead($aINF_FILEINFO[$i][0], 'Version', 'Class', 'Misc')) ;~ .inf Provider name $aINF_FILEINFO[$i][2] = _FNC_INFCLEAN(IniRead($aINF_FILEINFO[$i][0], 'Version', 'Provider', 'Unknown_Provider')) ;~ .inf Source Folder Path $aINF_FILEINFO[$i][3] = $hSRC_FILEPATH & '\' & StringLeft($aSRC_FILEPATH[$i], StringInStr($aSRC_FILEPATH[$i], '\', 0, -1) - 1) ;~ .inf Destination Folder Path $aINF_FILEINFO[$i][4] = $hDST_FILEPATH & '\' & $aINF_FILEINFO[$i][1] & '\' & StringLeft($aSRC_FILEPATH[$i], StringInStr($aSRC_FILEPATH[$i], '\', 0, -1) - 1) Next _ArraySort($aINF_FILEINFO, 0, 1, 0, 1) $aINF_FILEINFO[0][0] = UBound($aINF_FILEINFO) - 1 SplashTextOn('Move Driver Folders', '', 700, 100, -1, -1, 4, 'Trebuchet MS') For $i = 1 To $aINF_FILEINFO[0][0] ControlSetText('Move Driver Folders', '', 'Static1', 'Moving: ' & $aINF_FILEINFO[$i][3] & @CRLF & @CRLF & 'To: ' & $aINF_FILEINFO[$i][4], $aINF_FILEINFO[$i][4]) DirMove($aINF_FILEINFO[$i][3], $aINF_FILEINFO[$i][4], 1) Next SplashOff() Func _FNC_INFCLEAN($sINF_CLASSNAME) $sINF_CLASSNAME = StringStripWS($sINF_CLASSNAME, 7) $sINF_CLASSNAME = StringReplace($sINF_CLASSNAME, '"', '') $sINF_CLASSNAME = StringReplace($sINF_CLASSNAME, '%', '') Return $sINF_CLASSNAME EndFunc
    1 point
×
×
  • Create New...