07-25-2012, 05:12 AM
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:
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
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:
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
But I don't know how to put that in QM.
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:
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
,,,;;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:
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
But I don't know how to put that in QM.