Search found 16 matches

by gonzax
04 Jan 2019, 08:05
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 311485

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Ok, I solved the problem, it was all to do with windows permissions, I guess some stupid W10 update reverted the permissions and that's why it wasn't working, I gave the USER folder inside Scite full control and now Tools works agagin. I still don't know why Scite does not work correctly without unz...
by gonzax
04 Jan 2019, 06:37
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 311485

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

what happens when running the "portable" zip version? I just tried and that one works as it should, no errors or anything. Should I unzip the portable version where the normal version is? Edit: I unzipped the contents, now Scite opens without errors and scripts run fine, which is already much bette...
by gonzax
03 Jan 2019, 12:48
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 311485

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

I did, still the same problem and it's driving me nuts!! I remember years ago I had this same problem or something similar, it always said there was an update when there wasnt. The problem is I don't remember what I did back then to solve it and nothing I do now makes any difference. I've uninstalle...
by gonzax
03 Jan 2019, 11:44
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 311485

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Every time I run SciTE it gives me two dialog boxes: the first says "Welcome to SciTE4AutoHotkey!" and once I close this dialog it displays a new one saying "Can't find user properties file!" It also opens a file "TestSuite.ahk" every time I run SciTE. This is driving me crazy, I've uninstalled both...
by gonzax
21 Mar 2018, 11:35
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

Ah ok, I get it now, the difference is quite obvious. Great explanation, I think I'm going to use "activedocument" from now on to avoid problems in case more than one doc. is open, it makes it clearer to see which document I am working on.

Thanks again
by gonzax
21 Mar 2018, 05:40
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

Just for future searches, instead of copying margins, you can also specifically set the margins. https://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.pagesetup_members.aspx FG My problem with MS documentation and properties is that I rarely get the syntaxis right when I try to con...
by gonzax
20 Mar 2018, 18:12
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

Don't think that I am being too critical. You are doing great compared to alot of people. Just trying to help you and others see the power of COM. AHK is often alot about working with the right window which is great when people get a good handle on that but then COM takes it to a different level wh...
by gonzax
20 Mar 2018, 08:08
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

Just in case: if the source can be a HTML file you can simply use regular string commands/functions in AutoHotkey, afterwards you use WinClip() to set it as formatted text in the clipboard and paste as such - see #4 here https://autohotkey.com/boards/viewtopic.php?f=7&t=8977 Pasting with format is ...
by gonzax
20 Mar 2018, 05:40
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

PS: I couldn't make the "wdDoc2.PageSetup := wdDoc1.PageSetup" line work but I can live with that. If you post your code can probably solve that problem. FG Here it is, it's part of a much bigger code but the part I need is this:: ; this is a gui for choosing the text I need to paste later gui,32: ...
by gonzax
19 Mar 2018, 08:01
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

The trick is not to remove the stuff you want from the clipboard but to only put on the clipboard what you want. wdApp := ComObjActive("Word.Application") wdDoc1 := wdApp.ActiveDocument wdDoc1.Range(101,wdDoc1.Content.End).Copy wdDoc2 := wdApp.Documents.Add wdDoc2.Range(wdDoc2.Content.End -1, wdDoc...
by gonzax
17 Mar 2018, 07:51
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

- Recording macros in MS Word (no AutoHotkey), and then reviewing the code. - The main difference is: Obj.Method Arg1:=Value1, Arg4:=Value4 ;becomes Obj.Method(Arg1:=Value1,,, Arg4:=Value4) ;or: Obj.Method(Value1,,, Value4) - And you must define any constants e.g. wdStatisticPages. - Anyhow, record...
by gonzax
17 Mar 2018, 05:09
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

You can learn a lot by recording macros, doing things, and then reviewing the code. Recording macros with ahk, you mean? I tried reviewing visual basic code to learn some things but I was terrible at converting the code to ahk, the scripts would never work so I gave up. Seeing other people's script...
by gonzax
16 Mar 2018, 16:20
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

As for the margins thing, I haven't the foggiest as to how I could find out about the margins and apply them to the second document, my COM knowledge is very very basic but I'll see if I can find some info on the forums. Thanks again. This will make the page setup of doc2 equal to the page setup of...
by gonzax
16 Mar 2018, 15:25
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

Re: How to copy a word doc, delete a sentence and paste it keeping format

Awesome, I didn't know you could copy content that easily from a certain position. Your script is going to be of much help for this and other scripts I have. Thanks a lot, Fanaticguru. As for the margins thing, I haven't the foggiest as to how I could find out about the margins and apply them to the...
by gonzax
16 Mar 2018, 06:58
Forum: Ask For Help
Topic: How to copy a word doc, delete a sentence and paste it keeping format
Replies: 19
Views: 943

How to copy a word doc, delete a sentence and paste it keeping format

Hi guys, I have a script that opens a word document, copies the contents and then after deleting a sentence pastes the content on another document. I use com functions to do it and everything works fine until I use the line "oWord.Selection.TypeText("text")" which makes the document lose the format ...
by gonzax
28 Oct 2015, 11:19
Forum: Other Utilities & Resources
Topic: Method to disable update checks in Scite4ahk
Replies: 6
Views: 3358

Re: Method to disable update checks in Scite4ahk

I have the exact same problem so thanks a lot for that, I will try it tomorrow at work to see if it works

Go to advanced search