Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test macro file => compiled version .exe takes argument
#3
That's it!! THANKS!!

My first windows macro is 99% done exept for one last thing.
Everything in the macro works but the RUN command seems to freeze a bit when I use the command:
Code:
Copy      Help
run "D:\__DIRECT\___PORTABLE_APPS\__File_&_system-tools\virtual_desktops_portable\VirtuaWin.exe"

If I create a new macro with only the above command, it works.

But I get a pop-up: "Waiting while the window is hung" when I use it like this:


Macro winlauncher
Code:
Copy      Help
,,,;;PROCESS VIRTUAWIN
,,,int vwinkey=arr[0]
,,,str vwin=arr[1]            
,,,if(!empty(vwin))
,,,,int pid = ProcessNameToId("virtuawin" 0 1)
,,,,if(pid=0)
,,,,,run vwin "" "" "" 2
,,,,,key CSAF"{vwinkey}"
,,,,else
,,,,,key CSAF"{vwinkey}"

I am trying to wait for the "virtuawin" proces and if the pid is higher = 0 then it must be booted.

Whatever switch I use for "RUN" i keep getting the pop-up and it takes about 4 to 5 times longer to load "virtuawin.exe".
For example using this I keep getting the same problem:
Code:
Copy      Help
run vwin "" "" "" 0x200

important note: virtuawin always starts minimized and shows a green icon in the systray when loaded.

As an alternative I could use the windows command way
Code:
Copy      Help
cmd /c  " .... "
But I don't know how to put that in QM.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)