如何在浏览器中模拟按钮单击?
我想模拟网站上的按钮单击(不是我的网站,www.gfainfo.com)。
他们希望页面出现在展会上的笔记本电脑上,并且不想一遍又一遍地单击“重播视频”按钮。
单击“开始”按钮时,视频将首次显示。 我希望视频循环显示。 有什么建议么? 视频结束时会显示“重播视频”按钮。 我需要用“宏”或其他东西点击它,这样它就会一遍又一遍地播放。
他们可以单击“开始”按钮来开始视频,他们只需要反复单击“重播视频”按钮即可。
I want to simulate a button click on a website (not mine, www.gfainfo.com).
They want the page appearing on a laptop at their tradeshow and don't want to have to click the "Replay Video" button over and over again.
When the "start" button is clicked the video displays the first time. I want the video to display in a loop. Any suggestions? At the end of the video a "Replay Video" button is displayed. I need to click it with a "macro" or something so it will play over and over.
They can click the "start" button to get the video started, they just need the "Replay Video" button clicked over and over.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
右键单击此下载视频(此链接是您的实际健身视频),然后使用 Adobe Media Player 播放它。
我使用 Fiddler 捕获视频的 URL。
但如果您实际上为这些人工作,您确实应该能够直接从他们那里获得更高质量的视频。
自动点击“重播”是一个糟糕的主意......我建议使用两个屏幕。 一个播放视频,另一个显示网站。
Right click this to download the video (this link is your actual fitness video) and then use Adobe Media Player to play it.
I used Fiddler to capture the URL for the video.
But if you're actually working for these people you really ought to be able to get a higher quality video from them directly.
Automatically clicking 'replay' is a terrible idea... I'd suggest two screens. One playing the video and the other showing the website.
好的,这是一个编程问答网站,所以我将提供一个编程答案,
由于没有目标编程语言,我当然会使用 java。
该程序的作用是每 N 秒(实际上是毫秒)在同一位置单击一次。
您只需将其调用为:
单击屏幕的坐标 300,400,然后每分钟再次单击一次(1 分钟 = 60000 毫秒)
Ok, this is a programming Question/Answer site, so I'm going to provide a programming answer,
Since there is no target programming language I'm going to use java of course.
What that program does, is click every N seconds ( milliseconds actually ) in the same place.
You just invoke it as:
To click on coordinates 300,400 of the screen and click again every minute ( 1 min = 60000 milliseconds )
如果您确实想在浏览器中显示它,而不是像 Simon 建议的那样使用媒体播放器,您可以看看 iMacros,它为包括 Firefox 和 IE 在内的许多平台执行浏览器脚本。 不过,我还没有尝试过使用 Flash 动画。
If you really want to display it in a browser, rather than using a media player as Simon suggests, you could take a look at iMacros, which does browser scripting for a number of platforms including Firefox and IE. I haven't tried it with Flash animations, though.
我能想到的专门模拟重复点击的最简单方法是 AutoIt v3 脚本,如下所示:
该脚本将方便地创建一个托盘图标,您可以从中暂停或终止它。
也就是说,下载视频并独立播放会更好,而获得专门用于标牌的更高质量的视频可能会更好。
The easiest approach I can think of to specifically simulate repeated clicking is an AutoIt v3 script something like this:
The script will conveniently create a tray icon from which you can pause or kill it.
That said, downloading the video and playing it stand-alone is better, and obtaining a higher quality video specifically for signage use is probably way better.
我曾经使用任何自动单击鼠标的程序(例如自动鼠标答题器)来执行此操作。
问题是你的电脑必须保持打开状态,网页必须可见,你不能做其他事情。
有谁知道一种简单的方法可以通过免费的公共网站(论坛或网络提供商)使用脚本或类似的东西来做到这一点?
也许将点击写成宏。
我想模拟上午 9 点到晚上 9 点随机时段的点击。
I use to do it with any program that automate Mouse clicks such as Automouse clicker.
The problem is that your computer has to stay turned on, and the web page has to be visible, you can't do other things.
Does anybody know an easy way to do it from a free public web site (forum o web provider) with a script or something like that?
Maybe writing the clicks as a macro.
I would like to simulate clicks at random periods from 9am to 9pm.