Sign in to follow this  
Followers 0
francisbojczuk

Sending keys to google chrome

6 posts in this topic

Hi,

I have 6x4K monitors on a wall. I want about 7 instances of google chrome running. I have gotten as far as being able to automate opening google chrome, going to the specific websites and thats about it. When I use WinMove, the windows do not move at all, and I can't resize them. To go round this I thought about sending keys to make each instance snap to the side (Win + Right/Left) and then move to whichever monitor I want it on (Win +Shift +Left/Right). It seems everytime I use send(etc etc), instead of sending the keys to google chrome it just sends them to the desktop. E.g. the start menu opens after the website loads, and that is it. I'm really stuck and would really appreciate any help.

Thanks.

Share this post


Link to post
Share on other sites



Are you ensuring the Window is active (WinActivate)? Once you get past just moving the windows where you want them, I would suggest looking at the Chrome UDF for any other automation tasks.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Just now, JLogan3o13 said:

Are you ensuring the Window is active (WinActivate)? Once you get past just moving the windows where you want them, I would suggest looking at the Chrome UDF for any other automation tasks.

I've only just started using this software yesterday so I'm sorry if I'm sounding a little stupid but I have put WinActivate("chrome.exe") after running it. and the same thing happens.

Share this post


Link to post
Share on other sites

Not a problem, we were all on Day 1 at one point. Look at WinActivate in the help file. You would do WinActivate("<title of window>", "<unique text in window>"). Use the AutoIt Window Info tool (in the same directory where you installed AutoIt) to get the information you need.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
37 minutes ago, JLogan3o13 said:

Not a problem, we were all on Day 1 at one point. Look at WinActivate in the help file. You would do WinActivate("<title of window>", "<unique text in window>"). Use the AutoIt Window Info tool (in the same directory where you installed AutoIt) to get the information you need.

I have done that and unfortunately it either spits out an error or does the same thing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0