Jump to content











Photo
- - - - -

[Script]Notepad Script with Shortcut


  • Please log in to reply
38 replies to this topic

#1 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 12 August 2006 - 05:46 AM

Can a script be made to add notepad or Notepad++. Or a script that has both but with option to include either one. :P

#2 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 12 August 2006 - 03:57 PM

Here is a script that copy notepad, create shortcuts, and register .txt files.It also enables editing .reg files.

But can you explain what notepad++ is?

You can find notepad script here

#3 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 12 August 2006 - 04:42 PM

But can you explain what notepad++ is?


Thank you for the script. You even added a plus to be able to edit reg and txt files. :P

More info can be found on notepad++
http://notepad-plus....net/uk/site.htm

Notepad++ is a free source code editor (and Notepad replacement), which supports several programming languages, running under the MS Windows environment



Its working well.
Can you update to give the person the option to include the desktop, the Start Menu Shortcuts or A custom place in the start menu.

Something similar or better then the following example:
Posted Image

This type of interaction could be implemented to future added Programs. It would make it easier on users to choose. instead of them trying to figure how to edit scripts. If you could see what was being written when selected for example Desktop or any of the other options. It would give the user somekind of example on how to use the custom Option. If it could show the shortcut in the custom space then the user could edit it to their custom needs.

For Example lets say I wanted to create a Desktop Icon within a folder.
I could select the Desktop Option and it would show me What it does to create the shortcut. And lets say I wanted to put that shortcut whithin a folder on the desktop, then you would have to use the custom to update that shortcut. Hope it makes sense.

Another idea. The ability to see what the shortcut will do and the ability to edit it so that a person could change the name of the program to there needs. It woulnt necesserally have the default Notepad name.

Update:
I dont know how the shortcuts thing works even though i saw an example:
But it could be something like this


Posted Image

#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 12 August 2006 - 05:28 PM

Here is a script that copy notepad, create shortcuts, and register .txt files.It also enables editing .reg files.


I suggest to register .ini files, too (look into projectinfo.ini just by double click)

Peter

#5 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 13 August 2006 - 11:19 AM

Thanks all for suggestions!

@ Thehive:
Your ideas were very good but i cant create custom shortcuts with the current version of the shortcuts script . I mean that the command was writen in shortcut.inf file but the shortcut couldn't be created because its folder wasn't created.
I also believe that you don't need to edit the shortcut as you can't change the path of notepad.exe but i have added tho option to select wich shortcuts to create
@ psc:
I have also registered .ini and .inf files

Post if you want to register another file type. I'm also trying to activate openwith functionality.

Edit:I have seen Notepad++ but i dont know the rights to add it as ecoded files.Can you suggest me what to do?

You can find notepad script here

#6 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 13 August 2006 - 06:33 PM

Edit:I have seen Notepad++ but i dont know the rights to add it as ecoded files.Can you suggest me what to do?


You are free to encode and distribute notepad++ without any restrictions since it's licensed as GNU.

I've been using notepad++ for a long time now and it's definitively a good tool to use when handling large text files.

Most freeware files can be encoded as well, but you should include the license from the author that autorizes this sort of distribution. The script interface allows to add a text file component that is specially meant for this use.

:P

#7 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 14 August 2006 - 03:21 PM

I have created tow new separate scripts for notepad and notepad++ but idon't know where to post them bcasue they are about 1mb. :P

Where can i upload it? :P

#8 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 14 August 2006 - 04:48 PM

I would say that http://www.smiley.boot-land.net is a good place for this..

Welcome to the .script developer group! :P

#9 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 14 August 2006 - 05:22 PM

Thanks Nuno!! :P

New release is ready! :P

I have created separate Notepad and Notepad++ script. Each one lets you select if you want to register file types in case you want to install both. I have also added the option to enter a custom name for the shortcut.

Currently both scripts support editing .txt , .reg , .inf , and .ini files but i'm trying to add support for more file types.

In the notepad++ script i haven't included the plugins folder because it gets bery big.(Now that i have a place in bootland i will try to include the whole)
If you miss any functionality, ask me to add it to the script.

Notepad v2: notepad.script
Notepad++ v1: notepad++.script

#10 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 15 August 2006 - 03:40 AM

I like what you did. Good update.

Can you add and allow which files you want to "Register File Types".
I have an idea by reading this thread what file types it takes but a new user wont have an idea and if they just try to use both scripts they might not know what is going on.

#11 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 15 August 2006 - 11:10 PM

If your script gets too big, then post a script without encoded files and include some routines to allow downloading the needed files from your site..

