Search found 23 matches

by kestak
28 May 2019, 12:55
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Re: Some help to go from MS Word to Notepad

Greetings, For those who may want a solution. I got one finally str3:="c:\templates\file1.txt" FileRead, Filetext, %Str3% StringReplace, NewFiletext, Filetext, GVFacing, 1234, All StringReplace, NewFiletext, NewFiletext, GVMilleage, ABCD, All StringReplace, NewFiletext, NewFiletext, GVCondition, efg...
by kestak
28 May 2019, 10:39
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Re: Some help to go from MS Word to Notepad

I have a question. I still was not able to test it. But here what I think I can do. Is there a way to do that more elegantly? I think I am missing something. Here is what I plan to do: FileRead, Filetext, Str3 StringReplace, NewFiletext, Filetext, GVFacing, "GVFacing", All StringReplace, NewFiletext...
by kestak
28 May 2019, 05:06
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Re: Some help to go from MS Word to Notepad

I did some research and found out that I can convert all my word files to text files then use this code:

FileRead, Filetext, Str3
StringReplace, NewFiletext, Filetext, GVFacing, "GVFacing", All

Clipboard := NewFiletext

I just need to text it a little bit later.

Thank you
by kestak
28 May 2019, 04:43
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Re: Some help to go from MS Word to Notepad

The file format has no importance because I copy the text. My code select the final text, copy it into the clipboard then close without saving: wdApp.Selection.WholeStory wdApp.Selection.Copy wdApp.Quit(0) I used that solution because it was the easiest way to do what I wanted. At first, opening wit...
by kestak
27 May 2019, 18:03
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Re: Some help to go from MS Word to Notepad

Here is what the code does: 1 - It open MS Word with a Ms Word document (wdDoc := wdApp.Documents.Open(Str3) Str3 is the path\name of the document 2 - I replace text strings () with text that I passed as parameters. For example, I replace the text GVFacing in the document with the content of the str...
by kestak
27 May 2019, 12:08
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Re: Some help to go from MS Word to Notepad

No one can help? :roll:
by kestak
25 May 2019, 04:14
Forum: Ask For Help
Topic: Some help to go from MS Word to Notepad
Replies: 11
Views: 578

Some help to go from MS Word to Notepad

Greetings, I was using this code and it worked perfectly. However, the organization is going to Office 360 and I decided to use Notepad (Windows 7 to windows 10) ;Open Word wdApp := ComObjCreate("Word.Application") wdApp.Visible := true wdDoc := wdApp.Documents.Open(Str3) ;Replace Strings in the nar...
by kestak
24 Nov 2018, 05:00
Forum: Ask For Help
Topic: Taskbar
Replies: 2
Views: 456

Taskbar

Greetings, I am not a programmer. I look at a few code examples and honestly, I do not even understand where to begin to modify them. I need to do a simple scrip that will change the current windows taskbar settings: Lock the taskbar = On Auto-hide the taskbar = Off taskbar on screen = Bottom Apply ...
by kestak
14 Sep 2018, 08:53
Forum: Ask For Help
Topic: Just showing a countdown Topic is solved
Replies: 10
Views: 733

Re: Just showing a countdown Topic is solved

If like that: GuiControl,, MyPicture, *x1 *y1 *w490 *h266 C:\Templates\Image2.jpg

Still does not work....:(
by kestak
13 Sep 2018, 15:40
Forum: Ask For Help
Topic: Just showing a countdown Topic is solved
Replies: 10
Views: 733

Re: Just showing a countdown Topic is solved

Greetings (Again), I made it work perfectly and now I would like to have a picture replaced in the control. I am sure gain, it is a simple syntax issue that I do not get: Counter = 4 Gui, Hi: New SetTimer, Count, 1000 Gui, Add, Picture, x1 y1 w490 h266 vMyPicture, C:\Templates\Image1.jpg Gui, font, ...
by kestak
13 Sep 2018, 09:51
Forum: Ask For Help
Topic: Just showing a countdown Topic is solved
Replies: 10
Views: 733

Re: Just showing a countdown Topic is solved

It worked!!!! Thank you very much for your help.
by kestak
13 Sep 2018, 09:31
Forum: Ask For Help
Topic: Just showing a countdown Topic is solved
Replies: 10
Views: 733

Re: Just showing a countdown Topic is solved

It works!!!! Thank you! Only one last thing does not work: It goes into there (I put a msgbox and it pops up) If (Counter = 0) { SetTimer, Count, Off Gui,Hide ... But it does not hide the window and process to the remaining of the code. May you tell me what is wrong with that? Thank you P.S.: I am n...
by kestak
13 Sep 2018, 08:55
Forum: Ask For Help
Topic: Just showing a countdown Topic is solved
Replies: 10
Views: 733

Re: Just showing a countdown Topic is solved

Even after that Change the countdown still does not go down,
by kestak
13 Sep 2018, 07:52
Forum: Ask For Help
Topic: Just showing a countdown Topic is solved
Replies: 10
Views: 733

Just showing a countdown Topic is solved

Greetings, I am almost there but I cannot figure out why my counter is not displayed (It stays at 5) and the window does not close when done. It is very simple what I want to do: 1 - Display the GUI with some information 2 - Shows a countdown then when it reaches zero, close the gui. Where is my (I ...
by kestak
11 Sep 2018, 19:49
Forum: Ask For Help
Topic: Calling search and replace in MS Words
Replies: 13
Views: 944

Re: Calling search and replace in MS Words

Thank you very much!
The file is not big at all. Maximum 1000 words (5k max).
I will try that code tomorrow.

Thank you again!
by kestak
11 Sep 2018, 14:35
Forum: Ask For Help
Topic: Calling search and replace in MS Words
Replies: 13
Views: 944

Re: Calling search and replace in MS Words

I have another question. That solution is way better than what I have. The algorithm is simple: 1 - Open the document 2 - Replace a few string 3 - Select all the text and copy (I was doing click on text, ctrl-A, ctrl-B, close the document without saving 4 - Ctrl-c into another application My questio...
by kestak
11 Sep 2018, 14:22
Forum: Ask For Help
Topic: Calling search and replace in MS Words
Replies: 13
Views: 944

Re: Calling search and replace in MS Words

Thank you!!!!

The more straightforward version works perfectly!!!!
by kestak
11 Sep 2018, 12:38
Forum: Ask For Help
Topic: Calling search and replace in MS Words
Replies: 13
Views: 944

Re: Calling search and replace in MS Words

The last piece of code is almost it. It opens word, but no document opens in the word. I am sure of the name, path and the folder is R/W for sure (full admin right to the script).

Are you sure the script is good and does not miss something?

Thank you
by kestak
11 Sep 2018, 09:47
Forum: Ask For Help
Topic: Calling search and replace in MS Words
Replies: 13
Views: 944

Re: Calling search and replace in MS Words

It does open word with the right file perfectly.
I was able to write a script to open the find and replace (ctlr-H), put the search string and replace string, click on the replace buttom, but the pop up window after that, I am not able to get or use the right coordinates to click on the close button.
by kestak
11 Sep 2018, 06:18
Forum: Ask For Help
Topic: Calling search and replace in MS Words
Replies: 13
Views: 944

Calling search and replace in MS Words

Greetings, Anyone can point me to how I can call a search and replace function in MS Word? The script I have does that: Str2 := "C:\Templates\" Str3 := " - Word" Str4 = %Str2%%Str1%.docX Str6 := " " Str5 = %Str1%%Str3% run winword.exe %Str4% WinWait, %Str5%, IfWinNotActive, %Str5%, , WinActivate, %S...

Go to advanced search