Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/13/2025 in all areas

  1. This is a spin off the thread from here. I've moved this out of the collab space so I don't feel guilty about making sweeping changes when the mood hits me. But I'm still more than happy for this to be a community project at heart. Just a quick comment about the code: for this API, it looks like we need to construct some objects internally, which is a bit of a learning curve - but hopefully this example will provide a bit of background as to whats happening there... Original Attempt: Updated example 20/4 - Load media file, progress/seek bar. PlayerDemo 1.1.zip
    1 point
  2. Yep, it does work, the same way you could do : SleepEx(300000, True) Func SleepEx($nMilliseconds, $bAlertable = 0) Local $aRet = DllCall('kernel32.dll', 'dword', 'SleepEx', 'dword', $nMilliseconds, 'bool', $bAlertable) If @error Then Return SetError(@error, @extended, 0) Return $aRet[0] EndFunc ;==>_SleepEx Video is playing normally for the duration of the sleepex
    1 point
  3. Replacing : Func _WinAPI_SysAllocString($sString) Local $aCall = DllCall("mfplat.dll", "handle", "OleAut32.dll", "wchar", $sString) If @error Then Return SetError(__COM_GetDllError(), 0, 0) Return $aCall[0] EndFunc with : Func _WinAPI_SysAllocString($sString) Local $aCall = DllCall("OleAut32.dll", "handle", "SysAllocString", "wstr", $sString) If @error Then Return SetError(__COM_GetDllError(), 0, 0) Return $aCall[0] EndFunc ;==>_WinAPI_SysAllocString And removing the , $oIMFEngine.CanPlay() in event handler proc. Now starts correctly. But after a few events the script crashes. However from time to time, the event handler stops receiving messages and the video runs normally. In this particular case, you cannot stop the script with the close button. You need to interrupt it with task manager.
    1 point
  4. TheSaint

    Kobo Cover Fixer

    Latest update now available, see the first post. Everything is now in a single ZIP file, including an EXE version. While the program is still not fully complete, it is complete enough to do what it needs to, and I may never get around to fully implementing the Clone stuff etc. Here's what I worked on today. Here's the latest screenshots. That's it. Enjoy! P.S. I am now going to start using my program in earnest, as a lot of cover image files are missing on my Kobo device. It will be a lengthy process though, with most of that taken up with retrieving image files for those ebooks, that luckily exist in my copy of calibre, and using the clipboard button to retrieve text, to rename them appropriately, before moving each image file to the 'Cover Images - Source' folder, and then refreshing the display of that folder content. I have two calibre library folders I need to keep swapping between - Digital Editions, which has all my DRM ebooks from Kobo, plus Kobo (DRM-Free), which is for ebooks that came DRM-Free from Kobo. While the greater number of my Kobo ebooks are in the Digital Editions library folder, I still have a lot in the Kobo (DRM-Free) library folder.
    1 point
  5. TheSaint

    A simple help request

    It's a watery based version of ChatGPT in bathers or swimsuit.
    1 point
  6. TheSaint

    A simple help request

    You are right. And I even consulted with ChatGPT back then, but got nowhere. Maybe I'm a bit smarter now, and perhaps ChatGPT is too. In any case, we painstakingly worked our way through it all this time, and things were discovered that weren't last time. The code covered in this topic is only half the Python code. Then ChatGPT and I worked on the other half, and solved that too. My feedback to ChatGPT was vital, as it allowed it to explore other avenues, which in the end finally resulted in the solution. We went very deep, and I can now claim to have worked successfully with ChatGPT, and that without its help, I would not have succeeded. As they say, if at first you don't succeed, then try try again.
    1 point
  7. Nine

    Get size of GUI

    WM_SIZE gives the size of the client area of the window, while WinGetPos returns the size of the window itself. Client area excludes title bar, menu, sides and bottom borders.
    1 point
×
×
  • Create New...