Execute/"Enter" As A Function

Asked by Bumbles W

I'm brand new to programming, and so I realize this is probably a very simple question. I'm sorry - and I appreciate your patience while I'm trying to learn my best how to program.

I am currently trying to create a script that will log into an account on my behalf.
I currently have the structure set up, but I am running into a simple problem - how to execute the website I have pasted into the address bar.

For example, I have tried and failed with the following:
paste(ImageOfAddressBar, "www.google.com"+Key.Enter)
paste(ImageOfAddressBar, "www.google.com"\n)

paste(ImageOfAddressBar, "www.google.com")
\n

Note: I am using Windows & Chrome, which does not have a "go" button, or I would have used that already.

Not sure where to go from here.

Sorry so simple.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

type("l", Key. CTRL) # focus addressbar
paste(url)
type(Key. ENTER)

Revision history for this message
Bumbles W (warrenwiz5) said :
#2

Thanks RaiMan, that solved my question.