PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Allows you 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.
Note: 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
PROCÉDURE 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).
Note: In most cases, the button associated with the startup of the recorder corresponds to the App5Button constant.
<End Procedure>: Character string (with or without quotes)
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.
Components
Windows Mobile wp230obj.dll
Minimum required version
  • Version 11
Comments
Click [Add] to post a comment