There are commands that are quite usefull for downloading files and you can use 7z.exe to unzip them where needed..

Using an IF command you can check if they were already downloaded previously and continue from there..


Just checked your homepage, nice going..

:P

#12 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 16 August 2006 - 02:15 AM

Testing Notepad++:
Can you make it fit in an 800x600 Resolution. Right now it covers to much of the screen to the right.

Something like this:
Posted Image

#13 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 16 August 2006 - 06:26 PM

New verisons are ready!
Now the user can select which filetypes to register with each program :P

Can you make it fit in an 800x600 Resolution. Right now it covers to much of the screen to the right.

I don't know how to set the window size. Any suggestions?

This script also support the update function so the next versions can be updated via openbuilder

Notepad v004
Notepad++ v002


#14 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 16 August 2006 - 07:36 PM

Thanks! will test. I like that you also include version numbers. Helps in keeping up with scripts updates.


Notepad
Posted Image

Notepad++
Posted Image

They seem to be working.

:P

#15 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 16 August 2006 - 08:10 PM

Here is the Licence with more breaks so it wont take to much to the right.

GNU GENERAL PUBLIC LICENSE

Version 2, June 1991 



Copyright (C) 1989, 1991 Free Software Foundation, Inc.  

59 Temple Place - Suite 330, Boston, MA  02111-1307, USA



Everyone is permitted to copy and distribute verbatim copies

of this license document, but changing it is not allowed.



Preamble

The licenses for most software are designed to take away 

your freedom to share and change it. By contrast, the GNU 

General Public License is intended to guarantee your 

freedom to share and change free software--to make sure 

the software is free for all its users. This General 

Public License applies to most of the Free Software 

Foundation's software and to any other program whose 

authors commit to using it. (Some other Free Software 

Foundation software is covered by the GNU Library 

General Public License instead.) You can apply it to 

your programs, too. 



When we speak of free software, we are referring to 

freedom, not price. Our General Public Licenses are 

designed to make sure that you have the freedom to 

distribute copies of free software (and charge for

 this service if you wish), that you receive source 

code or can get it if you want it, that you can 

change the software or use pieces of it in new 

free programs; and that you know you can do 

these things. 



To protect your rights, we need to make restrictions 

that forbid anyone to deny you these rights or to 

ask you to surrender the rights. These restrictions 

translate to certain responsibilities for you if you 

distribute copies of the software, or if you modify it. 



For example, if you distribute copies of such a 

program, whether gratis or for a fee, you must 

give the recipients all the rights that you have. 

You must make sure that they, too, receive or can get 

the source code. And you must show them these terms 

so they know their rights. 



We protect your rights with two steps: (1) copyright 

the software, and (2) offer you this license which 

gives you legal permission to copy, distribute 

and/or modify the software. 



Also, for each author's protection and ours, we want 

to make certain that everyone understands that there 

is no warranty for this free software. If the software 

is modified by someone else and passed on, we want its 

recipients to know that what they have is not the original, 

so that any problems introduced by others will not reflect 

on the original authors' reputations. 



Finally, any free program is threatened constantly by 

software patents. We wish to avoid the danger that 

redistributors of a free program will individually obtain 

patent licenses, in effect making the program proprietary. 

To prevent this, we have made it clear that any patent must 

be licensed for everyone's free use or not licensed at all. 



The precise terms and conditions for copying, distribution 

and modification follow. 



TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License applies to any program or other work 

which contains a notice placed by the copyright holder 

saying it may be distributed under the terms of this General 

Public License. The "Program", below, refers to any such 

program or work, and a "work based on the Program" means 

either the Program or any derivative work under copyright 

law: that is to say, a work containing the Program or a 

portion of it, either verbatim or with modifications and/or 

translated into another language. (Hereinafter, translation 

is included without limitation in the term "modification".) 

Each licensee is addressed as "you". 



Activities other than copying, distribution and modification 

are not covered by this License; they are outside its scope. 

The act of running the Program is not restricted, and the 

output from the Program is covered only if its contents 

constitute a work based on the Program (independent of 

having been made by running the Program). Whether that 

is true depends on what the Program does. 



1. You may copy and distribute verbatim copies of the 

Program's source code as you receive it, in any medium, 

provided that you conspicuously and appropriately publish 

on each copy an appropriate copyright notice and disclaimer 

of warranty; keep intact all the notices that refer to this 

License and to the absence of any warranty; and give any 

other recipients of the Program a copy of this License 

along with the Program. 



You may charge a fee for the physical act of transferring 

a copy, and you may at your option offer warranty 

protection in exchange for a fee. 



