WHEEL_DOWN in Java using Eclipse IDE

Asked by Bindu

Hi,

I want to scroll down the web page using reg.wheel() method available in Sikuli Script. I am using Eclipse IDE with Java language. When I am using reg.wheel(WHEEL_DOWN, 10) in Sikuli IDE, the code is working fine, but when I try to use the same in Eclipse, WHEEL_DOWN is not recognized by eclipse. Is there any other keyword instead of WHEEL_DOWN that I need to use inorder to scroll down. Similary, I need help for Scrolling up. Please help me out.

Thanks,
Bin

Question information

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

reg.wheel(Button.WHEEL_DOWN, 10)

and

reg.wheel(Button.WHEEL_UP, 10)

Revision history for this message
Bindu (madhupenugonda-bindu) said :
#2

Hi RaiMan,

Thank you for the prompt reply, but still the Eclipse is showing error as "WHEEL_DOWN is not a field". Can you please provide me any other suggestions.

Thanks,
Bin

Revision history for this message
Bindu (madhupenugonda-bindu) said :
#3

Sorry Raiman.. Instead of SIKULI button I exported some other Library. Now the issues got resolved. Thank you very much