ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Attention : This is version 26 of this documentation page. This feature may have been changed or removed in a higher version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Recorder functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Used to define a key for starting the recorder on Mobile Device (Pocket PC) and to specify a procedure that will be called at the end of recording.
Remark: The RecorderXXX functions are available only if the current Mobile Device (Pocket PC) includes a recorder feature.
Example
// The button 5 found on Mobile Device (Pocket PC) will be used to start the recorder
// and the "EndOfRecording" procedure will be called at the end of recording
RecorderEvent(App5Button, EndOfRecording, "MyFile.wav")
// Code of EndOfRecording procedure
PROCEDURE EndOfRecording(FileName is string)
// Retrieves the file size
SizeInBytes is int
SizeInBytes = fSize(FileName)
// Displays an information message
Message("End of file recording " +  FileName, ...
"The file size is: " + SizeInBytes)
Syntax
<Result> = RecorderEvent(<Key Number> , <End Procedure> [, <File name>])
<Result>: Boolean
  • True if the association was performed,
  • False otherwise.
<Key Number>: Integer constant
Key that will be associated with the recorder start:
App1ButtonButton 1 found on the Mobile Device (Pocket PC).
App2ButtonButton 2 found on the Mobile Device (Pocket PC).
App3ButtonButton 3 found on the Mobile Device (Pocket PC).
App4ButtonButton 4 found on the Mobile Device (Pocket PC).
App5ButtonButton 5 found on the Mobile Device (Pocket PC).
App6ButtonButton 6 found on the Mobile Device (Pocket PC).
Remark: In most cases, the button associated with the startup of the recorder corresponds to the App5Button constant.
<End Procedure>: Procedure name
Name of WLanguage procedure ("callback" procedure) that will be called at the end of recording. If no procedure must be called, this parameter corresponds to an empty string ("").
This procedure has the following format:
PROCEDURE <Procedure name>(<Name of recorded file>)
During the call to this procedure, <Name of recorded file> is automatically filled: it contains the name of the file in which the recording was performed. This name corresponds to <File name> (if this parameter is specified).
<File name>: Optional character string
Name of the output file in which the recording will be performed. A default name will be used if this parameter is not specified (recording1, recording2, ...).
Remarks
  • To cancel the associations established by RecorderEvent, use RecorderEndEvent.
  • The recording is automatically stopped when another window takes focus.
  • To find out the associations of keys already defined on the Mobile Device (Pocket PC), select "Parameters .. Buttons" on your Mobile Device.
Component: wp260obj.dll
Minimum version required
  • Version 11
Comments
Click [Add] to post a comment

Last update: 11/30/2020

Send a report | Local help