473,545 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to automate vlc player using perl script

5 New Member
How to open vlc player using perl script

Requirement::
  1. open vlc player
  2. press (CTRL + "n") //It opens network stream
  3. enter url // In network stream page u have enter any url
  4. click play button in //network stream
  5. wait for 20 seconds
  6. close the vlc player

can anybody guide me how do it

Advance Thanks
Feb 27 '14 #1
8 2952
miller
1,089 Recognized Expert Top Contributor
Steps for finding a solution:
I don't know if that module will be able to help you with your specific project, but it's the first place I would start.

- Miller
Feb 27 '14 #2
RonB
589 Recognized Expert Moderator Contributor
Take a look at Win32::GuiTest. That module should let you accomplish what you want.

However, Perl may not be the best solution in this case. You may be better off using AutoHotKey
Feb 27 '14 #3
siva12venu
5 New Member
Hi RonB

Thanks for u r replay,Know i am trying with autohotkey.

Expand|Select|Wrap|Line Numbers
  1. n::
  2. Run C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
  3.  
  4. Send {Ctrl} 
  5. Send {n} 
  6. return
  7.  
I am able to open vlc player.
Can you please guide me how so send keys using autohot key script

Advance Thanks
Mar 11 '14 #4
siva12venu
5 New Member
Hi Ron,
Expand|Select|Wrap|Line Numbers
  1. p::
  2. Run C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
  3. sleep 5000
  4. Send, {CTRLDOWN}n{CTRLUP}
  5. sleep 5000
  6. send http://www.youtube.com/watch?v=voubrypx_r0
  7. sleep 5000
  8. Send {Enter}
  9. sleep 500000
  10. return
  11.  
I have tried this piece of script.But i am unable to play video url(wat i mentioned above)
Mar 11 '14 #5
RonB
589 Recognized Expert Moderator Contributor
Sorry, but I actually haven't used autohotkey yet, so I can't help with its coding.

I suggested it because that's what others in my dept use for automating tasks such as yours. Learning it is near the top of my list of things I need to do.
Mar 11 '14 #6
siva12venu
5 New Member
Hi Ron

Thanks for u r replay. I will try
Mar 18 '14 #7
siva12venu
5 New Member
Hi Ron,

The Above mentioned script is working fine.
Know i understand where did i mistake.

F1:: // In previous script i mentioned it as p while script is running P key is not work (Because autohotkey script using this key p). Because of this in script i have mentioned url in that p character is not taking vlc player.That's why i change F1 instead of P
Expand|Select|Wrap|Line Numbers
  1. LOOP
  2. {
  3. Run C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
  4. sleep 5000
  5. Send, {CTRLDOWN}n{CTRLUP}
  6. sleep 5000
  7. send http://www.youtube.com/watch?v=voubrypx_r0
  8. sleep 5000
  9. Send {Enter}
  10. sleep 20000
  11. Send, {CTRLDOWN}q{CTRLUP}
  12. }
  13.  
Thanks u gave some hint automate vlc using autohotkey.I did it.

Thanks once again...
Mar 18 '14 #8
Raj4perl
12 New Member
Hi Siva,

Why do you want to run VLC in perl itself.?

Give a try with simple batch file.

1.Open VLC through cmd line and throw url as an argument
2.give timedelay
3.taskill from tray to close it

If you use hotkey, you may not be able to control app when it runs in the background

-Raj
Aug 11 '14 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

4
10240
by: kk5151 | last post by:
Hi, Would like to learn and know how to sort the ip address using perl script? For example: 172.27.32.200 172.19.32.100 10.1.1.60 192.20.30.133
10
5146
by: kraj123 | last post by:
Hi Friends, I would apprciate, if anyone could help me out regarding coding tips for writing a perl script for automating a snapshot process. Snapshot is nothing but capturingn forms from different language database local servers like russia,japan..which are in csv file taken as input and comparing with present english database forms in our...
4
19672
by: jram01 | last post by:
Hi Folks, I am facing problem to to execute .sql command in sql prompt using perl script. I am able to connect sql promt using " my $odbcinput = "odbcinput.txt"; my $odbcoutput = "odbcoutput.txt"; open (ODBCSQLFH, ">$odbcinput") || die "Unable to create input file ($odbcinput) for odbcsql\n";
5
4999
by: leierwu | last post by:
1. I have a folder containing several files; 2. Now these files should be added a header with the file name in the first line; How can I complish this using perl script?
1
1945
by: jawas | last post by:
Can any body help to write the general Perl script to transfer file from one window XP machine to another window XP machine and then change the file name and send some command for e.g config, 9,9 to run that file which we changed the name. I really appreciate, I some one provide any sample Perl scipt in window enviorment. Thanks Jamal
4
4280
by: jyo123 | last post by:
Hi, Is there any way to write perl script to save the popup window into specified location.Please anyone help on this. Thanks is advance.
3
2208
by: gajendra98 | last post by:
Hi I am working on windows .....IS it possible to block the remote computer python plug-ins using perl script...could some one tell me how to perform these operations.....Thanks
3
4228
by: flow3rgirlz | last post by:
Hi all, I'm really new to Perl. I'm not sure where to post my topic as it between Perl and Visio. Anyway, I want to run a Visio macro automatically using Perl Script. $vis->Run($macro_to_run); I found this method to run in Word macro. I tried to use this macro in Word and it works. But when i use in Visio macro, it doesnt run the macro....
1
3007
by: sree ram | last post by:
code for getting maximum rows in excel sheet using perl script
2
1785
by: osm3000 | last post by:
Hi All, I'm using trying to make a script to send email using perl. I found this in http://bytes.com/topic/perl/answers/855265-perl-send-email I found this one, however it doesn't work. ////////////////////////////////////////////
0
7408
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7661
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7433
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7763
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5340
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.