Sign in to follow this  
Followers 0
create4u

Some script help

8 posts in this topic

Hi All

Need some help with a script my cd eject button stoped working today and to eject the cd i have to go to explorer and right eject this is a bit of a pain in the butt. Dell said they will be out to fix this in two weeks as the pc has a two year fix at home on it. I cant wait two weeks or should i say cant be going to explorer ever time to eject the cd so a script that i can compile as an exe file would be good.

Rick :D

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

A simple CDTray("D:", "open") should do the trick.

Of course for "D:" fill in your drive and "open" can be replaced with "closed".

Alzo

Edited by marfdaman

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

hi

A bit new to all this i typed in CDTray("D:", "open") on line one and i cant build the exe am i doing someting wrong..

Share this post


Link to post
Share on other sites

Do you have the Scite-editor? If so, go to "Tools" and choose "Compile". If you don't, download it from the autoit site.

Alzo


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

Yea I have the editor and I go to file new type in the line and the compile is greyed out

Share this post


Link to post
Share on other sites

That's most likely because you haven't saved the file yet as an .au3 file. As soon as you do that, the whole list will show up (I hope?).


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

Thanks works a treat .. thumbs up

Share this post


Link to post
Share on other sites

YWC :D


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0