Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[HELP NEEDED]I want to make a script that...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Kardi
Expert Cheater
Reputation: 1

Joined: 03 Jul 2008
Posts: 204
Location: + rep me!

PostPosted: Mon Aug 23, 2010 2:41 pm    Post subject: [HELP NEEDED]I want to make a script that... Reply with quote

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
View user's profile Send private message MSN Messenger
Fantasy
I post too much
Reputation: 13

Joined: 29 Jul 2007
Posts: 3113

PostPosted: Mon Aug 23, 2010 2:49 pm    Post subject: Reply with quote

He wanted to make it himself.

I suggest using AutoIt.
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Mon Aug 23, 2010 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
XSV
GTH Moderator
Reputation: 9

Joined: 12 Oct 2005
Posts: 1007
Location: USA

PostPosted: Mon Aug 23, 2010 3:15 pm    Post subject: This post has 1 review(s) Reply with quote

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
View user's profile Send private message
TROLOLOLOLOLOLOLOLOLOLOLO
Expert Cheater
Reputation: -1

Joined: 27 Dec 2009
Posts: 100

PostPosted: Mon Aug 23, 2010 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
C-Dizzle
Grandmaster Cheater
Reputation: 89

Joined: 16 Mar 2008
Posts: 623

PostPosted: Mon Aug 23, 2010 3:33 pm    Post subject: Reply with quote

Nice alarm clock idea ^-^
Back to top
View user's profile Send private message
Fantasy
I post too much
Reputation: 13

Joined: 29 Jul 2007
Posts: 3113

PostPosted: Tue Aug 24, 2010 3:22 am    Post subject: Reply with quote

@XSV

He doesn't make it himself when he just copies it.
Back to top
View user's profile Send private message
Kardi
Expert Cheater
Reputation: 1

Joined: 03 Jul 2008
Posts: 204
Location: + rep me!

PostPosted: Tue Aug 24, 2010 11:45 am    Post subject: Reply with quote

Okay, fuck making it, just gimme something that makes it go into any browser and a selfchosen youtube video
Back to top
View user's profile Send private message MSN Messenger
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Tue Aug 24, 2010 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Maes
Advanced Cheater
Reputation: 10

Joined: 09 Apr 2009
Posts: 50

PostPosted: Tue Aug 24, 2010 6:39 pm    Post subject: Reply with quote

shouldn't this be in computer talk?
_________________
Account reclaimed by former owner?
Back to top
View user's profile Send private message
Kardi
Expert Cheater
Reputation: 1

Joined: 03 Jul 2008
Posts: 204
Location: + rep me!

PostPosted: Wed Aug 25, 2010 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Wed Aug 25, 2010 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Maes
Advanced Cheater
Reputation: 10

Joined: 09 Apr 2009
Posts: 50

PostPosted: Wed Aug 25, 2010 3:18 pm    Post subject: Reply with quote

Rokurai wrote:
shouldn't this be in computer talk?

_________________
Account reclaimed by former owner?
Back to top
View user's profile Send private message
XSV
GTH Moderator
Reputation: 9

Joined: 12 Oct 2005
Posts: 1007
Location: USA

PostPosted: Wed Aug 25, 2010 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites