Leaderboard
Popular Content
Showing content with the highest reputation on 07/03/2021 in all areas
-
While this project has been open to collaboration since it was made, I thought I'd post it here since Microsoft's PC Health Check app still isn't available. WhyNotWin11 is designed to report whether or not a computer is ready for WIndows 11 Release based on official Microsoft Guidelines (which keep changing). The project has been featured on multiple tech news outlets and has ~241k github downloads, and ~60k+ downloads on mirrors. https://www,whynotwin11.org The project and program are pretty much stable right now, but there's areas that can be improved that I'd like to get done. I'm looking for people who have experience with the following: Theming / GDI+ calls, currently issues #271, #308, and #314 DXDiag / DirectX, #223 and #311 General code review This project will likely wind down once Microsoft Releases a capable PC Health Check App, but any help in the meantime is appreciated. @mLipok has already been pretty helpful so far!4 points
-
Also, the CI has been improved dramatically since WNW11, so it might be worth posting updated version here.2 points
-
this is ready to use #include <GDIPlus.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> ; #include <WinAPISysWin.au3> #include <WinAPI.au3> Global $sFileImage = @TempDir & "\Leopard.png" If Not FileExists($sFileImage) Then InetGet("http://www.pngall.com/wp-content/uploads/2/Sitting-Leopard-Transparent.png", $sFileImage) $h = _SetImage(100, 100, $sFileImage) MsgBox(0, '', "You can drag the image around" & @CRLF & "hit OK to end") ; FileDelete($sFileImage) Func _SetImage($Left, $Top, $Picture, $iOpacity = 255) _GDIPlus_Startup() Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend Local $hImage = _GDIPlus_ImageLoadFromFile($Picture) Local $iWidth = _GDIPlus_ImageGetWidth($hImage) Local $iHeight = _GDIPlus_ImageGetHeight($hImage) Local $hGUI = GUICreate('', $iWidth, $iHeight, $Left, $Top, $WS_POPUP, $WS_EX_LAYERED + $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST) Local $hLabel = GUICtrlCreateLabel('', 0, 0, $iWidth, $iHeight, -1, $GUI_WS_EX_PARENTDRAG) GUISetState(@SW_SHOW, $hGUI) $hScrDC = _WinAPI_GetDC(0) $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC) $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap) $tSize = DllStructCreate($tagSIZE) $pSize = DllStructGetPtr($tSize) DllStructSetData($tSize, "X", $iWidth) DllStructSetData($tSize, "Y", $iHeight) $tSource = DllStructCreate($tagPOINT) $pSource = DllStructGetPtr($tSource) $tBlend = DllStructCreate($tagBLENDFUNCTION) $pBlend = DllStructGetPtr($tBlend) DllStructSetData($tBlend, "Alpha", $iOpacity) DllStructSetData($tBlend, "Format", 1) _WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA) _WinAPI_ReleaseDC(0, $hScrDC) _WinAPI_SelectObject($hMemDC, $hOld) _WinAPI_DeleteObject($hBitmap) _WinAPI_DeleteDC($hMemDC) _GDIPlus_Shutdown() Return $hGUI EndFunc ;==>_SetImage1 point
-
Try to make this work for yourself. #AutoIt3Wrapper_Res_File_Add="logo\shark.png", RT_RCDATA, shark, 0 #include <ResourcesEx.au3> Global $Pic = GUICtrlCreatePic('', -1, -1) ; logo _Resource_SetToCtrlID($Pic, 'shark') GUICtrlSetPos($Pic, 205, 70, 140, 140) https://www.autoitscript.com/forum/topic/162499-resourcesex-udf/1 point
-
@rcmaehl Please consider to change Title from: to: And add tag GitHub to yours OP1 point
-
ListView ComboA ListView Combo is created by replacing the original ListBox with a ListView. Replacement of the controls is mainly implemented through the subclassing technique. Only a small amount of owner draw code is used. Because much of the code depends on the functionality of the ListView, and because the functionality will obviously differ from one example to another, it's not easy to create a set of general functions in a UDF. However, it should be possible to implement if not all then some of the functions in a UDF. So there may come an update, with some of the functions coded in a UDF. In the absence of a UDF in this version the example is created with quite a lot of different ListView functionality, so that it contains most of the code you may need. The functionality includes: Create item and subitem checkboxes Disable focused and selected states Create Edit control to edit cell texts The ListView is created in the "Case $WM_USER" section of Examples\ListViewCombo.au3. The ListView is a virtual ListView that's feeded with data from the $g_aLVData array. Because the ListView in a ListView Combo isn't open all the time, a ListView Combo works best if the ListView plays a minor role in the entire GUI. E.g. if the ListView is used to select settings or options used in the rest of the GUI. The big advantage of a ListView Combo is that it doesn't take up much space when the ListView is closed. The images shows a closed and open ListView Combo: The texts in the last column can be edited through an Edit control. Click to open the Edit control. Move the mouse out of the Edit control to close it. Tomorrow I'll show an example of how to use a ListView Combo control. 7z-file The 7z-file contains source code for the example. You need AutoIt 3.3.12 or later. Tested on Windows 7 and Windows 10. Comments are welcome. Let me know if there are any issues. ListViewCombo.7z1 point
-
Lets make it simple. Copy into clipboard a single word containing the symbol you want to get rid of. Then run the following script : ConsoleWrite(ClipGet() & @CRLF) Local $dData = Binary(ClipGet()) ConsoleWrite($dData & @CRLF) What do you get into the console ?1 point
-
506 commits since project started 9 days ago on GitHub. It is 56,(2) commits per day. Trully big attention. To the glory of AutoIt.1 point
-
You are getting a lot of attention in the articles around the Win11 requirements. I've seen multiple articles which refer to your github site and I already had a look a couple of days ago.... nice.1 point
-
Making CmdLine work inside of quotes
FrancescoDiMuro reacted to Musashi for a topic
Hi Francesco As far as I know, ExpandVarStrings does not work with arrays : Example : Opt("ExpandVarStrings", 1) ; 0=don't expand(default), 1=do expand If $CMDLINE[0] Then ConsoleWrite("ExpandVar : $CMDLINE[1]$" & @CRLF) ConsoleWrite("Normal : " & $CMDLINE[1] & @CRLF) Else ConsoleWrite("Error : no CMDLine parameters passed" & @CRLF) EndIf see :1 point -
If the special characters only need to get removed, try adding this line after line 26 (below the for loop which changes all characters in memory): $content = StringRegExpReplace($content, '[^[:print:]]', '') Just a guess, but it should simply kill all non-printable characters out of the text.1 point
-
Copy the text from the PDF file and run this script. Then paste wherever after running the script. #include <MsgBoxConstants.au3> Global $g_sClipboard Global $g_sReplaceWith = '[1]' $g_sClipboard = ClipGet() ; Retrive text from the clipboard $g_sReplacedString = StringReplace($g_sClipboard, Chr(2), $g_sReplaceWith) ; Replace the symbol with $g_sReplaceWith MsgBox($MB_OK, @ScriptName, $g_sReplacedString) ; Display the new text ClipPut($g_sReplacedString) ; Write the new text to the clipboard You can change $g_sReplaceWith with whatever you want.1 point