Search found 281 matches

by ahk7
27 May 2020, 15:35
Forum: Ask For Help
Topic: Help with RevisedAuthor string parameter in Application.CompareDocuments method (Word)
Replies: 4
Views: 185

Re: Help with RevisedAuthor string parameter in Application.CompareDocuments method (Word)

Just a thought as I don't know the answer but if you change (remove identity info) from the modified paper to "Author", then do the comparison it will say revision by Author, so make it a two step process. Pre-process one document to change the author, then the compare documents.
by ahk7
23 May 2020, 10:33
Forum: Other Utilities & Resources
Topic: Microsoft: Powertoy Keyboard Manager (KBM)
Replies: 1
Views: 120

Microsoft: Powertoy Keyboard Manager (KBM)

The Keyboard Manager (KBM) is a keyboard remapper that allows a user to redefine keys on their keyboard (ex. swapping the letter A and D) as well as shortcuts (Ctrl+C to Win+C). You can use these remappings as long as KBM is enabled and PowerToys is running in the background. https://github.com/mic...
by ahk7
23 May 2020, 10:29
Forum: General Discussion
Topic: Microsoft: Project Reunion will unify access to existing Win32 and UWP APIs
Replies: 0
Views: 63

Microsoft: Project Reunion will unify access to existing Win32 and UWP APIs

For the past couple of years, we have been breaking down the barrier between Win32 (also called the Windows API) and Universal Windows Platform (UWP) APIs. Project Reunion expands this effort to make it easier to build a great Windows app. It will unify access to existing Win32 and UWP APIs and mak...
by ahk7
05 May 2020, 15:20
Forum: Scripts and Functions
Topic: xStr() : for general text extraction and parsing XML / HTML
Replies: 30
Views: 2633

Re: xStr() : for general text extraction and parsing XML / HTML

Perhaps for those interested in parsing html, old but (and perhaps no longer gold) https://github.com/hi5/GetNestedTag :) Useful for if you want to get say the <div id=content> from a saved html page as it automatically tries to match the closing </div> by counting opening and closing tags. You can ...
by ahk7
05 May 2020, 03:45
Forum: Ask For Help
Topic: Linux navigation when focusing on texbox
Replies: 1
Views: 94

Re: Linux navigation when focusing on texbox

Look at Example 2 of the #If directive and adjust accordingly, you can get the Class of a control by using the window spy (right click ahk tray icon) https://www.autohotkey.com/docs/commands/_If.htm#ExWordDelete Note it may not work everywhere as a browser/webpage for example has no 'edit' control i...
by ahk7
05 May 2020, 02:50
Forum: Ask For Help
Topic: Get the last digit before a symbol Topic is solved
Replies: 5
Views: 221

Re: Get the last digit before a symbol Topic is solved

I forgot that RegExMatch returns the position already if you assign it to a variable input1:="(100+5)-(10*2)*3" ; if you're sure it always ends with a digit input2:="text (100+5)-(10*2)*5 some text" ; if it is part of other text pos1:=RegExMatch(input1,"\d+$",last1) MsgBox % last1 ", pos: " pos1 ; 3...
by ahk7
05 May 2020, 02:47
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 590

Re: Text Alignment

@garry You can also use it to draw lines (repeat chars) - here it creates 40 zeros which we then replace with a nice line character

Code: Select all

MsgBox % "SomeText `n" StrReplace( Format( "{:040}", "" ), 0, Chr(0x2014) ) "`nmore text"
this makes it easier to adjust when it needs to be wider...
;)
by ahk7
05 May 2020, 02:40
Forum: Ask For Help
Topic: Help with all caps and inserting hyphens Topic is solved
Replies: 4
Views: 209

Re: Help with all caps and inserting hyphens Topic is solved

Can you please explain to me in pretty basic terms how Trim(RegExReplace(Clipboard, "(.)","$U{1}-"),"-") works? It uses a regular expression to replace each character (.) with it's uppercase version ($U) and insert a - afterwards. You can look up . $U and more here https://www.autohotkey.com/docs/m...
by ahk7
03 May 2020, 14:49
Forum: Ask For Help
Topic: Get the last digit before a symbol Topic is solved
Replies: 5
Views: 221

Re: Get the last digit before a symbol Topic is solved

Look at "Mode 3 (match object)" https://www.autohotkey.com/docs/commands/RegExMatch.htm input1:="(100+5)-(10*2)*3" ; if you're sure it always ends with a digit input2:="other text (100+5)-(10*2)*15 some text" ; if it is part of other text RegExMatch(input1,"O)\d+$",Match) MsgBox % Match.Pos(0) ":" M...
by ahk7
03 May 2020, 14:40
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 590

Re: Text Alignment

@garry you can use another format, see the "0" (zero) flag in the docs https://www.autohotkey.com/docs/commands/Format.htm cols is now an array that is passed on to the next format which pads with spaces and inserts a | between the two columns. If Chr(12) is present in a file and it is printed it sh...
by ahk7
03 May 2020, 13:27
Forum: Ask For Help
Topic: Get the last digit before a symbol Topic is solved
Replies: 5
Views: 221

Re: Get the last digit before a symbol Topic is solved

Code: Select all

input1:="(100+5)-(10*2)*3" ; if you're sure it always ends with a digit
input2:="(100+5)-(10*2)*5 some text" ; if it is part of other text
RegExMatch(input1,"\d+$",last1)
MsgBox % last1 ; 3
RegExMatch(input2,"(\d+)(?!.*\d)",lookaheadbehind)
MsgBox % lookaheadbehind ; 5
:?:
by ahk7
03 May 2020, 12:49
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 590

Re: Text Alignment

Right you are, Updated code above - it now loops until the end, which does of course add lots of empty lines to the output, so these are trimmed using RTrim, which means the last line may be missing the | if there is no value in column 2. 164 | 165 ; misses |
by ahk7
03 May 2020, 12:04
Forum: Ask For Help
Topic: Cycle through open apps, follow taskbar order
Replies: 4
Views: 486

Re: Cycle through open apps, follow taskbar order

Just in case you don't know, you can press Windowskey+1(-2-3 etc) and activates the window on the taskbar order, no need for alt-tab in such cases.
by ahk7
03 May 2020, 11:51
Forum: Ask For Help
Topic: Help with all caps and inserting hyphens Topic is solved
Replies: 4
Views: 209

Re: Help with all caps and inserting hyphens Topic is solved

Code: Select all

^k::
clipboard:=Trim(RegExReplace(Clipboard, "(.)","$U{1}-"),"-")
MsgBox % clipboard
Return
by ahk7
03 May 2020, 11:42
Forum: Ask For Help
Topic: Text Alignment
Replies: 14
Views: 590

Re: Text Alignment

NumberOfRecords:=177 LinesPerPage:=33 ColBreak:=0 loop % NumberOfRecords ;this creates the variables for this example. I pull the variables from mulitiple locations Var%a_index% = %a_index% Loop, % NumberOfRecords { col1:=A_Index+ColBreak col2:=col1+LinesPerPage output .= Format("{:-45}", var%col1%...
by ahk7
01 May 2020, 14:40
Forum: Scripts and Functions
Topic: CL3 clipboard utility (text only) with menu, search, quick paste, cycle/step, plugins, API, ...
Replies: 41
Views: 13566

Re: CL3 clipboard utility (text only) with menu, search, quick paste, cycle/step, plugins, API, ...

v1.97 @ https://github.com/hi5/CL3/ New setting: CopyDelay to set time in milliseconds to wait before adding a copy of a new clipboard entry to the CL3 history. This may resolve some conflicts when other programs or scripts access the clipboard. Increasing this value may work around this issue. The...
by ahk7
30 Apr 2020, 12:53
Forum: Ask For Help
Topic: Arrays and screen reader
Replies: 9
Views: 476

Re: Arrays and screen reader

As I rarely use the click command I forgot it doesn't handle expressions so if you replace the menuhandler code with this it probably works. MenuHandler: ; A_ThisMenu contains SubMenu1 or SubMenu2 ; A_ThisMenuItem is the chosen Menu options e.g. Thunder Bass ; .1 is the X co-ordinate, .2 they Y co-o...
by ahk7
29 Apr 2020, 13:05
Forum: Ask For Help
Topic: Arrays and screen reader
Replies: 9
Views: 476

Re: Arrays and screen reader

So you want to limit the amount of labels and be able to add new commands faster I assume? You can indeed use an array and use that to build the menus and use the information from the array to click on the x,y co-ordinates. Perhaps this works for you #NoEnv SetWorkingDir %A_ScriptDir% CoordMode, Mou...
by ahk7
27 Apr 2020, 08:37
Forum: Ask For Help
Topic: Incremental search in listbox without sort and edit box ? Topic is solved
Replies: 2
Views: 154

Re: Incremental search in listbox without sort and edit box ? Topic is solved

Perhaps a combobox is better suited https://www.autohotkey.com/boards/viewtopic.php?f=6&t=15002
(I assume you mean you don't want to have an edit control where you type the "find")

Go to advanced search