Best environment: Win7 64b an issue ?

Asked by Denis SAUNIER

Hi,
I'm just discovering that very promising project, but am not able to run even basic tests and features. The Piano example gives a runtime error (for an image it cannot find), and in all script when I type

type("http://www.sitehere.com")

I get a red exclamation mark in front of the line as if there was a syntax error, even in sample scripts I just opened.
I'm currently on a Win7 64bits PC with the latest Java 6 installed, could the OS be an issue ?
Else can you provide me a sample script that uses Firefox or Chrome and goes to a website ?

Else thanks for helping me get started !

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Denis SAUNIER (dsaunier) said :
#1

Ok sorry just learning. Even though I used the provided example, it seems some characters must be escaped in the domain name, because I managed to type a word in the address bar and type enter which searched it in Google. On to checking syntax because

type("virtualpiano")
type(Key.ENTER)

worked, whereas a domain fails.

Revision history for this message
eliteSKL (camaro70s) said :
#2

string literals see escape characters--> http://docs.python.org/reference/lexical_analysis.html#string-literals

this works like this
type("http://www.sitehere.com"+Key.ENTER)

type("virtualpiano"+Key.ENTER)

this --> http://sikuli.org/blog/2010/03/02/sikuli-plays-a-piano/ piano example is old. that is probably why your having trouble. i think you have to change the switchApp to the current App() class http://sikuli.org/docx/globals.html#App and then you might have better luck. also sleep() is now wait() http://sikuli.org/docx/region.html#Region.wait

Revision history for this message
eliteSKL (camaro70s) said :
#3

Can you help with this problem?

Provide an answer of your own, or ask Denis SAUNIER for more information if necessary.

To post a message you must log in.