Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Spyware and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

 
Reply to this topicStart new topic
> Need Help Creating A Script
Damaru
post Jan 1 2008, 01:09 AM
Post #1


Member
**

Group: Members
Posts: 43
Joined: 26-December 07
Member No.: 178,881



I would like to create a script that adds a dozen or so entries to the Run box's most recently used list each time I start my computer up...

Can anybody point me to an online resource that will teach me how to do this?

This post has been edited by Damaru: Jan 1 2008, 02:20 AM
Go to the top of the page
 
+Quote Post
Tomo2
post Jan 1 2008, 07:28 PM
Post #2


Senior Member
****

Group: Members
Posts: 391
Joined: 23-December 07
From: Wanganui, Aotearoa NZ
Member No.: 178,459



To add items to the drop down list in the run dialog you have to successfully execute them first, but you can create a script that opens the run dialog and enters a certain command to execute. I have no programming knowledge at all so I use AutoIt v3 to make scripts. It can also compile GUIs. http://www.autoitscript.com/autoit3/ thumbup2.gif


--------------------
L&P, World Famous in New Zealand since ages ago!

Avast! Antivirus : Spybot S&D : Trend Micro Housecall : Hosts file : HiJack This
Don't be too open minded - your brains will fall out
Go to the top of the page
 
+Quote Post
Amazing Andrew
post Jan 3 2008, 04:50 AM
Post #3


Bleepin' Night Watchman
******

Group: BC Advisor
Posts: 1,762
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



The MRU list for the Run box is located at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

There are 27 keys in that registry folder, all string values, labeled a through z and one labelled MRUlist.

Here's how it all works:

The a through z values are the actual commands that were typed in (with "\1" tacked on the end, but I don't know why). The runMRU list can only contain 26 entries corresponding to the 26 letters of the alphabet.

the MRUlist value contains a string of 26 letters representing the order of the MRUlist by the last command issued.

The script you will want to write should replace one or more of the lettered values with the entry you want (with the "/1" at the end). I would recommend leaving the MRUlist value alone, though; let Windows handle that.

Pretty much any scripting language that can access the registry will work. If it were me, I'd probably use a batch file and stick it in my Startup folder.

Feel free to ask if you have any questions. And, as always, backup your registry before tinkering!! No one has ever said "gee, I really wish I hadn't backed up my registry"


--------------------
Go to the top of the page
 
+Quote Post
Damaru
post Jan 4 2008, 09:20 AM
Post #4


Member
**

Group: Members
Posts: 43
Joined: 26-December 07
Member No.: 178,881



Hi Andrew,

Thanks a lot for that wonderfully elucidating response!

Even though I'm a total newcomer to this subject, everything you said makes perfect sense to me.

Looks like I've got my work cut out for me, heh thumbup.gif

This post has been edited by Damaru: Jan 4 2008, 11:11 AM
Go to the top of the page
 
+Quote Post
Amazing Andrew
post Jan 4 2008, 01:44 PM
Post #5


Bleepin' Night Watchman
******

Group: BC Advisor
Posts: 1,762
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



Glad to help! It occurred to me that all you may need to do is create a .reg file with the desired info and have it run at startup. I've never tried this so I don't know whether Windows will react nicely, but I don't see why it wouldn't.


--------------------
Go to the top of the page
 
+Quote Post
steev12
post Feb 5 2008, 02:36 AM
Post #6


New Member
*

Group: Members
Posts: 1
Joined: 5-February 08
Member No.: 188,358




Does this link help?

http://quick-help.net/Creating-A-Script
Go to the top of the page
 
+Quote Post
ActiveX
post Feb 15 2008, 12:34 PM
Post #7


New Member
*

Group: Members
Posts: 14
Joined: 14-February 08
From: SECRET
Member No.: 190,234



Well what kind of script are you trying to make??

Is it a windows script? if so i will give u simple directions

First, Create a new text document. You can do this by right clicking on the desktop, selecting new, and clicking "New Text Document".

Next you will have to edit this file, Right click on the-now on your desktop "New Text Document- and click "Edit".

This will open the document.

This is a basic script that will execute when you double click on the icon:

Microsoft=msgbox ("message",0,"message")

Now "0" is just a number that is used to answere the script, these numbers range from 0-99.

Now save this file as a script document.

CLick "File", Save As, and then save it as a (desired name here).vbs

You must type ".vbs" ( dont put quotes)

Then you may double click it, and it will be a script.

Thank You,

ActiveX
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28th August 2008 - 01:20 PM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Malware Removal Guides

© 2003-2008 All Rights Reserved Bleeping Computer LLC.