2. You may modify your copy or copies of the Program 

or any portion of it, thus forming a work based on 

the Program, and copy and distribute such modifications 

or work under the terms of Section 1 above, provided that 

you also meet all of these conditions: 





a) You must cause the modified files to carry prominent 

notices stating that you changed the files and the date 

of any change. 



b) You must cause any work that you distribute or publish, 

that in whole or in part contains or is derived from the 

Program or any part thereof, to be licensed as a whole at 

no charge to all third parties under the terms of this License. 



c) If the modified program normally reads commands 

interactively when run, you must cause it, when started 

running for such interactive use in the most ordinary way, 

to print or display an announcement including an appropriate 

copyright notice and a notice that there is no warranty 

(or else, saying that you provide a warranty) and that users 

may redistribute the program under these conditions, and 

telling the user how to view a copy of this License. 

(Exception: if the Program itself is interactive but does 

not normally print such an announcement, your work based 

on the Program is not required to print an announcement.) 

These requirements apply to the modified work as a whole. 

If identifiable sections of that work are not derived from 

the Program, and can be reasonably considered independent 

and separate works in themselves, then this License, and 

its terms, do not apply to those sections when you 

distribute them as separate works. But when you 

distribute the same sections as part of a whole which 

is a work based on the Program, the distribution of 

the whole must be on the terms of this License, whose 

permissions for other licensees extend to the entire whole, 

and thus to each and every part regardless of who wrote it. 

Thus, it is not the intent of this section to claim rights 

or contest your rights to work written entirely by you; 

rather, the intent is to exercise the right to control 

the distribution of derivative or collective works based 

on the Program. 



In addition, mere aggregation of another work not based 

on the Program with the Program (or with a work based on 

the Program) on a volume of a storage or distribution 

medium does not bring the other work under the scope 

of this License. 



3. You may copy and distribute the Program (or a work 

based on it, under Section 2) in object code or executable 

form under the terms of Sections 1 and 2 above provided 

that you also do one of the following: 



a) Accompany it with the complete corresponding 

machine-readable source code, which must be distributed 

under the terms of Sections 1 and 2 above on a medium 

customarily used for software interchange; or, 



b) Accompany it with a written offer, valid for at least 

three years, to give any third party, for a charge no more 

than your cost of physically performing source distribution, 

a complete machine-readable copy of the corresponding source 

code, to be distributed under the terms of Sections 1 and 2 

above on a medium customarily used for software interchange; or, 



c) Accompany it with the information you received as to 

the offer to distribute corresponding source code. 

(This alternative is allowed only for noncommercial 

distribution and only if you received the program 

in object code or executable form with such an offer, 

in accord with Subsection b above.) 

The source code for a work means the preferred form 

of the work for making modifications to it. For an 

executable work, complete source code means all the 

source code for all modules it contains, plus any 

associated interface definition files, plus the scripts 

used to control compilation and installation of the 

executable. However, as a special exception, the source 

code distributed need not include anything that is 

normally distributed (in either source or binary form) 

with the major components (compiler, kernel, and so on) 

of the operating system on which the executable runs, 

unless that component itself accompanies the executable. 

If distribution of executable or object code is made by 

offering access to copy from a designated place, then 

offering equivalent access to copy the source code from 

the same place counts as distribution of the source code, 

even though third parties are not compelled to copy the 

source along with the object code. 



4. You may not copy, modify, sublicense, or distribute 

the Program except as expressly provided under this 

License. Any attempt otherwise to copy, modify, sublicense 

or distribute the Program is void, and will automatically 

terminate your rights under this License. However, parties 

who have received copies, or rights, from you under this 

License will not have their licenses terminated so long 

as such parties remain in full compliance. 



5. You are not required to accept this License, since you

 have not signed it. However, nothing else grants you 

permission to modify or distribute the Program or its 

derivative works. These actions are prohibited by law 

if you do not accept this License. Therefore, by modifying 

or distributing the Program (or any work based on the Program), 

you indicate your acceptance of this License to do so, and all 

its terms and conditions for copying, distributing or modifying 

the Program or works based on it. 



6. Each time you redistribute the Program (or any work based 

on the Program), the recipient automatically receives a 

license from the original licensor to copy, distribute or 

modify the Program subject to these terms and conditions. 

You may not impose any further restrictions on the recipients' 

exercise of the rights granted herein. You are not responsible 

for enforcing compliance by third parties to this License. 



7. If, as a consequence of a court judgment or allegation of 

patent infringement or for any other reason (not limited to 

patent issues), conditions are imposed on you (whether by 

court order, agreement or otherwise) that contradict the 

