looking for help with this scroll code

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
tokstesla
Posts: 1
Joined: Mon Jun 06, 2016 3:03 pm

looking for help with this scroll code

Post by tokstesla » Mon Jun 06, 2016 3:09 pm

The scroll is for a list that pops up in a window.

The code is:
EVENTS TYPE=KEYPRESS XPATH="/html/body/div[2]/div/div[2]/div/div[2]/ul/li[50]/div/div[2]/span/button" KEYS="[34]"

it works perfect but the problem is it does not work when the browser is minimized, can anyone help me fix this?
janib4all
Posts: 132
Joined: Wed Jul 21, 2010 6:44 am
Location: Karachi, Sindh, Pakistan
Contact:

Re: looking for help with this scroll code

Post by janib4all » Tue Jun 07, 2016 8:43 pm

Well, you don't actually need this code to scroll down. Make sure 'Scroll to object when found" option is selected from the iMacro settings - it will take care of your problem.
Hire the BoT-fReeak!
botspecialist.blogspot.com
chivracq
Posts: 9412
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: looking for help with this scroll code

Post by chivracq » Wed Jun 08, 2016 3:51 am

tokstesla wrote:The scroll is for a list that pops up in a window.

The code is:
EVENTS TYPE=KEYPRESS XPATH="/html/body/div[2]/div/div[2]/div/div[2]/ul/li[50]/div/div[2]/span/button" KEYS="[34]"

it works perfect but the problem is it does not work when the browser is minimized, can anyone help me fix this?
CIM...! :mrgreen: (For me to answer your Thread, read my Sig...)
janib4all wrote:Well, you don't actually need this code to scroll down. Make sure 'Scroll to object when found" option is selected from the iMacro settings - it will take care of your problem.
Hum, no, not convinced, I guess OP ... but pfff... nevermind...!, Site/URL not mentioned, a bit useless Discussion, @OP, read my Sig for all useful Info WE NEED as Advanced Users to be able to help you...!
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
backcao
Posts: 6
Joined: Fri Jun 10, 2016 7:36 pm

Re: looking for help with this scroll code

Post by backcao » Fri Jun 10, 2016 7:42 pm

try this :
URL GOTO=javascript:window.scrollBy(0,1000)
Post Reply