Posts by user7605 • 1,679 points
60 posts
-
4
votes1
answer802
viewsQ: Search for words MEMO!
I have a MEMO COMPONENT and within it there are several sentences on each line. I need to search for words of this MEMO, example: "POLKA". So far so good. The problem is, after he finds the word, I…
-
0
votes0
answers23
viewsQ: Crop in image
I have a TForm, and in this form a component TImage with some kind of image. What I want is to select a part with the mouse of this image, and then a function that makes a "hole" in the image and…
-
0
votes1
answer1460
viewsQ: Add a text at a certain position
Hello, I need to add a TEXT at a certain position of a TXT file, if possible using STRING LIST. I have a TXT and inside this TXT has about 300 lines. And in the middle of it has the following line:…
-
0
votes0
answers82
viewsQ: Move process to another desktop
Imagine a scenario where I have the desktop pattern of windows, and I create another desktop, then need to move my application to the second. I currently create this application in the other, but am…
-
1
votes1
answer1324
viewsQ: Capture Webrowser text
Hello, I need to capture a certain text from a site I am accessing through the TWebBrowser, every time soon on this internal site it generates a text more or less like this: <html>…
-
1
votes1
answer254
viewsQ: Change Border Selection Color with Mouse
Hello, I have the following function below in which I select (with the mouse) a certain coordinate of an image and save it. It turns out that when it’s a very CLEAR or WHITE image I can’t see the…
-
5
votes2
answers2291
viewsQ: Crop a piece of the image using mouse
Hello, I have the following situation, in a FORM I have any image, I need to select a part of the image through the MOUSE click, and as soon as I release the mouse button, that part I selected is…
-
1
votes4
answers802
viewsQ: Incompatible types: Pwidechar and Tcaption
need to resolve this and can not, I have a variable that loads a DLL with LOADLIBRARY, when I put the path that is the DLL (that is inside an Edit) it gives the error above the topic. ERROR:…
-
1
votes1
answer1477
viewsQ: Delphi x DLL x Resources
I am creating a DLL in DELPHI, within it there are some functions that my system will use. I would like to know the following, is there a way to embed this DLL created in DELPHI direct on EXE…
-
3
votes2
answers411
viewsQ: Extract emails from a Memo
I have a component memo, within it there is a large text, and in that text it contains several scattered email addresses. How can I extract only the emails from this memo1 and play at memo2?…
-
1
votes1
answer709
viewsQ: Placing values of a memo inside an array
I have the following component Memo with the texts: 200:80 177:3306 I need to put this text inside a array, for example, based on the first line, the text 200 (would be array[1]) and the countryside…
-
0
votes1
answer131
viewsQ: Run external command in Java with syntax
Hello, I’m using a DOS file to unzip files. zip, is UNZIP.EXE itself (DOS executable) I am mounting the code as follows: Desktop.getDesktop().open(new File("e:\\unzip.exe teste.zip" )); It does not…
-
1
votes2
answers211
viewsQ: Filter a file
See if anyone can save me, I have a program where every day a TXT is generated as follows: (16BA=1cc)(83=cliente1@plantao)(80=0)(82=1)(1691=610)(1690(89=cliente@frigorifico)(8A I need to create…
-
0
votes1
answer231
viewsQ: Component or PDF Converter
Does anyone know any components for Delphi XE that convert PDF to DOC or HTML ? Or if possible edit the PDF directly and change the same ?
-
1
votes1
answer243
viewsQ: Stringreplace x Array
I have the following code: Nomes: array[1..10] of string=('Tadeu','Joao','Maria','Ana','Juca','leticia'); StringReplace(Edit1.Text, Nomes, 'Bloqueado', [rfReplaceAll]); I need to make Stringreplace…
-
4
votes2
answers699
viewsQ: Delphixe5 X Permission Administrator
I need to run a program in Delphi as Administrator, I already put the manifest file, and even then it does not work, follow my manifest file. <?xml version="1.0" encoding="UTF-8"…
-
-1
votes1
answer5645
viewsQ: Timer run given hour
I need to make a timer that runs every day at 18 hours and press a Button. I couldn’t find anything on the internet about this, any suggestions ? I tried the next, but he does nothing: // TIMER…
-
2
votes1
answer674
viewsQ: Listview does not repeat records
I have a file txt with multiple records inside, I need something that at the time the function is added to the ListView these records, do not let repeat items be added. To do this, it could use a…
-
1
votes1
answer1048
viewsQ: Add LISTVIEW column
I have a listview component in my project, and it contains a Column with several values inserted. Does anyone have any idea how I can add an entire column of listview that only contains values like:…
-
1
votes1
answer34
viewsA: Error assigning Caption with Inc
I already solved, for those who are interested or have the same problem, do the following: l := l + 1; Item.Caption := inttostr(l);
-
1
votes1
answer34
viewsQ: Error assigning Caption with Inc
I have a LISTVIEW component, in it are inserted several records. I need to generate Auto Increment code in the Caption of this listview according to the number of inserted records. I tried something…
-
4
votes2
answers3095
viewsQ: Reading txt file with multiple columns to insert in Tlistview
I have the following function: var Colunas : TStringlist; Item: TListItem; begin Colunas := TStringlist.Create; Colunas.Text := StringReplace('00:46:30@21/08/2014@Carlos dos Santos@São Paulo',…
-
2
votes1
answer745
viewsQ: Explodes in Delphi
I have a txt file in which data is saved as follows: 00:46:30@21/08/2014@Carlos dos Santos@são Paulo In PHP I would use the explode to turn each die before "@" into columns. How do I do this in…
-
0
votes4
answers16806
viewsQ: Copy part of a string
I have the following strings: Cliente em questão: protocolo20209092032932 Cliente em questão 2: protocolo320930293232 Cliente em questão 3: 20392039230902032032 I need to do a function to copy…
-
2
votes3
answers1786
viewsQ: Form always visible
Good people, I came here because I don’t know what else to do, I tested everything.... need to make my FORM2 always visible (above) of all open programs in windows. My program did as follows: Form1…
-
0
votes1
answer506
viewsQ: Darken Image (Degrade)
Is it possible to darken an image inside a Timage in Delphi ??? Is there a component, something like that to do it ? The Program puts the image, and I need to darken right after it is inserted...…
-
1
votes2
answers2239
viewsQ: Variable result with IDHTTP
need to get the result of a link and put in a memo. I will explain better in examples: I’ll access the link: http://www.xxx.com.br/teste.php?Teste (this address will return me the word OK. It is…
-
0
votes1
answer609
viewsQ: Encrypt a function in Delphi
Is it possible to encrypt functions in Delphi ? Any type of encryption.... example, I need to encrypt this function: function REspacos(const str: String): string; const cDouble = ' '; cOne = '';…
-
0
votes1
answer186
viewsQ: Reload/Wininet Cache Flag
I have the following problem, I have a function in Delphi that runs online a PHP file that provides the SERIAL of the PROGRAM It happens, that when I run this function it keeps taking the same…
-
2
votes2
answers860
viewsQ: Last position of a string
I have the following code: var elements = document.getElementsByTagName('*'); for (var i = 0; i < elements.length; i++) { var txt = elements[i].innerHTML.replace('Estoque1', 'Estoque Vencido'); }…
-
3
votes2
answers512
viewsQ: Return of Xmlhttprequest connection
I have the following code: function httpGet(theUrl) { var xmlHttp = null; xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", theUrl, false ); xmlHttp.send( null ); return xmlHttp.responseText; }…
javascriptasked user7605 1,679 -
1
votes1
answer815
viewsQ: Check uploaded image
There is the possibility to check when an image was loaded into a TImage? For example: I have a label that appears "Loading Image..." when the TImage load any image, this label should disappear. It…
-
2
votes2
answers1063
viewsQ: Send CTRL+V via Postmessage
Hello, I need to send click combination CTRL+V via POSTMESSAGE. I tried to do it this way: PostMessage(h,WM_KEYDOWN,VK_CONTROL,0); PostMessage(h,WM_KEYDOWN,VK_V,0); (Ele da erro nessa linha diz que…
-
2
votes1
answer542
viewsQ: Listview, do not repeat records
I have 2 listview and a timer. This timer captures the records that exist with a certain comment and puts in the other listview. It turns out that he is repeating the records, I would like him to…
-
3
votes2
answers527
viewsQ: How to recover Firefox bi HTML source code via Addon/Add-on?
I am writing an add-on ("addon") to Firefox. I need to get the HTML source code open in the current Firefox tab and display in a alert, using Javascript. I tried to use…
-
10
votes2
answers11027
viewsQ: Convert maturity factor (number of days) of billet into date dd/mm/yyyy
I have the following digit line: 74893.12004 21627.007186 37931.981056 7 60750000001400 As already seen in this question, I figured out how to calculate the salary mathematically: Extract Thread…
javascriptasked user7605 1,679 -
2
votes1
answer250
viewsQ: Get Firefox DLL Ddeclient Source Code
I know it is possible to capture the FIREFOX URL using Ddeclient, but someone else has already used it to get the source code of the open page ? Follow the code to capture the title: procedure…
-
1
votes3
answers657
viewsQ: Save current time to a file . txt
How to make an online post of a variable in a given TXT? I tried the following, but it didn’t work: function post(theUrl) { var xmlHttp = null; xmlHttp = new XMLHttpRequest(); xmlHttp.open( "POST",…
javascriptasked user7605 1,679 -
6
votes3
answers13945
viewsQ: How to compare the difference between two dates in Delphi?
I need to compare 2 dates to know if the due date is Greater that the current date, if it is Minor it returns an error, follows the code I did and did not work. var Data_Atual: String;…
-
2
votes1
answer2912
viewsQ: Extract Thread Digit Maturity
I have the following digitized line of a billet, I need a function to extract the expiration date from it, and then use in other. Type line: 74893.12004.21627.007186.37931.981056 1 59490000041480 I…
-
8
votes4
answers6348
viewsQ: Detecting Line Break
I have the following function: if (str.match(/\d\d\d\d\d\.\d\d\d\d\d/)) { var codigo_velho = str.match(/\d\d\d\d\d\.\d\d\d\d\d\/); result = "1"; } How to change this function so it detects line…
-
1
votes1
answer132
viewsQ: IF-ELSE problems
I have the following code, to find a certain numbering and check if it exists. STR variable sends text with numbers. function verifica(str) { if (str.match = '/\d\d\d\d\d\.\d\d\d\d\d') { var old =…
javascriptasked user7605 1,679 -
18
votes3
answers11309
viewsQ: How to delete duplicate spaces in a string?
I have the following string: var str = "00000.00000 111111111.111111111111 33333333" I need to remove the extra spaces for it to look like this (only with 1 space): var str = "00000.00000…
-
6
votes4
answers18454
viewsQ: How to replace a certain string within another string in Javascript?
How can I replace only a certain part of a string? Example: var linha_nova = "EU TENHO UM CACHORRO"; I want to replace only the word "UM" on the other. How should I proceed? I also need to replace…
-
-2
votes1
answer3816
viewsQ: Concatenate strings in Javascript
I have the following function, which changes the numeric value of a string when found: var original = "Este aqui é o valor do cliente 000.000.00 01"; var original = str.match(/\d\d\d\.\d\d\d\.\d\d…
-
0
votes1
answer62
viewsQ: Alert of Altered String
I have the following code: var string = "Este aqui é o valor do cliente 000.000.00 01"; var str_subs = "129.000.000 02"; string = string.replace(/\d\d\d\.\d\d\d\.\d\d \d\d/g, str_subs); alert("Valor…
javascriptasked user7605 1,679 -
2
votes1
answer186
viewsQ: Change specific string fields in Javascript
I have the following string: string = "Este aqui é o valor do cliente 000.000.00 01"; I need to create a function, that "Search" inside that string that contains letters and numbers if there is a…
javascriptasked user7605 1,679 -
10
votes3
answers7149
viewsQ: Clear ZIP code with Javascript
How to clear the formatting of a zip code field in this format: 87.678-000? I need to take out the "." and the "-" and return only the numbers. I tried something like, unfortunately it didn’t work.…
-
2
votes1
answer919
viewsQ: Swap all words in an HTML code
I need to do a Javascript function that changes all the words found inside a site. I tried something like: var elements = document.getElementsByTagName('div'); for (var i = 0; i <…
javascriptasked user7605 1,679 -
0
votes0
answers60
viewsQ: How to get the source code of an HTML page opened in Firefox?
How to get the source code of the current page opened in Firefox through Delphi?