Search found 64 matches

by newuser
Sat Aug 03, 2013 5:43 pm
Forum: Enhancement Suggestions
Topic: Writes text to specific line in file and overwrite file data
Replies: 4
Views: 8747

Thanks Rain, but I wanted it in commands like ReadFile, ReadLn, etc,
because I'm doing it in virtual mode(modifying those files in memory).
The CopyFile, WriteLn etc works in virtual mode because its native commands in MS.
by newuser
Fri Aug 02, 2013 3:30 pm
Forum: Enhancement Suggestions
Topic: Writes text to specific line in file and overwrite file data
Replies: 4
Views: 8747

Writes text to specific line in file and overwrite file data

Is it possible to implement these 2 functions below? 1) Writes text to a specific line in a file. C:\text.txt contain hello1 hello2 hello3 hello4 hello5 Eg, write>Bye,3,C:\text.txt Write Bye to c:\text.txt line number 3. Then result C:\text.txt now contain hello1 hello2 Bye hello4 hello5 2) Overwrit...
by newuser
Mon Jul 22, 2013 6:58 pm
Forum: General Discussion
Topic: Text from an array to populate a list box?
Replies: 21
Views: 32232

That might just work, Jerry but I'll need more time on that(I mean later). My script is almost complete below: [code] Dialog>Dialog2 object Dialog2: TForm Left = 566 Top = 104 HelpContext = 5000 BorderIcons = [] BorderStyle = bsSingle Caption = ' Data Listing' ClientHeight = 212 ClientWidth = 192 Co...
by newuser
Mon Jul 22, 2013 4:56 pm
Forum: General Discussion
Topic: Text from an array to populate a list box?
Replies: 21
Views: 32232

Thank you Rain and Jerry. The reason I wanted the centre of the text in the listbox is because it would look like this below:


Data Listing
---------------
---Thomas
-----Mary
-----John
---George

Instead of below:

Data Listing
---------------
--Thomas
--Mary
--John
--George
by newuser
Sun Jul 21, 2013 3:28 pm
Forum: General Discussion
Topic: Text from an array to populate a list box?
Replies: 21
Views: 32232

Thanks Rain for your script. [quote="Rain"] I' don't understand, you want the list box in the center of the screen or the text aligned in the center of the list box. Can you elaborate a little more? [/quote] I mean both if possible. I notice that I cant simply exit subroutine using goto command, so ...
by newuser
Sat Jul 20, 2013 8:18 pm
Forum: General Discussion
Topic: Text from an array to populate a list box?
Replies: 21
Views: 32232

Thank you, it work perfectly. I only cant figure out how to made the dialog show in the centre of my screen(the top = center and left = center, where should I put these centre commands, it work on normal dialog but not this listbox dialog) and also the alwaysontop window option(the FormStyle = fsSta...
by newuser
Fri Jul 19, 2013 6:01 pm
Forum: General Discussion
Topic: Text from an array to populate a list box?
Replies: 21
Views: 32232

I take the example above and modify it to suite my needs but theres something I just dont understand how it works. This is what I get so far. [code] Dialog>Dialog1 object Dialog1: TForm Left = 449 Top = 266 HelpContext = 5000 BorderIcons = [] Caption = 'MyDialog' ClientHeight = 212 ClientWidth = 431...
by newuser
Sun Jul 14, 2013 3:04 pm
Forum: General Discussion
Topic: Download newest file from website
Replies: 10
Views: 12544

Thank you, your script work perfectly. :)
by newuser
Sun Jul 14, 2013 4:54 am
Forum: General Discussion
Topic: Download newest file from website
Replies: 10
Views: 12544

Ok I guess I forgot about the IGNOREERRORS=1, now I added it in. The problem now is, the exist.txt file list all .exe files in freeware.html but I only want the Free DOS Utilities .exe list only. [code] Let>IGNOREERRORS=1 IfFileExists>C:\freeware.html DeleteFile>C:\freeware.html Endif IfFileExists>C...
by newuser
Sat Jul 13, 2013 5:19 pm
Forum: Technical / Scripting
Topic: compare 2 txt files ?
Replies: 9
Views: 10205

Thanks and to merge both these files, use code below.

[code]
AppendFile>%path%\3.txt,%path%\4.txt,%path%\newfile.txt,result
[/code]
by newuser
Sat Jul 13, 2013 5:12 pm
Forum: General Discussion
Topic: Singleton (single instance or mutex) and process exist
Replies: 8
Views: 12090

Yes, I've also used that script first posted by Marcus back near the beginning of MS time. I think I came up with the dialog method and started using it because it doesn't require looking anything up. It also actually has fewer lines. What I posted earlier can be shortened to five essential lines I...
by newuser
Fri Jul 12, 2013 5:50 pm
Forum: General Discussion
Topic: Download newest file from website
Replies: 10
Views: 12544

Can anyone tells me whats wrong with my code below [code] Let>WLN_ENCODING=UNICODE IfFileExists>C:\freeware.html DeleteFile>C:\freeware.html Endif IfFileExists>C:\Exist.txt DeleteFile>C:\Exist.txt Endif HTTPRequest>http://www.gammadyne.com/download.htm,C:\freeware.html,GET,,HTMLResponse Let>k=1 Whil...
by newuser
Thu Jul 11, 2013 1:45 pm
Forum: Technical / Scripting
Topic: compare 2 txt files ?
Replies: 9
Views: 10205

This is nice but can anyone show me an example how to compare two files and write the unmatch lines to a third file?

Thanks.
by newuser
Wed Jul 10, 2013 9:59 am
Forum: General Discussion
Topic: Download newest file from website
Replies: 10
Views: 12544

Thanks CyberCitizen But your code always download Centurion Setup file instead. And also it doesnt cater for the blockdownload file internet explorer taskbar. Anyway, after one almost sleepless night, I came out with this not so perfect simple solution below(not so perfect-> though I could use MS to...
by newuser
Tue Jul 09, 2013 4:55 pm
Forum: General Discussion
Topic: Download newest file from website
Replies: 10
Views: 12544

Nope, I never ask. I was using its freeware tools, like wol.exe etc. If its impossible to download any file without an actual known filename. I can accept that, I just need to browser its website once awhile. But what about directly checking and comparing the website filenameA filesize and local exi...
Sign up to our newsletter for free automation tips, tricks & discounts