Raised This Month: $12 Target: $400
 3% 

Notepad++ Tips and Tricks


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-26-2010 , 00:18   Re: Notepad++ Tips and Tricks
Reply With Quote #31

Quote:
Originally Posted by drekes View Post
If it works, you should add it to the first post.
Done. I made it more convenient to change filepaths. You will need to edit it with your file paths.

FYI, that error was fixed by removing the space between -o and the "
__________________

Last edited by fysiks; 05-26-2010 at 00:20.
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-26-2010 , 00:23   Re: Notepad++ Tips and Tricks
Reply With Quote #32

Works like a charm now.

I don't have any experience with dos, i googled a bit to see how it's work but i failed.

Thanks
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Old 05-26-2010, 16:21
Alka
This message has been deleted by Alka. Reason: Fail!
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-26-2010 , 21:28   Re: Notepad++ Tips and Tricks
Reply With Quote #33

I've been messing around with this batch things today and found a way to make a menu and open plugins.ini
when you select a choice it says it was unexpected, but it works.

Code:
@echo off
REM Name this file "compile_and_duplicate.bat" and put it in your scripting folder.

REM Notepad++ command below
REM cmd /k "$(CURRENT_DIRECTORY)\compile_and_duplicate "$(NAME_PART)" "$(FULL_CURRENT_PATH)""

REM Set folder paths here:
SET compiler_folder=C:\path\to\compiler\folder
SET plugin_folder=C:\path\to\compiled\folder
SET duplicate_folder=C:\path\to\duplicate\folder
SET pluginsini=C:\path\to\plugins.ini

SET name_part=%1
SET full_current_path=%2

:: Remove quotes
SET name_part=###%name_part%###
SET name_part=%name_part:"###=%
SET name_part=%name_part:###"=%
SET name_part=%name_part:###=%

:: Remove quotes
SET full_current_path=###%full_current_path%###
SET full_current_path=%full_current_path:"###=%
SET full_current_path=%full_current_path:###"=%
SET full_current_path=%full_current_path:###=%

REM Compile
%compiler_folder%\amxxpc.exe -o"%plugin_folder%\%name_part%.amxx" "%full_current_path%"
REM Duplicate to duplicate_folder
COPY "%plugin_folder%\%name_part%.amxx" "%duplicate_folder%\%name_part%.amxx"


:begin
echo.
echo.
echo    **********************
echo    *--------------------*
echo    *- Open Plugin.ini? -*
echo    *- Y = Yes, open it -*
echo    *- N = No, not now  -*
echo    *--------------------*
echo    **********************
echo.
echo.

choice /c:YN /n
if errorlevel 2 goto end
if errorlevel 1 goto plug


:plug
%pluginsini%
exit

:end
exit
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 05-27-2010 at 06:43.
drekes is offline
Send a message via MSN to drekes
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 06-01-2010 , 02:10   Re: Notepad++ Tips and Tricks
Reply With Quote #34

Any chance to make it save the current file first before compiling? Sometimes find myself keep forgetting to save then compile.
__________________
It's a mystery.
Mini_Midget is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-01-2010 , 06:36   Re: Notepad++ Tips and Tricks
Reply With Quote #35

Quote:
Originally Posted by Mini_Midget View Post
Any chance to make it save the current file first before compiling? Sometimes find myself keep forgetting to save then compile.
I will screw around with it some more for you.

EDIT: I seached around, but didn't find a way to do it.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 06-01-2010 at 07:52.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-01-2010 , 19:50   Re: Notepad++ Tips and Tricks
Reply With Quote #36

Quote:
Originally Posted by Mini_Midget View Post
Any chance to make it save the current file first before compiling? Sometimes find myself keep forgetting to save then compile.
The only way that I can think of is making a macro to save and then compile. However, I have never been successful in making a macro .
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-01-2010 , 20:26   Re: Notepad++ Tips and Tricks
Reply With Quote #37

Quote:
Originally Posted by fysiks View Post
The only way that I can think of is making a macro to save and then compile. However, I have never been successful in making a macro .
Could you explain what a macro is?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-01-2010 , 21:04   Re: Notepad++ Tips and Tricks
Reply With Quote #38

Quote:
Originally Posted by drekes View Post
Could you explain what a macro is?
Quote:
Main Entry: macro
Function: noun
Inflected Form(s): plural macros
Etymology: short for macroinstruction
Date: 1959

: a single computer instruction that stands for a sequence of operations
http://www.merriam-webster.com/dictionary/macro
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-01-2010 , 21:05   Re: Notepad++ Tips and Tricks
Reply With Quote #39

now that is some complicated stuff, gonna check in my language.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 06-02-2010 , 11:32   Re: Notepad++ Tips and Tricks
Reply With Quote #40

A macro is just a placeholder, an alias for some commands. For instance, in CS an alias is a macro.
Example:
Code:
alias myshinymacro "+jump;wait;-jump;+duck;wait;-duck;"
Seta00 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode