Leaderboard
Popular Content
Showing content with the highest reputation on 03/16/2016 in all areas
-
Here's a little something back to the community for all the help I've had since I've been here It took me quite a while to research all the modes, but its a fairly complete list up to and including the latest types that will come along as the price for some of these monitors drops to normal human buying power. I've gone for the complete list so that in years to come it should still be valid. Ive commented all the resolutions so you can see what they are. If on the rare chance someone uses it gimme a credit plz #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.6.1 Author: Chimaera Script Function: Desktop Resolution #ce ---------------------------------------------------------------------------- Global $resolution ; ------------------------------------------------------------------------------ MsgBox(0, "Desktop Resolution", _Desktop_Resolution() & " @ " & @DesktopRefresh & " Hertz") Func _Desktop_Resolution() Switch $resolution = "" Case @DesktopWidth = 640 And @DesktopHeight = 480; Video Graphics Array $resolution = "640 x 480 (4:3) VGA" Case @DesktopWidth = 800 And @DesktopHeight = 480; Wide Video Graphics Array $resolution = "800 x 480 (4:3) WVGA" Case @DesktopWidth = 854 And @DesktopHeight = 480; Full Wide Video Graphics Array $resolution = "854 x 480 (4:3) FWVGA" Case @DesktopWidth = 800 And @DesktopHeight = 600; Super Video Graphics Array $resolution = "800 x 600 (4:3) SVGA" Case @DesktopWidth = 960 And @DesktopHeight = 540; Quarter Full HD $resolution = "960 x 540 (16:9) qHD" Case @DesktopWidth = 1024 And @DesktopHeight = 576; Wide Super Video Graphics Array $resolution = "1024 x 576 (5:3) WSVGA" Case @DesktopWidth = 1024 And @DesktopHeight = 600; Wide Super Video Graphics Array $resolution = "1024 x 600 (5:3) WSVGA" Case @DesktopWidth = 1024 And @DesktopHeight = 768; eXtended Graphics Array $resolution = "1024 x 768 (4:3) XGA" Case @DesktopWidth = 1152 And @DesktopHeight = 864; eXtended Graphics Array Plus $resolution = "1152 x 864 (4:3) XGA+" Case @DesktopWidth = 1280 And @DesktopHeight = 720; Wide eXtended Graphics Array $resolution = "1280 x 720 (16:9) HD Ready" Case @DesktopWidth = 1280 And @DesktopHeight = 768; Wide eXtended Graphics Array $resolution = "1280 x 768 (15:9) WXGA" Case @DesktopWidth = 1280 And @DesktopHeight = 800; Wide eXtended Graphics Array $resolution = "1280 x 800 (16:10) WXGA" Case @DesktopWidth = 1280 And @DesktopHeight = 960; Super eXtended Graphics Array $resolution = "1280 x 960 (4:3) SXGA" Case @DesktopWidth = 1280 And @DesktopHeight = 1024; Super eXtended Graphics Array $resolution = "1280 x 1024 (5:4) SXGA" Case @DesktopWidth = 1360 And @DesktopHeight = 768; Wide eXtended Graphics Array $resolution = "1360 x 768 (16:9) WXGA" Case @DesktopWidth = 1366 And @DesktopHeight = 768; High Definition (720p) $resolution = "1366 x 768 (16:9) HD [720p]" Case @DesktopWidth = 1440 And @DesktopHeight = 900; Wide Super eXtended Graphics Array $resolution = "1440 x 900 (16:10) WSXGA" Case @DesktopWidth = 1400 And @DesktopHeight = 1050; Wide Super eXtended Graphics Array $resolution = "1440 x 900 (16:10) WSXGA" Case @DesktopWidth = 1600 And @DesktopHeight = 900; High Definition Plus (900p) $resolution = "1600 x 900 (16:9) HD+ [900p]" Case @DesktopWidth = 1600 And @DesktopHeight = 1200; Ultra eXtended Graphics Array $resolution = "1600 x 1200 (4:3) UXGA" Case @DesktopWidth = 1680 And @DesktopHeight = 1050; Wide Super eXtended Graphics Array Plus $resolution = "1680 x 1050 (16:10) WSXGA+" Case @DesktopWidth = 1920 And @DesktopHeight = 1080; Full High Definition (1080p) $resolution = "1920 x 1080 (16:9) HD [1080p]" Case @DesktopWidth = 1920 And @DesktopHeight = 1200; Wide Ultra eXtended Graphics Array $resolution = "1920 x 1200 (16:10) WUXGA" Case @DesktopWidth = 1920 And @DesktopHeight = 1400; Tesselar eXtended Graphics Array $resolution = "1920 x 1400 (48:35) TXGA" Case @DesktopWidth = 2048 And @DesktopHeight = 1080; Digital Film Projection $resolution = "2048 x 1080 (19:10) 2K" Case @DesktopWidth = 2048 And @DesktopHeight = 1152; Quad Wide eXtended Graphics Array $resolution = "2048 x 1152 (4:3) QWXGA" Case @DesktopWidth = 2048 And @DesktopHeight = 1536; Quad eXtended Graphics Array $resolution = "2048 x 1536 (4:3) QXGA" Case @DesktopWidth = 2538 And @DesktopHeight = 1080; Wide Projector $resolution = "2538 x 1080 (47:20) Wide Projector" Case @DesktopWidth = 2560 And @DesktopHeight = 1080; Cinema TV $resolution = "2560 x 1080 (64:27) Cinema TV" Case @DesktopWidth = 2560 And @DesktopHeight = 1440; Wide Quad High Definition $resolution = "2560 x 1440 (16:9) WQHD" Case @DesktopWidth = 2560 And @DesktopHeight = 1600; Wide Quad eXtended Graphics Array $resolution = "2560 x 1600 (16:10) WQXGA" Case @DesktopWidth = 2560 And @DesktopHeight = 2048; Quad Super eXtended Graphics Array $resolution = "2560 x 2048 (5:4) QSXGA" Case @DesktopWidth = 2880 And @DesktopHeight = 900; Dell Alienware $resolution = "2880 x 900 (16:5) Curved Display" Case @DesktopWidth = 3200 And @DesktopHeight = 2048; Wide Quad Super eXtended Graphics Array $resolution = "3200 x 2048 (25:16) WQSXGA" Case @DesktopWidth = 3200 And @DesktopHeight = 2400; Quad Ultra eXtended Graphics Array $resolution = "3200 x 2048 (4:3) QUXGA" Case @DesktopWidth = 3840 And @DesktopHeight = 2160; Quad Full High Definition $resolution = "3840 x 2160 (16:9) QFHD" Case @DesktopWidth = 3840 And @DesktopHeight = 2400; Wide Quad Ultra eXtended Graphics Array $resolution = "3840 x 2048 (16:10) WQUXGA" Case @DesktopWidth = 4096 And @DesktopHeight = 1716; Digital Film Projection $resolution = "4096 x 1716 (2:39) 4K" Case @DesktopWidth = 4096 And @DesktopHeight = 3072; Hex[adecatuple] eXtended Graphics Array $resolution = "4096 x 3072 (4:3) HXGA" Case @DesktopWidth = 5120 And @DesktopHeight = 3200; Wide Hex[adecatuple] Extended Graphics Array $resolution = "5120 x 3200 (16:10) WHXGA" Case @DesktopWidth = 5120 And @DesktopHeight = 4096; Hex[adecatuple] Super eXtended Graphics Array $resolution = "5120 x 4096 (5:4) HSXGA" Case @DesktopWidth = 6400 And @DesktopHeight = 4096; Wide Hex[adecatuple] Super eXtended Graphics Array $resolution = "6400 x 4096 (25:16) WHSXGA" Case @DesktopWidth = 6400 And @DesktopHeight = 4800; Hex[adecatuple] Ultra eXtended Graphics Array $resolution = "6400 x 4800 (4:3) HUXGA" Case @DesktopWidth = 7680 And @DesktopHeight = 4320; Ultra High Definition Television $resolution = "7680 x 4320 (16:9) UHDT" Case @DesktopWidth = 7680 And @DesktopHeight = 4800; Wide Hex[adecatuple] Ultra eXtended Graphics Array $resolution = "7680 x 4800 (16:10) WHUXGA" Case Else Return SetError(1, 0, $resolution) EndSwitch Return $resolution EndFunc ;==>_Desktop_Resolution Enjoy Chimaera1 point
-
Navigate to https://www.virustotal.com/en/#url Insert downloadlink Click ButtonScanit Wait for analysis Click link download file analysis extract SHA256 hash1 point
-
Hi. You can modify the Windows Keyboard Settings: http://www.dummies.com/how-to/content/set-your-keyboards-repeat-delay-and-repeat-rate.html Regards, Rudi.1 point
-
<div class="gstl_0 sbdd_a" style="left: 0px; top: 39px; text-align: left; position: absolute; min-width: 590px;" dir="ltr"><div class="fl"></div><div><div class="sbdd_b"><div class="sbsb_a"><ul class="sbsb_b" role="listbox"><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse0" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> poradnik</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse1" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> kurs pdf</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse2" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> skrypty</b></div></div></li><li class="sbsb_c gsfs" role="presentation" style="text-align: left;" dir="ltr"><div id="sbse3" role="option"><div class="sbqs_a" aria-hidden="true"><a class="sbsb_i sbqs_b" href="#ifl">Szczęśliwy traf »</a></div><div class="sbqs_c">autoit<b> download</b></div></div></li></ul></div></div><div><div class="sft" id="pocs" style="left: 0px; margin-top: 10px; white-space: nowrap; position: absolute; z-index: 987;"><div id="pocs0" style="display: none;"><span><span>Google</span> Wyszukiwanie dynamiczne jest niedostępne. Naciśnij Enter, aby wyszukać.</span> <a href="//support.google.com/websearch/answer/186645?hl=pl">Więcej informacji</a></div><div id="pocs1" style="display: none;"><span>Google</span> Wyszukiwanie dynamiczne jest nieaktywne z powodu wolnego połączenia. Naciśnij Enter, aby wyszukać.</div><div id="pocs2">Naciśnij Enter, aby wyszukać.</div></div></div></div></div> Yest it is possible. <div class="sbqs_c">autoit<b> poradnik</b></div> <div class="sbqs_c">autoit<b> kurs pdf</b></div> <div class="sbqs_c">autoit<b> skrypty</b></div> <div class="sbqs_c">autoit<b> download</b></div> Try to use RegExp: (?i)(?:<div class="sbqs_c">)(.*?)(?:</div>)1 point
-
Image pick and place into grid
neazoi reacted to InunoTaishou for a topic
I don't think I've seen anything like that, but what you're wanting to do could be done in GDI+ pretty easily. I had most of these already done from past scripts so it was mostly just copied/pasted. Except for the table, I did spend a little extra time making the images look like a table just because I thought it looked pretty It's up to you to create your work area and snap the images together. #include <GUIConstants.au3> #include <GDIPlus.au3> #include <WinApi.au3> #include <WindowsConstants.au3> #include <Array.au3> _GDIPlus_Startup() Global Const $iGuiWidth = 808 Global Const $iGuiHeight = 600 Global Const $iTablePadding = 12 Global Const $hSepPen = _GDIPlus_PenCreate(0xFF000000, 4) Global Const $hWorkBrush = _GDIPlus_BrushCreateSolid(0xFFFFFFFF) Global Const $hBackBrush = _GDIPlus_BrushCreateSolid(0x4F97FFFE) Global $aGDIPBuffer[1][5] ; Buffer holds the information of the work area. [n][0] will be the image [n][1] is left position, [n][2] is top position, [n][3] is right position, [n][4] is bottom position of the image Global $iImageWidth = 0 Global $iImageHeight = 0 Global $aGDIImageList = LoadGdiImageList($iImageWidth, $iImageHeight, $iGuiWidth, $iGuiHeight) Global $frmMainGui = GUICreate("Puzzle", $iGuiWidth, $iGuiHeight) Global $hGraphic = _GDIPlus_GraphicsCreateFromHWND($frmMainGui) Global $hBitmap = _GDIPlus_BitmapCreateFromGraphics($iGuiWidth, $iGuiHeight, $hGraphic) Global $hBuffer = _GDIPlus_ImageGetGraphicsContext($hBitmap) GUIRegisterMsg($WM_PAINT, WM_PAINT) GUIRegisterMsg($WM_LBUTTONDOWN, WM_LBUTTONDOWN) GUISetState(@SW_SHOW, $frmMainGui) While (True) Switch (GUIGetMsg()) Case $GUI_EVENT_CLOSE ; Always clena up your resources when you're done with GDI+ DisposeGdiImageList($aGDIImageList) _GDIPlus_PenDispose($hSepPen) _GDIPlus_BrushDispose($hWorkBrush) _GDIPlus_BrushDispose($hBackBrush) _GDIPlus_Shutdown() GUIDelete($frmMainGui) Exit 0 EndSwitch WEnd Func LoadGdiImageList(ByRef $iMaxWidth, ByRef $iMaxHeight, Const ByRef $iGuiWidth, $iGuiHeight) Local $aImageList[51] Local $iCurrentIndex = 0 Local $iRows = 0 Local $iColumns = 0 For $i = 0 To UBound($aImageList) - 1 $aImageList[$i] = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\Images\" & $i & ".gif") $iImageWidth = Max(_GDIPlus_ImageGetWidth($aImageList[$i]), $iMaxWidth) $iImageHeight = Max(_GDIPlus_ImageGetHeight($aImageList[$i]), $iMaxHeight) Next GetTableDimensions($iRows, $iColumns, $iGuiWidth, $iGuiHeight, UBound($aImageList), $iImageWidth, $iImageHeight) Local $aImageListReturn[$iRows][$iColumns] For $iRow = 0 To UBound($aImageListReturn, $UBOUND_ROWS) - 1 For $iColumn = 0 To UBound($aImageListReturn, $UBOUND_COLUMNS) - 1 $aImageListReturn[$iRow][$iColumn] = $aImageList[$iCurrentIndex] $iCurrentIndex += 1 If ($iCurrentIndex >= UBound($aImageList)) Then For $i = $iColumn To $iColumns $aImageListReturn[$iRow][$iColumn] = $aImageList[0] Next ExitLoop 2 EndIf Next Next Return $aImageListReturn EndFunc ;==>LoadGdiImageList Func DisposeGdiImageList(ByRef $aImageList) If (IsArray($aImageList)) Then For $iRow = 0 To UBound($aImageList, $UBOUND_ROWS) - 1 For $iColumn = 0 to UBound($aImageList, $UBOUND_COLUMNS) - 1 _GDIPlus_ImageDispose($aImageList[$iRow][$iColumn]) Next Next Else Return SetError(-1, 0, 0) EndIf Return 1 EndFunc ;==>DisposeGdiImageList Func Max(Const ByRef $lhs, Const ByRef $rhs) Return ($lhs > $rhs ? $lhs : $rhs) EndFunc ;==>Max Func GetTableDimensions(ByRef $iRows, ByRef $iColumns, $iMaxWidth, $iMaxHeight, $iCount, Const ByRef $iImageWidth, Const ByRef $iImageHeight) If ($iImageWidth = 0 Or $iImageHeight = 0 Or $iMaxWidth <= 20 Or $iMaxHeight <= 20) Then Return SetError(-1, 0, 0) ; Get the max columns. $iTablePadding for the left, right, and top of the table and $iTablePadding between each iamge $iColumns = Int(($iMaxWidth - ($iTablePadding * 2)) / ($iImageWidth + $iTablePadding)) $iRows = Ceiling($iCount / $iColumns) Return 1 EndFunc ;==>GetTableDimensions Func DrawGdipArea(Const $bDrawAtEnd = True) _GDIPlus_GraphicsClear($hBuffer, 0xFFF0F0F0) For $iRow = 0 To UBound($aGDIImageList, $UBOUND_ROWS) - 1 For $iColumn = 0 To UBound($aGDIImageList, $UBOUND_COLUMNS) - 1 Local $iLeft = $iTablePadding + ($iTablePadding * $iColumn) + ($iColumn * $iImageWidth) Local $iTop = $iTablePadding + ($iTablePadding * $iRow) + ($iRow * $iImageHeight) Local $iRight = $iLeft + $iImageWidth Local $iBottom = $iTop + $iImageHeight ; Draw border around image, 4px offset _GDIPlus_GraphicsDrawLine($hBuffer, $iLeft - 4, $iTop - 4, $iLeft - 4, $iBottom + 4) ; Left _GDIPlus_GraphicsDrawLine($hBuffer, $iRight + 4, $iTop - 4, $iRight + 4, $iBottom + 4) ; Right _GDIPlus_GraphicsDrawLine($hBuffer, $iLeft - 4, $iTop - 4, $iRight + 4, $iTop - 4) ; Top _GDIPlus_GraphicsDrawLine($hBuffer, $iLeft - 4, $iBottom + 4, $iRight + 4, $iBottom + 4) ; Bottom _GDIPlus_GraphicsDrawImageRect($hBuffer, $aGDIImageList[$iRow][$iColumn], $iLeft, $iTop, $iImageWidth, $iImageHeight) Next Next ; Draw border around the whole table, 8px offset ; Just to make it look pretty :) _GDIPlus_GraphicsDrawLine($hBuffer, $iTablePadding - 8, $iTablePadding - 8, $iTablePadding - 8, $iBottom + 8) ; Left _GDIPlus_GraphicsDrawLine($hBuffer, $iRight + 8, $iTablePadding - 8, $iRight + 8, $iBottom + 8) ; Right _GDIPlus_GraphicsDrawLine($hBuffer, $iTablePadding - 8, $iTablePadding - 8, $iRight + 8, $iTablePadding - 8) ; Top _GDIPlus_GraphicsDrawLine($hBuffer, $iTablePadding - 8, $iBottom + 8, $iRight + 8, $iBottom + 8) ; Bottom _GDIPlus_GraphicsFillRect($hBuffer, 0, $iBottom + 25, $iGuiWidth, $iGuiHeight - $iBottom, $hWorkBrush) ; There's an image at the top row If ($aGDIPBuffer[0][0]) Then For $iBuffer = 0 To UBound($aGDIPBuffer, $UBOUND_ROWS) - 1 _GDIPlus_GraphicsDrawImageRect($hBuffer, $aGDIPBuffer[$iBuffer][0], $aGDIPBuffer[$iBuffer][1], $aGDIPBuffer[$iBuffer][2], $iImageWidth, $iImageHeight) Next EndIf _GDIPlus_GraphicsDrawLine($hBuffer, 0, $iBottom + 25, $iGuiWidth, $iBottom + 25, $hSepPen) If ($bDrawAtEnd) Then _GDIPlus_GraphicsDrawImage($hGraphic, $hBitmap, 0, 0) Return True EndFunc ;==>DrawGdipArea Func WM_PAINT($hWndFrom, $iMsg, $wParam, $lParam) DrawGdipArea() Return $GUI_RUNDEFMSG EndFunc ;==>WM_PAINT Func WM_LBUTTONDOWN($hWndFrom, $iMsg, $wParam, $lParam) Local $iLButtonX = _WinAPI_LoWord($lParam) Local $iLButtonY = _WinAPI_HiWord($lParam) Local $iImageRow = -1 Local $iImageColumn = -1 Local $aCursorInfo = 0 Local $iGdipBufferIndex = UBound($aGDIPBuffer, $UBOUND_ROWS) Switch ($hWndFrom) Case $frmMainGui For $iRow = 0 To UBound($aGDIImageList, $UBOUND_ROWS) - 1 For $iColumn = 0 To UBound($aGDIImageList, $UBOUND_COLUMNS) - 1 Local $iLeft = $iTablePadding + ($iTablePadding * $iColumn) + ($iColumn * $iImageWidth) Local $iTop = $iTablePadding + ($iTablePadding * $iRow) + ($iRow * $iImageHeight) Local $iRight = $iLeft + $iImageWidth Local $iBottom = $iTop + $iImageHeight If (_WinAPI_PtInRectEx($iLButtonX, $iLButtonY, $iLeft, $iTop, $iRight, $iBottom)) Then $iImageRow = $iRow $iImageColumn = $iColumn ExitLoop EndIf Next Next If ($iImageRow > -1 And $iImageColumn > -1) Then $aCursorInfo = GUIGetCursorInfo($hWndFrom) If (@error) Then Return $GUI_RUNDEFMSG While ($aCursorInfo[2]) Local $iLeft = $aCursorInfo[0] - Int($iImageWidth / 2) Local $iTop = $aCursorInfo[1] - Int($iImageHeight / 2) DrawGdipArea(False) _GDIPlus_GraphicsFillRect($hBuffer, $iLeft, $iTop, $iImageWidth, $iImageHeight, $hBackBrush) _GDIPlus_GraphicsDrawImageRect($hBuffer, $aGDIImageList[$iImageRow][$iImageColumn], $iLeft, $iTop, $iImageWidth, $iImageHeight) _GDIPlus_GraphicsDrawImage($hGraphic, $hBitmap, 0, 0) $aCursorInfo = GUIGetCursorInfo($hWndFrom) If (@error) Then Return $GUI_RUNDEFMSG WEnd $aGDIPBuffer[$iGdipBufferIndex - 1][0] = $aGDIImageList[$iImageRow][$iImageColumn] $aGDIPBuffer[$iGdipBufferIndex - 1][1] = $iLeft $aGDIPBuffer[$iGdipBufferIndex - 1][2] = $iTop $aGDIPBuffer[$iGdipBufferIndex - 1][3] = $iLeft + $iImageWidth $aGDIPBuffer[$iGdipBufferIndex - 1][4] = $iTop + $iImageHeight ReDim $aGDIPBuffer[$iGdipBufferIndex + 1][5] DrawGdipArea() EndIf EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_LBUTTONDOWN Some notes: Anyways, it's a good base to get you started, since you probably don't know much, anything, about GDI+.1 point -
b00m, Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. M23 P.S. And we are not too keen on "code this for me" posts either. We prefer to help you get your code running correctly - think of the old saying: "Give a man a fish, you feed him for a day; give a man a net and you feed him forever". We try to be net makers and repairers, not fishmongers.1 point