Page 2 of 2

Re: AkelPad RePlace Notepad

Posted: Sun Oct 09, 2022 9:35 pm
by Olli
Check all the parameters.

Code: Select all

MessageRequester("params", Str(count) )
What is the value ?

Re: AkelPad RePlace Notepad

Posted: Mon Oct 10, 2022 6:15 am
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

Re: AkelPad RePlace Notepad

Posted: Mon Oct 10, 2022 10:32 pm
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!

Re: AkelPad RePlace Notepad

Posted: Tue Oct 11, 2022 1:29 pm
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.

Re: AkelPad RePlace Notepad

Posted: Tue Oct 11, 2022 2:45 pm
by AZJIO

Re: AkelPad RePlace Notepad

Posted: Tue Oct 11, 2022 6:11 pm
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

Re: AkelPad RePlace Notepad

Posted: Tue Oct 11, 2022 9:23 pm
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.

Re: AkelPad RePlace Notepad

Posted: Tue Oct 11, 2022 10:37 pm
by HeX0R
My antennae are always vibrating, when I read things like:
on PureBasic 4.20 (Windows - x86)

Re: AkelPad RePlace Notepad

Posted: Wed Oct 12, 2022 3:35 am
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