Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/09/2023 in all areas

  1. Managed to figure out how to get the SSL working thru the *.000webhostapp.com so now there is at least one link that is SSL. Looking at Linode for hosting, also looking at Uberspace.de. Also here's a couple sprites that I've converted to GIF. The animation I may not use in the actual program, just something I drew while practicing this art style I've managed to develop. Being able to use GDI+ in the script is very helpful.
    2 points
  2. Multi-File Repeat Function One of my favorite music folders holds 539 classical titles. While listening to this folder, sometimes I feel like repeating several files, Beethoven's Symphony 9, movements 1 to 4, for example. zPlayer Version 6.0.0.7 makes this possible. One of the challenges I encountered in this version was coloring the selected items in the playlist. The easiest way was using GUICtrlSetColor() or GUICtrlSetBkColor() function, but they had flickering problem: a colored playlist would randomly flicker, whch was pretty much annoying. I wanted to realize the function wihtout using a UDF which is not a part of standard AutoIt installation. So GUIListViewEx.au3 was out of my consideration. Then I found a solution here, @LarsJ's, so called, virtual listview. It perfectly fit my requirement and it worked great. Loading speed was far faster than _GUICtrlListView_AddArray() and flickering diappeared. Please take a look at what I have done in zPlayer Version 6.0.0.7. Note: Virtual listview was not that simple. I had to make several changes to my code to work correctly with virtual listview, and I assigned a new version number of 6.0.0.8. - September 12, 2023
    2 points
  3. I could use Let's Encrypt with my 000webhost just not for free. They've engineered the free hosting in a manner to where you are completely locked out of all SSL controls as well as SSH and root access (blocking SSH programs and CertBot utilities), and deny third party SSL requests (As they did with the SSL I purchased with my domain). The only thing they give you is a built-in web file manager and they allow FTP access, though my FTP client will not stay connected longer than a minute before the connection times out with a time out error. I've adjusted the time out settings, keep alive settings, web control panel settings and used the "repair" feature in the web control panel with no changes. If it manages to stay connected, if I try to access console commands it boots the connection. So far, everything I was able to do before on 000webhost has changed. They give you a spot for free but if you want to do anything with it, they make you upgrade. Not to mention their "discord help page" is a dead link and clicking on any of the "live chat" or support features leads you to the please upgrade page. I will definitely be moving to a different host in the not too distant future. You have found one of my concerns in this project, interest. I have been thinking on it and I think going open source would definitely be the best route. I will definitely go the GPL route or modification. I am wary of being too restrictive because I know that modification and customization is the fore-front of this project, and thinking about it, having it closed-source would definitely not be wise. I also do want to try the "content creator" kind of thing, but this alone will not be the only article of content available, and I don't want to be the cliche creator "Hey guys please subscribe and buy my merch" I want my stuff to be entertaining, useful and enjoyable without too much pressure on the users to subscribe or donate, if you're cool with the people you don't have to ask for their support. They'll do it because they made their own decision based off what I've presented to them.
    2 points
  4. I see that now, it's called Akami now. I have quite a few IRC buddies who are recommending to use Linode/Akami, as they all use it and have had no issues and only sing praise about the product, but everyone's experiences will be different. I've got to wait on more funding before I leap into a nice hosting plan so I have time for plenty of consideration and research, but in my list of considerations is Uberspace, Tux Family and Linode. I'm leaning more towards Tux Family as they appear to be very FOSS friendly. Thank you, I've not displayed much of the artwork to the public as of yet, and I'm glad to see that people are liking it. This art style seems to be working, I personally I am satisfied with the results, as I've little experience with drawing graphics with a mouse on a color grid. Initially I was using a combination of MS Paint, Paint 3D and GIMP to draw and compile images and animations. I will say this, the Paint 3D on windows 10 is phenomenal. I wish this was a thing about 25 years ago when I would play on with the MS Paint on my uncle's Windows 95 PC. I absolutely love Paint 3D's capabilities, especially considering its a piece of stock windows software. The old process takes too long. It would take several hours to complete just one sprite drawing using this method. I recently purchased a program called Aseprite. Oh man, what a program! It's not only sped up the drawing process, but allows me to do 80% of the work in one application. I still use MS Paint and Paint 3D effects for designing textures and such, if you look at the screen shots the grass and sand textures were made with the oil brush in Paint 3D, which, surprisingly, IMO made a very good looking grass and sand texture, but this combined with the versatility of AutoIT script makes me wish I had originally chosen this language for the project! You are absolutely correct. In my time searching through this forum, I've found that UEZ is almost a celebrity around here, and in fact I learned how to use GDI+ and designed the graphics code for my program based off of a GDI+ example script I found from UEZ as well as some help from Andreik. I'll have to dig around to find the link again and share it in this thread! There will definitely be a Thank you and shout-out section somewhere in this project that will include several user's names from this forum as well as a thank you to the whole community itself.
    1 point
  5. Nine

    Window Positionings

    @argumentum @Andreik Like Meat Loaf sang, " you find it, you showed him, but there is no way you gonna be recognized for it, but don't be sad cause two out of three ain't bad"
    1 point
  6. Too bad all of that is locked behind Microsoft's downstream Edge browser filled with trackers 🤬. This is why we need copyleft licenses like GPL, so that companies can't just leech off of good open-source work, make a few improvements and sell that off as their own product Also the JSON viewer is a joke, Firefox has had a much better viewer since forever and you don't even need to enable it with a flag
    1 point
  7. Andreik

    Window Positionings

    He gave the final solution, don't be sad my friend. If you change a letter after someone assisted you along the process it means you are a true solver.
    1 point
  8. argumentum

    Window Positionings

    ..give credit where credit is due. I like that. Also like that every question you ever posted, you are the one that brought the solution. Remarkable !. One thing that would be appreciated is that the code is in the code box, the icon with the "<>" symbol, click that before pasting your code.
    1 point
  9. Related interesting YouTube channel: https://www.youtube.com/@MSFTEdge for example:
    1 point
  10. How much will you pay for this request? AIMP.exe >>>> Window Main <<<< Title:    Audio/Video file name Class:    TAIMPMainForm >>>> Window Mini<<<< Title:    TrayControl Class:    TAIMPTrayControl
    1 point
  11. Linode is no more, they got acquired and the parent company doesn't really care about that brand anymore, so I suggest staying away from them. In fact it has been officially discontinued. Looks pretty good to me! Indeed, if you ever need help, just mention @UEZ, he is the resident GDI+ and graphics expert here
    1 point
  12. @coderusa That sounds horrible, and there's no need to pay for an SSL certificate at all in 2023, in fact you didn't have to since Oct 2015 because of the Let's Encrypt initiative: They provide free SSL certificates to everyone instantly via automation and with no registration etc. So pretty much every host now has them integrated, so it's very weird that 000web is still charging for that, at a premium rate even Uberspace and Tux Family automatically handle the SSL certificate for you, no need to pay or even enable it. I see, thanks for the PSA. I use Porkbun, I started using it because it was cheap but their service is stellar, never had any issues with the interface or the tech support, can fully recommend them It's your project, so at the end of the day, it is your choice... but in my opinion having this being closed source is going to reduce a lot of interest in the project. You can still protect your IP by using a copyleft license like GPL, which requires anyone who wants to modify the code to make their changes open-source as well! Or if you want to go a step further, take a license and modify it yourself to place whatever restrictions you want, that way it is still "source-available". AutoIt was actually licensed under GPL before it hit the v3 version. That's actually why AutoHotkey (a fork of AutoIt) is open-source, they are legally obliged to publish the source.
    1 point
  13. ioa747

    Pause for input

    #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <MsgBoxConstants.au3> Opt("WinWaitDelay", 100) Opt("WinTitleMatchMode", 4) Opt("WinDetectHiddenText", 1) Opt("MouseCoordMode", 0) ; Press Esc to terminate script, Pause/Break to "pause" Opt("TrayIconDebug", 1) ;0-off ; Set so that tray displays current line number Global $g_bPaused = False ;~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* HotKeySet("+!2", "_Paused") ;If you press Shift-Alt-2, the script will Pause\UnPause HotKeySet("{ESC}", "_Exit") HotKeySet("+!d", "_Msg") ; Shift-Alt-d ;~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* Global $hDocfxit = WinWait("Docfxit, Inc. - QuickBooks Desktop Pro 2021","Make General Journal") If Not WinActive($hDocfxit) Then WinActivate($hDocfxit) WinWaitActive($hDocfxit) Send("dcu{TAB}") _Paused() WinWait($hDocfxit) If Not WinActive($hDocfxit) Then WinActivate($hDocfxit) WinWaitActive($hDocfxit) Send("{TAB}{TAB}{SHIFTDOWN}i{SHIFTUP}nterest{TAB}digital{TAB}tes{ALTDOWN}n{ALTUP}") ;---------------------------------------------------------------------------------------- Func _Paused() $g_bPaused = Not $g_bPaused While $g_bPaused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>_HotKey_Paused ;---------------------------------------------------------------------------------------- Func _Exit() Exit EndFunc ;---------------------------------------------------------------------------------------- Func _Msg() MsgBox($MB_SYSTEMMODAL, "", "This is a message.") EndFunc ;----------------------------------------------------------------------------------------
    1 point
  14. Hi @mLipok just a clarification, when you consult the WebView2 documentation on the Microsoft website, to remain compatible with the environment created here by @LarsJ you need to choose the pages relating to Win32/c++ and not those relating to .NET or c# Make sure you choose the page versions as highlighted by the red circle in the images below: https://learn.microsoft.com/en-us/microsoft-edge/webview2/webview2-api-reference?tabs=win32cpp https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/?view=webview2-1.0.1938.49
    1 point
  15. TomerKaftan

    ChatGPT API Call

    It's fascinating to hear that you've had success using ChatGPT Online to write code in AutoIt, especially at a beginner level. It's impressive how AI models like ChatGPT can adapt and generate code snippets based on the input provided. Thank you for sharing the information about the API key. It's helpful to know that there might be a slight delay before the API key becomes functional after it is generated. This information can save time and frustration for other users who plan to utilize the API.
    1 point
  16. Here a version using GDI+ (works only on 3.3.10.0+ versions): #include <ButtonConstants.au3> #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> _GDIPlus_Startup() Global Const $hGUI = GUICreate("Colored Buttons using GDI+", 600, 300) Global Const $iBtn1 = GUICtrlCreateButton("Default", 125, 75, 150, 150) GUICtrlSetFont(-1, 14.5, 400, 0, "Arial", 4) Global Const $iBtn2 = GUICtrlCreateButton("", 325, 75, 150, 150, $BS_BITMAP) Global Const $hBmp = _GDIPlus_BtnCtrlSetBgColor($iBtn2, "Colored", 146, 146) GUISetState() Do Switch GUIGetMsg() Case $iBtn1 MsgBox(0, "Test", "Default button has been pressed") Case $iBtn2 MsgBox(0, "Test", "Colored button has been pressed") Case $GUI_EVENT_CLOSE _WinAPI_DeleteObject($hBmp) _GDIPlus_Shutdown() GUIDelete() Exit EndSwitch Until False Func _GDIPlus_BtnCtrlSetBgColor($iBtn, $sText, $iW, $iH, $iStartColor = 0xF0FFFFF0, $iEndColor = 0x4040FF40, $sFontSize = 14, $sFont = "Arial") ;coded by UEZ 2014 Local Const $hBitmap = _GDIPlus_BitmapCreateFromScan0($iW, $iH) Local Const $hGfx = _GDIPlus_ImageGetGraphicsContext($hBitmap) ;~ _GDIPlus_GraphicsSetSmoothingMode($hGfx, $GDIP_SMOOTHINGMODE_HIGHQUALITY) _GDIPlus_GraphicsSetTextRenderingHint($hGfx, 4) Local Const $hBrush_Bg = _GDIPlus_LineBrushCreate($iW / 8, 0, $iW / 2, $iH - $iH / 8, $iStartColor, $iEndColor, 1) ;~ _GDIPlus_LineBrushSetLinearBlend($hBrush_Bg, 0.15, 0.999) _GDIPlus_GraphicsFillRect($hGfx, 0, 0, $iW, $iH, $hBrush_Bg) Local $hBrush_Txt = _GDIPlus_BrushCreateSolid(0xFF000000) Local $hFamily = _GDIPlus_FontFamilyCreate($sFont) Local $hFont = _GDIPlus_FontCreate($hFamily, $sFontSize) Local $hLayout = _GDIPlus_RectFCreate(0, 0, $iW, $iH) Local $hStringFormat = _GDIPlus_StringFormatCreate() _GDIPlus_StringFormatSetAlign($hStringFormat, 1) _GDIPlus_StringFormatSetLineAlign($hStringFormat, 1) _GDIPlus_GraphicsDrawStringEx($hGfx, $sText, $hFont, $hLayout, $hStringFormat, $hBrush_Txt) Local Const $hGDIBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap) _WinAPI_DeleteObject(_SendMessage(GUICtrlGetHandle($iBtn), $BM_SETIMAGE, $IMAGE_BITMAP, $hGDIBitmap)) _GDIPlus_BrushDispose($hBrush_Bg) _GDIPlus_BrushDispose($hBrush_Txt) _GDIPlus_FontFamilyDispose($hFamily) _GDIPlus_FontDispose($hFont) _GDIPlus_StringFormatDispose($hStringFormat) _GDIPlus_GraphicsDispose($hGfx) _GDIPlus_BitmapDispose($hBitmap) Return $hGDIBitmap EndFunc Br, UEZ
    1 point
×
×
  • Create New...