Using Sikuli to automate FFXI login and Win7 64-bit.

Asked by wildboy211

I use the double click to Playonline.
I then use wait for the main screen to come up with my username.
It comes up and then use Click to click on my username and it doesnt work (nothing happens).

When i run and show actions, it shows it clicking on it, but nothing happens in the program. Ive also tried using type(Key.ENTER) and it seems to type enter but playonline doesnt respond.

Im at step 3 in the tutorial:
http://www.bluegartr.com/threads/88964-Automating-FFXI-login

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
RaiMan (raimund-hocke) said :
#1

Do you have more than 1 monitor?

Revision history for this message
wildboy211 (wildboy211) said :
#2

No, single monitor.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Are you sure, that the app is the frontmost (accepting clicks) - maybe a switchApp() is needed?
How do you click() - with an image or a pixelposition? May be the click comes to fast (app not ready).

you may paste the relevant part of your script.

Revision history for this message
wildboy211 (wildboy211) said :
#4

Im uploading a video to youtube to show you what i have (i will provide link tonight since it is slow right now), ive also added switchapp("Playonline Viewer") and it still doesnt work, im clicking with an image, but when i run and show actions, it shows that its clicking the correct spot, but nothing happens:

doubleClick( ) 'Click Icon on desktop
wait( , 10000) 'Wait for login screen to appear
switchApp("PlayOnline Viewer") 'Bring to front
click( ) 'click on username

Revision history for this message
RaiMan (raimund-hocke) said :
#5

sounds weird.

'click on username --- is it the same position and click() you would use manually?

With preview adjust the clickpoint (target offset) to some other spot and look what happens.

worth a try:
m = find(<clickimage-username>)
print m
mouseMove(m); wait(0.5)
mouseDown(Button.LEFT)
wait(0.1) # here you can play with the waiting time
mouseUp()

Revision history for this message
wildboy211 (wildboy211) said :
#6

I can try that, heres the youtube video of what happens:
http://www.youtube.com/watch?v=vd_Mtz5lA2w

I will try the code youve given me and i will see if that works.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#7

I downloaded the stuff to my Win7 32bit.

I'm quite sure, you can forget your trials:
they somehow block the Java Robot actions, that Sikuli uses to simulate the mouse actions. Seems the app only accepts actions coming from the real mouse.

Don't know how they do that, I'm not that expert. But seems that many people try to automate the game and they are fed up ;-)

Revision history for this message
wildboy211 (wildboy211) said :
#8

Darn, FFXI login is so long and tedious, i was hoping this couldve helped me. Good program though, i may use if for something else.

Revision history for this message
wildboy211 (wildboy211) said :
#9

Thanks RaiMan, that solved my question.