| View previous topic :: View next topic |
| Author |
Message |
Kardi Expert Cheater
Reputation: 1
Joined: 03 Jul 2008 Posts: 204 Location: + rep me!
|
Posted: Mon Aug 23, 2010 2:41 pm Post subject: [HELP NEEDED]I want to make a script that... |
|
|
I want to make a script that, opens chrome and a youtube video (plays it etc.), 07:00 am. some help?
Didn't really know where to post.
|
|
| Back to top |
|
 |
Fantasy I post too much
Reputation: 13
Joined: 29 Jul 2007 Posts: 3113
|
Posted: Mon Aug 23, 2010 2:49 pm Post subject: |
|
|
He wanted to make it himself.
I suggest using AutoIt.
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Mon Aug 23, 2010 2:51 pm Post subject: |
|
|
Or just schedule a task to run
chrome.exe youtube.com/myvideo
Should work. Chrome can have a url appended to command line execution.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
XSV GTH Moderator
Reputation: 9
Joined: 12 Oct 2005 Posts: 1007 Location: USA
|
Posted: Mon Aug 23, 2010 3:15 pm Post subject: |
|
|
Well if you want it scripted.
Download AutoIt:
http://www.autoitscript.com/autoit3/downloads.shtml
After Installing, Go Into Start Menu->AutoIt->scITE Script Editor
Paste This In:
| Code: | $x=0
While($x=0)
$time = @hour & ":" & @MIN
if($time="7:00") Then
$my_url = "www.youtube.com"
ShellExecute ( "C:\Program Files (x86)\Mozilla Firefox\firefox.exe", $my_url )
$x=1
EndIF
Wend |
Change "www.youtube.com" with the link you want opened.
Change "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" with the file location of Google Chrome
Save it somewhere.
Then run the script, and it will load the page at whatever time you want.
_________________
Last edited by XSV on Mon Aug 23, 2010 3:28 pm; edited 1 time in total |
|
| Back to top |
|
 |
TROLOLOLOLOLOLOLOLOLOLOLO Expert Cheater
Reputation: -1
Joined: 27 Dec 2009 Posts: 100
|
Posted: Mon Aug 23, 2010 3:26 pm Post subject: |
|
|
| If you're using a .NET language, use System.Diagnostics.Process.Start("URL HERE"); and that will open the default browser to that URL.
|
|
| Back to top |
|
 |
C-Dizzle Grandmaster Cheater
Reputation: 89
Joined: 16 Mar 2008 Posts: 623
|
Posted: Mon Aug 23, 2010 3:33 pm Post subject: |
|
|
| Nice alarm clock idea ^-^
|
|
| Back to top |
|
 |
Fantasy I post too much
Reputation: 13
Joined: 29 Jul 2007 Posts: 3113
|
Posted: Tue Aug 24, 2010 3:22 am Post subject: |
|
|
@XSV
He doesn't make it himself when he just copies it.
|
|
| Back to top |
|
 |
Kardi Expert Cheater
Reputation: 1
Joined: 03 Jul 2008 Posts: 204 Location: + rep me!
|
Posted: Tue Aug 24, 2010 11:45 am Post subject: |
|
|
| Okay, fuck making it, just gimme something that makes it go into any browser and a selfchosen youtube video
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Tue Aug 24, 2010 12:03 pm Post subject: |
|
|
Create a text file, place this into it.
| Code: | @echo off
cd C:\Program Files\Mozilla Firefox\
START firefox.exe http://www.youtube.com/user/deadmau5?blend=2&ob=4 |
Replace my link with your own.
Rename file to something like youtube.bat
Create a scheduled task to run at whatever day and time you wish.
Batch file gets executed.
Try it out.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
Maes Advanced Cheater
Reputation: 10
Joined: 09 Apr 2009 Posts: 50
|
Posted: Tue Aug 24, 2010 6:39 pm Post subject: |
|
|
shouldn't this be in computer talk?
_________________
Account reclaimed by former owner? |
|
| Back to top |
|
 |
Kardi Expert Cheater
Reputation: 1
Joined: 03 Jul 2008 Posts: 204 Location: + rep me!
|
Posted: Wed Aug 25, 2010 2:09 pm Post subject: |
|
|
| AhMunRa wrote: | Create a text file, place this into it.
| Code: | @echo off
cd C:\Program Files\Mozilla Firefox\
START firefox.exe http://www.youtube.com/user/deadmau5?blend=2&ob=4 |
Replace my link with your own.
Rename file to something like youtube.bat
Create a scheduled task to run at whatever day and time you wish.
Batch file gets executed.
Try it out. |
I'll find out tommorow d;
|
|
| Back to top |
|
 |
AhMunRa Grandmaster Cheater Supreme
Reputation: 27
Joined: 06 Aug 2010 Posts: 1117
|
Posted: Wed Aug 25, 2010 2:52 pm Post subject: |
|
|
It works, I've already tested it, except for the part of putting it into a scheduled task, but I've put batch files in as scheduled tasks before, I know they work.
It should work similar for Chrome too. Just change the directory.
You also need that cd C:\<directory> command in there, when you run a batch it will auto-start in whatever directory you are in. You could drop it to 2 lines or even 1 by taking out @echo off, and leaving out the cd command and placing your batch file into your chrome folder.
For maintainability sake, I keep all my batch files in one location, so the next admin doesn't have to hunt down 7 million batch files (note 7 million is a slight exaggeration).
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.> |
|
| Back to top |
|
 |
Maes Advanced Cheater
Reputation: 10
Joined: 09 Apr 2009 Posts: 50
|
Posted: Wed Aug 25, 2010 3:18 pm Post subject: |
|
|
| Rokurai wrote: | | shouldn't this be in computer talk? |
_________________
Account reclaimed by former owner? |
|
| Back to top |
|
 |
XSV GTH Moderator
Reputation: 9
Joined: 12 Oct 2005 Posts: 1007 Location: USA
|
Posted: Wed Aug 25, 2010 8:18 pm Post subject: |
|
|
| Fantasy wrote: | @XSV
He doesn't make it himself when he just copies it. |
He has to find the correct file directory lol. And the youtube link!
_________________
|
|
| Back to top |
|
 |
|