AkelPad RePlace Notepad

Just starting out? Need help? Post your questions and find answers here.
Olli
Addict
Addict
Posts: 1267
Joined: Wed May 27, 2020 12:26 pm

Re: AkelPad RePlace Notepad

Post by Olli »

Check all the parameters.

Code: Select all

MessageRequester("params", Str(count) )
What is the value ?
AZJIO
Addict
Addict
Posts: 2226
Joined: Sun May 14, 2017 1:48 am

Re: AkelPad RePlace Notepad

Post by AZJIO »

Code: Select all

Count = CountProgramParameters()
If Count
  param$ = ""
  For i = 0 To Count - 1
    param$ + ProgramParameter(i) + " "
  Next
  param$ = Left(param$, Len(param$) - 1)
EndIf
SharkyEXE
User
User
Posts: 35
Joined: Sat Feb 26, 2022 6:33 pm

Re: AkelPad RePlace Notepad

Post by SharkyEXE »

AZJIO wrote: Mon Oct 10, 2022 6:15 am

Code: Select all

Count = CountProgramParameters()
If Count
  param$ = ""
  For i = 0 To Count - 1
    param$ + ProgramParameter(i) + " "
  Next
  param$ = Left(param$, Len(param$) - 1)
EndIf
Hello

I very excusme, please, write full code, i copy-past and tested code

I do not telepat

Thank You!
Olli
Addict
Addict
Posts: 1267
Joined: Wed May 27, 2020 12:26 pm

Re: AkelPad RePlace Notepad

Post by Olli »

SharkyEXE wrote: Mon Oct 10, 2022 10:32 pm
AZJIO wrote: Mon Oct 10, 2022 6:15 am

Code: Select all

Count = CountProgramParameters()
If Count
  param$ = ""
  For i = 0 To Count - 1
    param$ + ProgramParameter(i) + " "
  Next
  param$ = Left(param$, Len(param$) - 1)
EndIf
Hello

I very excusme, please, write full code, i copy-past and tested code

I do not telepat

Thank You!
It is the full code. You compile it as an executable. And you see if you retrieve your path burst in several parameters. If yes, it is a bug. If no, it is a feature request. Thank you.
AZJIO
Addict
Addict
Posts: 2226
Joined: Sun May 14, 2017 1:48 am

Re: AkelPad RePlace Notepad

Post by AZJIO »

SharkyEXE
User
User
Posts: 35
Joined: Sat Feb 26, 2022 6:33 pm

Re: AkelPad RePlace Notepad

Post by SharkyEXE »

Olli

Hello

1) I copy-paste this code and make Notepad.exe file

Code: Select all

Count = CountProgramParameters()
If Count
  param$ = ""
  For i = 0 To Count - 1
    param$ + ProgramParameter(i) + " "
  Next
  param$ = Left(param$, Len(param$) - 1)
EndIf
2) I copy Notepad.exe file in folder

C:\Windows\System32
C:\Windows\SysWOW64

3) I open file - do not open, see animation, please

https://cloud.mail.ru/public/xvma/HLhzkLUh3

What i make broken?

AZJIO

Hello

Yes, i view link

I would like to have several solutions to solve the problem. don't take offense at me, please help with your help to make your decision, I really ask you
Olli
Addict
Addict
Posts: 1267
Joined: Wed May 27, 2020 12:26 pm

Re: AkelPad RePlace Notepad

Post by Olli »

SharkyEXE wrote: I open file - do not open, see animation, please
No, I do not see animation.
I do not replace an executable.

If I want to replace anything, I replace everything (with Linux, ie)

If you prefer rename such a file, it is your problem. You go to parameters in your OS and change the associated file named "notepad.exe" with another file name, in order to open a txt file, and that is all.
User avatar
HeX0R
Addict
Addict
Posts: 1219
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: AkelPad RePlace Notepad

Post by HeX0R »

My antennae are always vibrating, when I read things like:
on PureBasic 4.20 (Windows - x86)
User avatar
idle
Always Here
Always Here
Posts: 6037
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: AkelPad RePlace Notepad

Post by idle »

HeX0R wrote: Tue Oct 11, 2022 10:37 pm My antennae are always vibrating, when I read things like:
on PureBasic 4.20 (Windows - x86)
yes a bit of a give away and I can't believe people actually tried to answer his question.
Replace notepad with a modified exe, yeah right!
Topic locked
Locked