Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/12/2015 in all areas

  1. wakillon

    FavIcons Screensaver

    A little Screensaver based on FavIcons Like this screenshot Most websites use 16x16 Icons, so for a better display i used only those who have a 32x32 format. Thanks to : Ward for his BinaryCall UDF ( for call in memory lzma.dll and titchisid.dll ) and trancexx for his ResourcesViewerAndCompiler ( for create the huge icons resource dll ) If you have some time to loose, you can get files in the Download Section Edit 1 : Config is available via right click on compiled version. Edit 2 : Last version do not use lzma.dll and icons resource dll but an ImageList from a jpg for store the 730 "icons"
    2 points
  2. spudw2k

    VMWare ESX Cluster Builder

    This is a tool I put together to size an ESX cluster based on the VM resource requirements. it's far from perfect and probably bug ridden, but I just wanted to share. Credits to @guiness for his _GUICtrlListView_CreateArray UDF and to @Melba and associated crew for the GUIListViewEx UDF. edit: v0.7 ESX Builder.zip
    1 point
  3. jchd

    SQLite large input

    Looking at it again, maybe I should force conversions for BLOB (force binary), TEXT (force string). Also *64 versions of the binding calls might be needed someday. If someone needs the code to include something, just ask. Now the issue with binding values to prepared statements in AutoIt is (most of the times) slower that re-preparing a stringized statement, due to DllCalls and wrapper overhead. Given that SQLite databases are always supposed to be local so that statements can't get manipulated by an adversary, binding only makes sense when the statements are built from unsanitized user input. Even then, carefully quoting text values makes the statements immune to drama: unavoidable link: https://xkcd.com/327/
    1 point
  4. After wakillon has provided the SID player code, I thought it's time to write a little intro in old school style with chip music from the old good C64. Here the result (download exe + source): CoSiNUs brOTHerS inTRO I hope it works properly on your PC. If not please report. WinXP is not supported! If your CPU is too weak to display the effects properly, change the line 118 the value 30 to 40 DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", 30, "int", 0) or a higher value or reduce in line 28 the $iStripes value to e.g. $iH / 3. Global $i, $c = 0, $j = 0, $f, $l, $k = 0, $m, $iStripes = $iH / 2 On my notebook the intro runs at ~30 fps! Have fun. @wakillon: Merci beaucoup! Screenshot: https://autoit.de/index.php/Attachment/115-CoSiNUs-brOTHerS-inTRO-png/ How it should look like (without sound):
    1 point
  5. #RequireAdmin AutoItSetOption('TrayAutoPause', 0) Global $iFirstRun = 1, $aMousePosList[1][2] HotKeySet('{CAPSLOCK}', '_GatherPositions') HotKeySet('{SCROLLLOCK}', '_AllClicksBulletin') While 1 Sleep(20) WEnd Func _GatherPositions() If Not $iFirstRun Then ReDim $aMousePosList[UBound($aMousePosList) + 1][2] EndIf $aMousePosList[UBound($aMousePosList) - 1][0] = MouseGetPos(0) $aMousePosList[UBound($aMousePosList) - 1][1] = MouseGetPos(1) $iFirstRun = 0 EndFunc ;==>_GatherPositions Func _AllClicksBulletin() BlockInput(1) For $a = 0 To UBound($aMousePosList) - 1 MouseClick('main', $aMousePosList[$a][0], $aMousePosList[$a][1], 1, 0) Next Global $aMousePosList[1][2] BlockInput(0) EndFunc ;==>_AllClicksBulletin Here is my little script. It will request UAC access to be able to temporarily block accidental mouse movements while performing the automated clicks. Once running just point over the areas you want to click and press CAPSLOCK button, once per click. So if you have 2 buttons on screen that need clicking one time each then hover over each button and press CAPSLOCK once. Once you have pressed that for each button on screen you want to click then press SCROLLLOCK once and it will block all user inputs and immediately click those things as fast as it possible and then free user inputs back to normal again. Edit: While this isn't simultaneous, it is actually extremely fast. Way faster than you could ever do manually. It will only be a few single digit miliseconds most likely between the clicks.
    1 point
  6. Try this. (I have not tried it) #Include <GUIConstantsEx.au3> #Include <GuiButton.au3> #Include <WindowsConstants.au3> GUICreate("Buttons", 300, 300) GUISetState() $btn = GUICtrlCreateButton("Button1", 10, 10, 64, 64, $BS_ICON) _GUICtrlButton_SetIcon($btn, @DesktopDir & "\106.ico", 0, 48, 48) While 1 $Msg = GUIGetMsg() If $Msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd Func _GUICtrlButton_SetIcon($hWnd, $sIcon, $iIndex, $iWidth, $iHeight) If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) If $hWnd = 0 Then Return False EndIf EndIf Local $hIcon = _WinAPI_PrivateExtractIcon($sIcon, $iIndex, $iWidth, $iHeight) If @error Then Return False EndIf Local $hPrev = _SendMessage($hWnd, 0xF7, 1, $hIcon) If $hPrev Then If Not _WinAPI_DeleteObject($hPrev) Then _WinAPI_DestroyIcon($hPrev) EndIf EndIf _WinAPI_UpdateWindow($hWnd) Return True EndFunc ;==>_GUICtrlButton_SetIcon Func _WinAPI_PrivateExtractIcon($sIcon, $iIndex, $iWidth, $iHeight) Local $hIcon, $tIcon = DllStructCreate('hwnd'), $tID = DllStructCreate('hwnd') Local $Ret = DllCall('user32.dll', 'int', 'PrivateExtractIcons', 'str', $sIcon, 'int', $iIndex, 'int', $iWidth, 'int', $iHeight, 'ptr', DllStructGetPtr($tIcon), 'ptr', DllStructGetPtr($tID), 'int', 1, 'int', 0) If (@error) Or ($Ret[0] = 0) Then Return SetError(1, 0, 0) EndIf $hIcon = DllStructGetData($tIcon, 1) If ($hIcon = Ptr(0)) Or (Not IsPtr($hIcon)) Then Return SetError(1, 0, 0) EndIf Return $hIcon EndFunc ;==>_WinAPI_PrivateExtractIcon
    1 point
×
×
  • Create New...