WD The indirections - Programação oop com indirection - Recortar, Copiar, Colar, Desfazer, Refazer |
|
|
WD The indirections - Programação oop com indirection - Recortar, Copiar, Colar, Desfazer, Refazer
IF {ControlCurrent(),indControl}..Value~="" THEN RETURN ELSE ToClipboard({ControlCurrent(),indControl}..Value) {ControlCurrent(),indControl}..Value="" END
//------------------------------------------------------------------------------------------
IF {ControlCurrent(),indControl}..Value~="" THEN RETURN ELSE // Transfer to the clipboard ToClipboard({ControlCurrent(),indControl}..Value) END
//-------------------------------------------------------------------------------------------
// Retrieve from the clipboard {ControlCurrent(),indControl}..Value=Clipboard()
//------------------------------------------------------------------------------------------
sNote is string
// Retrieve the value found in the note sNote = {ControlCurrent(),indControl}..Note
// Store for the REDO {ControlCurrent(),indControl}..Note={ControlCurrent(),indControl}..Value
// Restores the former value (the one read in the file) {ControlCurrent(),indControl}..Value= sNote
//----------------------------------------------------------------------------------------------
IF NOT {ControlCurrent(),indControl}..Note~="" THEN // Restores the former value (stored during the UNDO) {ControlCurrent(),indControl}..Value={ControlCurrent(),indControl}..Note END
|
| |
| |
| Illustrations, screen shots |
|
| |
(To evaluate this resource, click 'Write a review') |
| | | |
No review or comment? Be the first one! |
Global init project
// Include the "KeyConst.wl" file to manage the keyboard keys EXTERN "KeyConst.WL"
In Button
Sendkey(“{PTRSRC}”)
Clipboard(img_tela_capturada)
Tabela.screen = img_tela_capturada
Tabela.datahora = datesys()+timesys()
Hadd(Tabela)
Compile e teste esses comandos
Vai pressionar a tecla printscreen e salvar no banco a imagem
Precisa que seja compilado para funcionar |
| Para funcionar o comando Clipboard voce deve compilar o projeto, no F9 de teste não funciona, precisa gerar o exe. |
| | |
| | | |