Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run compiled exe in background on other PC with no QM
#1
Is it possible to have a compiled EXE run in the background that wait's for a specific mouse or keyboard command.
The compiled EXE must run on another PC with no QM installed.

For example I want to run an exe that waits for a 'middle mouse click' or '[CTRL]+[ALT]+F10' , if one of those actions is detected then a messageBox will appear with the message "Action detected".

I looked in the helpfile, using the terms: "thread" , "exe" , "background" , ...
And I looked here:
Non-Transparent background in exe for SysAnimate32
Background processing : a definitive clarification

Another question:

Is this the correct way to use multiple, 'addfiles' , or is there better syntax? (a better/propper way).
I got it to work in the below specified way, but I am almost sure this is the wrong approach.

Macro Macro10
Code:
Copy      Help
#exe addfile "$desktop$\txt_file.txt" 1
#exe addfile "$desktop$\test_ico.ico" 77
ExeExtractFile(1 "$qm$\txt_file.txt")
ExeExtractFile(77 "$qm$\test_ico.ico")
#2
For hotkeys use __RegisterHotKey class or WH_KEYBOARD_LL hook. For mouse use WH_MOUSE_LL hook or 'wait 0 MM'. You can find examples in this forum, maybe in Archive.qml (first topic in 'QM extensions' subforum).

#exe addfile and ExeExtractFile is correct. Often you can use an easier way - in Make Exe dialog check 'Auto add...', and in macro use strings with resource id. Read more in QM Help.
#3
Ok, thank you!


Forum Jump:


Users browsing this thread: 1 Guest(s)