I just found the mini mouse macro a few days ago. I tried to create a macro to select some text in one window, switch to another and paste it there. I stuck with switching between the windows. I tried alt+tab but obviously this hotkey is reserved by windows and doesnt work properly. I also tried with select window by name but this also doesn't switch between the windows. Any suggest what I do wrong? The script should run under windows xp.
I tried the macro like this:
1 | 426 | 943 | 1719 | Keypress Ctrl+ | c
2 | RUN ACTION | | | | SELECT WINDOW BY NAME | Unbenannt - Editor
3 | 426 | 943 | 3234 | Keypress tab
4 | 426 | 943 | 1703 | Keypress Ctrl+ | v
5 | RUN ACTION | | | | SELECT WINDOW BY NAME | test.xlsx - OpenOffice Calc
Your macro lines look fine and looks like it should work as expected. Maybe the problem is the window names.
We can test that with a basic macro: 2 | RUN ACTION | | | | SELECT WINDOW BY NAME | test.txt - Notepad 3 | X | X | 2000 | Keypress Hello Test.txt 4 | RUN ACTION | | | | SELECT WINDOW BY NAME | output.txt - Notepad 5 | X | X | 2000 | Keypress Hello output.txt For the macro above to work we need two saved notepad files open. One called text.txt and the other called output.txt.
Create those files, open them, then paste the macro above into the macro list and run it.
The macro should select test.txt, wait 2 seconds then paste the words 'Hello Test.txt'. Then the macro will then select output.txt and paste 'Hello output.txt'.
If this works for you then the problem is your current window names 'Unbenannt - Editor' and 'test.xlsx - OpenOffice Calc'.
Hello Steve Thank you very much for your help. With your test macro it works fine. I used a tool to read out windows names (this would be a nice feature if it would be possible to list all open windows by name/process id) but I really might have used the wrong windows names. Meanwhile i used mouse click to switch between the two windows which worked well.