BleepingComputer.com: Need Help Creating A Script

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need Help Creating A Script

#1 User is offline   Damaru 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 68
  • Joined: 26-December 07

Posted 01 January 2008 - 01:09 AM

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: 01 January 2008 - 02:20 AM


#2 User is offline   Tomo2 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 402
  • Joined: 23-December 07
  • Gender:Male
  • Location:Wanganui, Aotearoa NZ

Posted 01 January 2008 - 07:28 PM

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/ :thumbsup:
L&P, World Famous in New Zealand since ages ago!
Posted Image
Avast! Antivirus : Spybot S&D : Trend Micro Housecall : Hosts file : HiJack This
Don't be too open minded - your brains will fall out

#3 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 03 January 2008 - 04:50 AM

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"
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#4 User is offline   Damaru 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 68
  • Joined: 26-December 07

Posted 04 January 2008 - 09:20 AM

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 :thumbsup:

This post has been edited by Damaru: 04 January 2008 - 11:11 AM


#5 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 04 January 2008 - 01:44 PM

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.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#6 User is offline   steev12 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 05-February 08

Posted 05 February 2008 - 02:36 AM


#7 User is offline   ActiveX 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 14
  • Joined: 14-February 08
  • Gender:Male
  • Location:SECRET

  Posted 15 February 2008 - 12:34 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users