Random number of pressing specified key.

  • Автор темы Автор темы Overloaded
  • Дата начала Дата начала

Overloaded

Новичок
Регистрация
17.02.2016
Сообщения
5
Реакции
2
Баллы
1
Hello guys!

I'm struggling with some ajax dropdown menu, which has dynamically generated css. The only way to bypass it is to emulate keyboard strokes like tab, space, arrow down and up. My script looks like this:

{TAB}{TAB} {DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN} {TAB} {DOWN}{DOWN}

Is there any way to randomize number of {DOWN} just to select random position from list?
 
SOmething like this))
 

Вложения

  • 1.xmlz
    1.xmlz
    21 KB · Просмотры: 200
Appending to variable in a loop, everything is so obvious when you've already seen the solution :-) Thank you for quick support!
 
Solution is massive and looks ugly but it should do the trick )
 
I know it will and it does, I just feel stupid for not figuring it out before asking :P Thanks once again!
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)