conditions of this License, they do not excuse you from the 

conditions of this License. If you cannot distribute so as 

to satisfy simultaneously your obligations under this License 

and any other pertinent obligations, then as a consequence you 

may not distribute the Program at all. For example, if a patent 

license would not permit royalty-free redistribution of the 

Program by all those who receive copies directly or indirectly 

through you, then the only way you could satisfy both it and 

this License would be to refrain entirely from distribution 

of the Program. 



If any portion of this section is held invalid or unenforceable 

under any particular circumstance, the balance of the section is 

intended to apply and the section as a whole is intended to 

apply in other circumstances. 



It is not the purpose of this section to induce you to infringe 

any patents or other property right claims or to contest 

validity of any such claims; this section has the sole 

purpose of protecting the integrity of the free software 

distribution system, which is implemented by public license 

practices. Many people have made generous contributions 

to the wide range of software distributed through that 

system in reliance on consistent application of that 

system; it is up to the author/donor to decide if he or 

she is willing to distribute software through any other 

system and a licensee cannot impose that choice. 



This section is intended to make thoroughly clear what 

is believed to be a consequence of the rest of this License. 



8. If the distribution and/or use of the Program is 

restricted in certain countries either by patents or 

by copyrighted interfaces, the original copyright 

holder who places the Program under this License may 

add an explicit geographical distribution limitation 

excluding those countries, so that distribution is 

permitted only in or among countries not thus excluded. 

In such case, this License incorporates the limitation 

as if written in the body of this License. 



9. The Free Software Foundation may publish revised 

and/or new versions of the General Public License from 

time to time. Such new versions will be similar in spirit 

to the present version, but may differ in detail to 

address new problems or concerns. 



Each version is given a distinguishing version number. 

If the Program specifies a version number of this License 

which applies to it and "any later version", you have the 

option of following the terms and conditions either of 

that version or of any later version published by the 

Free Software Foundation. If the Program does not specify 

a version number of this License, you may choose any 

version ever published by the Free Software Foundation. 



10. If you wish to incorporate parts of the Program 

into other free programs whose distribution conditions 

are different, write to the author to ask for permission. 

For software which is copyrighted by the Free Software 

Foundation, write to the Free Software Foundation; we 

sometimes make exceptions for this. Our decision will 

be guided by the two goals of preserving the free status 

of all derivatives of our free software and of promoting 

the sharing and reuse of software generally. 



NO WARRANTY



11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE 

IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 

APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING 

THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE 

PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER 

EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 

THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 

FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE 

QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. 

SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE 

COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 



12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW 

OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, 

OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE 

THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR 

DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 

CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY 

TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 

DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED 

BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO 

OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR 

OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 

SUCH DAMAGES. 





END OF TERMS AND CONDITIONS


#16 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 28 August 2006 - 11:01 AM

In the qemu explorer, after I made the shell32.dll UPX change like suggested by Smiley, I still got no icons for .INI, .INF files.

I changed in the notepad script some commas to #$c, e.g
If,%pCheckBox7%,Equal,True,RegWrite,"HKLM",0x1,"Tmp_software\Classes

\inifile\DefaultIcon",,"%SystemRoot%\System32\shell32.dll#$c-151"
Now it works.

Peter

#17 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 28 August 2006 - 03:35 PM

New release is redy!

Thanx TheHive and Psc!! :P

Notepad v005: Download
Notepad++ v003:Download

#18 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 28 August 2006 - 04:05 PM

Nice work! :P

btw: There is a typo on notepad's description..

:P

#19 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 28 August 2006 - 04:09 PM

btw: There is a typo on notepad's description..


Where?

#20 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 28 August 2006 - 04:16 PM

New release is redy!

Thanx TheHive and Psc!! :P

Notepad v005: Download
Notepad++ v003:Download


Included Notepad in my project (I don't want ++, work on my TextPad)
:P
Peter

#21 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 28 August 2006 - 04:18 PM

:P

Attached Thumbnails

  • notepad.JPG


#22 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 28 August 2006 - 04:18 PM

Where?

change

Will add Notapd to the PE compilation.

to

Will add Notepad to the PE compilation.

:P
Peter

#23 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 28 August 2006 - 04:20 PM

Why we do not open a chat room?

Peter

#24 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 28 August 2006 - 04:27 PM

hmm.. a shoutbox? :P

I'll see if I find a good invision board implementation.. :P

#25 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 28 August 2006 - 04:30 PM

Typo fixed! :P

Please download again the same version because i don't want to make a new version because of a silly mistake :P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users