|
Post by helios on Sept 4, 2018 7:50:50 GMT
Hello
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
6 | 426 | 943 | 1938 | Keypress down
|
|
|
Post by Johnc on Sept 4, 2018 10:08:43 GMT
Try to maximize the 2 Windows first b4 you run the macro. They don't switch when minimized.
|
|
|
Post by Steve on Sept 5, 2018 6:53:20 GMT
Hi Helios, 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'. Regards, Steve.
|
|
|
Post by helios on Sept 5, 2018 7:25:04 GMT
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.
|
|