I have almost all my code in qml, could you tell me what method/code I should use if I want to "activate" ShellExecute when pressing SPACE?
I tried
Keys.onSpacePressed: {
ShellExecute(NULL,"open","filename.bat",NULL,NULL,0);
}
Keys.onSpacePressed: {
ShellExecute(NULL,"open","filename.bat",NULL,NULL,0);
}
To copy to clipboard, switch view to plain text mode
But ShellExecute is not recognized.
I tried to put this code in main.cpp and this time it seems to be recognized (i.e it is not underlined in red) but obviously something is missing : )
Yours,
--Jay
Ps: I remind you guys that I started to code like a month ago, so I usually need very specific stuff. My theory on algorithm and the like is good but I lack the practice. Most problems comes from syntax issues and not knowing how to translate that algorithm into actual code : )
Bookmarks