eukalyptus Posted January 26, 2008 Share Posted January 26, 2008 Hellomy script stops after a few callback´s BUT: if i move the GUI (clicking in the titlebar and moving around) the callback is running well till i release the mousebutton...$RecordCallBack=DllCallbackRegister ("_RecordCallBack", "int", "hwnd;ptr;int;int") $BASS = DllOpen(@ScriptDir & "\bass.dll") Global $HRecord,$cbcount=0 GUICreate("TestCallBack") GUISetState() DllCall($BASS, "dword", "BASS_RecordInit", "dword", 0) DllCall($BASS, "dword", "BASS_RecordSetDevice", "dword", 0) $HRecord = DllCall($BASS, "hwnd", "BASS_RecordStart", "dword", 44100, "dword", 2, "dword", 128, "ptr", DllCallbackGetPtr($RecordCallBack), "dword", 0) While 1 sleep(50) WEnd Func _RecordCallBack($hwnd,$ptr,$int1,$int2) Local $Ret $cbcount+=1 ToolTip($cbcount & " " & $ptr & " " & $int1) Return 1 EndFuncplz helpthx...using (free) bass.dll from un4seen.com Download Bass.dll DirectSound UDF Direct2D UDF AutoIt ScreenSaver Collection BASS UDF v10 download Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now