Hi i am trying to send keystrokes but i am have some doubts.
I send this:
And i receive with this:Qt Code:
QFile klog; klog.setFileName(directorio.tempPath() + "/logg"); cliente.sendMessage(from,"teclas|@|" + klog.readAll()); // crash when i do this klog.close();To copy to clipboard, switch view to plain text mode
Any suggestion or idea is good received thanks. The problem is when i read the file and i send the message, the application crashes and i cant send the keystrokes that i have in the file . Thanks in advance.Qt Code:
if (parametros[0] == "teclas") //I check the message and write the text to my textfield { ui->textTeclas->setText(parametros[1]); }To copy to clipboard, switch view to plain text mode
Aditional:
I think i could create other button; send some message and put since my server:
And then send key for key, i dont know if this will work fine. Any suggestions. I need to read some file and send the strokes to my client. Only that. Thanks in advance.Qt Code:
if(parametros[0] == "t") //message of client { int i; for(i=0;i<parametros.size();i++) //loop keystrokes { enviarTecla(parametros[i].toInt()); } return; }To copy to clipboard, switch view to plain text mode


Reply With Quote


Bookmarks