Hello, been practicing creating automation which navigates though web pages using shortcuts (based on the practice rules I made).
This is what I want to do (look for for a company’s CEO name from Google):
- Open browser for the first time
- For each of data row, google the CEO name by:
- Send Hotkey Ctrl + L to access address bar
- Scrape data
repeat, and repeat no 2.
Problem:
When I want to confirm the result (CEO name) I use Message Box. But after the Message Box popped up and I closed it, the shortcuts failed (the Ctrl + L one). It seems like though the application is still visible on the screen, it is in the background and the focus is not on it. Well I could just use Write Line or using another workaround, but since this is practice, is there any way to force focus on a certain app on Windows?
Just notes, yes it its the same practice I made in when I posted in How to Access Google I’m Feeling Lucky From Browser Address Bar.