Jump to content

Leaderboard

Popular Content

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

  1. StuckUser

    FileInstall Issues

    Thanks @seadoggie01 I will try this later and feel silly for not trying this before
    1 point
  2. Works for me on Win 10 : Global $hDesktop = WinGetHandle("Program Manager") Global $hGui = GUICreate("Test", 200, 200, -1, -1, $WS_POPUP+$WS_CAPTION) _WinAPI_SetWindowLong($hGui, $GWL_HWNDPARENT, $hDesktop)
    1 point
  3. JackCerq

    libZPlay UDF

    Thanks for sharing. hi to all of you. Please excuse my English (thanks Google translator!). I noticed that the libZPlay.au3 file only allows playback / manipulation of one piece of music at a time. If you open and play another piece of music while the first one is playing, the script stops and crashes. Therefore I have modified the same file so that it is possible to execute more instances to CreateZPlay() in order to be able to perform more music at the same time (for example to cross a few seconds of the end of a song with the beginning of the other). In a hurry I made the change and a short script that plays two songs that can be heard simultaneously. Basically the modification to the libZPlay.au3 file consists in commenting or removing the Global $ZPLAY_HANDLE = 0 (Global $ZPLAY_HANDLE = 0 ----->; ~ Global $ZPLAY_HANDLE = 0) line and modify the CreateZPlay() function in this way: Func CreateZPlay() $LibZplay = DllOpen ($LibZplayName) Local $Ret = DllCall ($LibZplay, 'DWORD', 'zplay_CreateZPlay') If @error Then Return SetError (@error, @extended, 0) ; ~ $ZPLAY_HANDLE = $ Ret [0] Return $ Ret [0] EndFunc; ==> CreateZPlay that is, to have make $Ret [0] return the instance handle. in the test script $Song1 and $Song2 have different handles. By passing these handles to the internal functions of libZPlay.au3, modified appropriately, we can manage the music pieces independently. mylibzplayExample.au3: #include 'LibZPlay_MOD.au3' Local $hSong1 = CreateZPlay() Local $hSong2 = CreateZPlay() ConsoleWrite ("$hSong1: " & $hSong1 & @TAB & "$hSong2: " & $hSong2 & @LF) Local $sCurrentFile1 = FileOpenDialog ('Select your File', @ScriptDir, 'Supported Files (*. Mp3; *. Mp2; *. Mp1; *. Ogg; *. Flac; *. Oga; *. Wav; *. Ac3 ; *. aac) ') OpenFile ($sCurrentFile1, $ sfAutodetect, $hSong1) Play ($hSong1) Local $ sCurrentFile2 = FileOpenDialog ('Select your File', @ScriptDir, 'Supported Files (*. Mp3; *. Mp2; *. Mp1; *. Ogg; *. Flac; *. Oga; *. Wav; *. Ac3 ; *. aac) ') OpenFile ($ sCurrentFile2, $ sfAutodetect, $hSong2) Play ($hSong2) Sleep (10000) Close ($hSong1) DestroyZPlay ($hSong1) Sleep (10000) Close ($hSong2) DestroyZPlay ($hSong2) libZPlay_MOD.au3 my_libzPlayExample.au3
    1 point
  4. I have started to write the first wrapper function to create time based task schedules. To limit the number of parameters the function will only provide a few time related triggers. The following parameters are supported at the moment: Folder where the schedule gets saved Name of the schedule Type of trigger ($TASK_TRIGGER_TIME - run the task at a specified time, $TASK_TRIGGER_DAILY - run the task every day, $TASK_TRIGGER_WEEKLY - run the task every week) Start and end date/time when the trigger gets activated Days of week for TASK_TRIGGER_WEEKLY: Use this to run a task every week on Monday till Friday Interval between the days or weeks in the schedule (for $TASK_TRIGGER_DAILY and $TASK_TRIGGER_WEEKLY). Example: Set this parameter to 2 to run a schedule every second say/week. This should cover most of the time related requests. If you need more you have to use the general task creation function (not coded yet). What do you think? Do you miss anything in this wrapper?
    1 point
×
×
  • Create New...