Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/05/2024 in all areas

  1. ...and also untick "Use Windows colors" otherwise, for what I've seen, the CSS don't show it's custom colors. PS: I've added "Replace the v3.3.16.1 CHM with the one in the ZIP along with the CSS file of your choosing to the same folder the CHM is at." Otherwise, there is no instructions on how to use the CHM and CSS in the ZIP file. Hopefully now with the instructions, it'll avoid having to do all you did. It was not needed. My bad for not adding instructions.
    2 points
  2. I was landed here happy and all, then got confused as how to use the "theme". Good thing I manage to find it out by myself. Putting it here just in case someone get the same problem as I do. Thank you @argumentum for making the theme. Now I can read the manual without it hurting my eyes as much as it used to lol.
    2 points
  3. I started to work on this UDF and I'd like to discuss, test and improve it with other interested users. The idea is to create a UDF similar to FTPEx, but to support SFTP protocol. Given that this protocol is not natively supported by Windows, I found some candidates to manage it: cURL: http://curl.haxx.se/ PSFTP: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html FZSFTP: http://filezilla-project.org/ I'm trying to use the second one (realied by PuTTY team) and the result is the following code. It is not complete and needs to be widely tested, but main functions work and could be considered as a draft to start the discussion. A possible alternative could be to use FZSFTP (a modified version of PSFTP realized for FileZilla), that includes some interesting improvements to be used by external programs, but does not offer a related documentation. Code version: 1.0 beta 9 (not complete) Previous downloads: 132 SFTPEx.au3
    1 point
  4. Not really a button but something that might work well in your case. #include <GUIConstantsEx.au3> #include <GDIPlus.au3> Global $Info, $ButtonHover = False _GDIPlus_Startup() Local $hMain = GUICreate("Image", 400, 200) Local $cBackground = GUICtrlCreatePic(@ScriptDir & '\background.jpg', 0, 0, 400, 200) ; Background image GUICtrlSetState($cBackground, $GUI_DISABLE) Local $cButton = GUICtrlCreatePic('', 50, 50, 50, 50) ImageToCtrl(@ScriptDir & '\button.png', $cButton) GUISetState(@SW_SHOW, $hMain) While True Switch GUIGetMsg() Case $cButton MsgBox(0, '', 'You clicked me?') Case $GUI_EVENT_CLOSE _GDIPlus_Shutdown() Exit EndSwitch $Info = GUIGetCursorInfo($hMain) If Not IsArray($Info) Then ContinueLoop If $Info[4] = $cButton Then If Not $ButtonHover Then $ButtonHover = True ;~ You can upscale control here ImageToCtrl(@ScriptDir & '\hover.png', $cButton) ; Hovered button image EndIf Else If $ButtonHover Then $ButtonHover = False ;~ You can downscale control here ImageToCtrl(@ScriptDir & '\button.png', $cButton) ; Normal button image EndIf EndIf WEnd Func ImageToCtrl($sImage, $cCtrl) Local $hImage = _GDIPlus_ImageLoadFromFile($sImage) Local $iWidth = _GDIPlus_ImageGetWidth($hImage) Local $iHeight = _GDIPlus_ImageGetHeight($hImage) Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight) Local $hGraphics = _GDIPlus_ImageGetGraphicsContext($hBitmap) _GDIPlus_GraphicsDrawImageRect($hGraphics, $hImage, 0, 0, $iWidth, $iHeight) Local $hHBITMAP = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap) _WinAPI_DeleteObject(GUICtrlSendMsg($cCtrl, 0x0172, 0, $hHBITMAP)) _WinAPI_DeleteObject($hHBITMAP) _GDIPlus_GraphicsDispose($hGraphics) _GDIPlus_BitmapDispose($hBitmap) _GDIPlus_ImageDispose($hImage) EndFunc If you want multiple "buttons" you can create a multidimensional array to store the control ID and current hover state for each control.
    1 point
  5. Nine

    Active Control in GUI

    Try this one : Func GetActiveCtrl($hGUI) Return _WinAPI_GetDlgCtrlID(ControlGetHandle($hGUI, "", ControlGetFocus($hGUI))) EndFunc
    1 point
  6. @TheSaint You forgot to mention your bud who gave you the idea of using curl with byte ranges 😢 In any case, the vast majority of people won't need to use curl to do this sort of crippled multi-threaded downloading, there's a much better program for that called aria2 and it's a dedicated CLI downloader program and supports multi-threaded downloading natively... so it doesn't have to combine the separate parts later on and cause double the wear and tear as it would with curl
    1 point
  7. All: After searching around for an English version of the Prospeed help file with no luck (if anybody has one please post it is probably better than this) I decided to whip up a Google translated version of the German CHM. To do this, I decompiled the CHM into multiple .htm files. Then I read all the files back and merged them into one large htm (code below in case you are interested). Finally, I uploaded that file to Google translate (which can take files <1MB) and downloaded the results ... which I have attached. It is not as nice as a bookmarked CHM and could probably stand to have its tranlation tuned ... and does not include the original jpgs ... but is better than nothing. Enjoy. Regards, Jfish ;combine html files into one #Include <File.au3> #include <Array.au3> dim $helpPath = "filepath\" dim $masterFile = FileOpen(@scriptdir&"\MasterHelp.html",2) ;read contents of directory into array $fileList = _FileListToArray($helpPath,"*.htm") _ArrayDisplay($fileList);debug ;write contents of HTML files into one file for $a=1 to UBound($fileList)-1 step 1 dim $currentFile = FileRead($helpPath&$fileList[$a]) FileWrite($masterFile,$currentFile & @CRLF) Next FileClose($masterFile) MasterHelpEnglish.zip
    1 point
×
×
  • Create New...