You are here: PSPad forum > English discussion forum > How to find in PSPad all "double numbers" in one line and extract?

How to find in PSPad all "double numbers" in one line and extract?

Goto Page: 1 2 Next

#1 How to find in PSPad all "double numbers" in one line and extract?

Posted by: maki | Date: 2020-04-22 21:08 | IP: IP Logged

How to find in PSPad all "double numbers" in one line and extract?

2,4,8,9,19,21,24,25,29,9
2,4,8,9,19,21,24,25,29,56,78,4

Option Extract: Display Name and Lines

Edited 5 time(s). Last edit at 2020-04-22 21:11 by maki.

Options: Reply | Quote | Up ^


#2 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: Vany | Date: 2020-05-11 09:25 | IP: IP Logged

programmatically

learn to script

for all the time you are spending asking your all-the-same questions you had time to learn it.

so please, use your knowledge to solve your problems like this one

it is nothing personal, anyone have the right to ask your kind of question, but you ask the same all the time for weeks (or months) without noticeable progress

--
Vany
(PSPad 5.0.4 (395) x32, W10h/p x64 en/cs)

Options: Reply | Quote | Up ^


#3 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: maki | Date: 2020-05-11 13:11 | IP: IP Logged

Vany - So step by step how to use this script in PSPad?

01
67
77

result
10
76
77

REVERSE NUMBER

#include <stdio.h>
int main() {
int n, rev = 0, remainder;
printf("Enter an integer: ");
scanf("%d", &n);
while (n != 0) {
remainder = n % 10;
rev = rev * 10 + remainder;
n /= 10;
}
printf("Reversed number = %d", rev);
return 0;
}

Options: Reply | Quote | Up ^


#4 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: pspad | Date: 2020-05-11 13:29 | IP: IP Logged

Open scripting.rtf file in PSPad folder
There is example, how to read line by line document open in PSPad.
When you read one number (content of one line) into variable, you can use your code to revert it or simple use Java Script function reverseString(“hello”) and write it back.

Edited 1 time(s). Last edit at 2020-05-11 13:31 by pspad.

Options: Reply | Quote | Up ^


#5 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: maki | Date: 2020-05-11 17:57 | IP: IP Logged

But it still doesn't work properly! Every time get error.
I downloaded the latest portable 32-bit version!

i.postimg.cc

Options: Reply | Quote | Up ^


#6 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: pspad | Date: 2020-05-11 18:10 | IP: IP Logged

So fix "it" error in your script.
Typical your reaction. Instead of pasting your script, you write "it" doesn't work.
Nobody can read your mind (and personally I am glad, I can't).
Nobody can see your screen.
Nobody knows what did you do in your script, where you put it e.t.c.
Maybe when you will grow a little, you will find when you need answer, you need to provide enough information.

Options: Reply | Quote | Up ^


#7 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: maki | Date: 2020-05-11 18:24 | IP: IP Logged

I don't use any script yet! After all, I wrote clearly and clearly that I only downloaded portable versions and I want to enable this damn WSH setting. Or this setting not needed enabled?

Options: Reply | Quote | Up ^


#8 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: maki | Date: 2020-05-11 19:26 | IP: IP Logged

All VBS or JS script always error

www70.zippyshare.com

Options: Reply | Quote | Up ^


#9 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: maki | Date: 2020-05-11 23:08 | IP: IP Logged

How to Run C or C++ script?

Options: Reply | Quote | Up ^


#10 Re: How to find in PSPad all "double numbers" in one line and extract?

Posted by: pspad | Date: 2020-05-11 23:35 | IP: IP Logged

Request Microsoft to add support of C or C++ for Windows scripting host. Then you can use it in PSPad.
Another possibility is download zome free compiler for C or C++ and write own utility.

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





Editor PSPad - freeware editor, © 2001 - 2020 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR