Search found 86 matches

by kdaube
02 Feb 2023, 09:51
Forum: Ask for Help (v1)
Topic: List contents accumulates - how to fix?
Replies: 3
Views: 407

List contents accumulates - how to fix?

Dear gurus and experts. In a script I select in list A (the left one in the screen shot). This fills list B. If I then change the selection A, list B is not built afresh but amended by the new items. https://daube.ch/zz_tests/FMbuildTB-err1.png Snippet of UI Gui Tab, 2 ; From existing TLB ----------...
by kdaube
31 Jan 2023, 12:26
Forum: Ask for Help (v1)
Topic: List selection by double click - How? Topic is solved
Replies: 5
Views: 481

Re: List selection by double click - How? Topic is solved

mikeyww, thank You for this explanation.
Although I have marked your post as accepted answer (I will implement this algogrithm), also that one of garry is of value - i will keep them in my samples collection.
by kdaube
30 Jan 2023, 14:36
Forum: Ask for Help (v1)
Topic: List selection by double click - How? Topic is solved
Replies: 5
Views: 481

Re: List selection by double click - How? Topic is solved

Thank you, Garry and Mikey
I will test tomorrow. However, i thought that the single = sign is an assignment, not a compare operator:
If (A_GuiEvent = "DoubleClick") Is IMHO a syntax violation - a trap into which I felt lt very often.
by kdaube
30 Jan 2023, 13:00
Forum: Ask for Help (v1)
Topic: List selection by double click - How? Topic is solved
Replies: 5
Views: 481

List selection by double click - How? Topic is solved

Dear experts, Since in a long list a single click on the list items is common to indicate where I am when scrolling, i want to select the item by double click. In the case at hand the selection should report the location aka index in the list - not the item contents. But I struggle with with detecti...
by kdaube
03 Nov 2022, 08:15
Forum: Ask for Help (v1)
Topic: How to read PDF meta data
Replies: 4
Views: 349

Re: How to read PDF meta data

Thank You very much, mikeyww!

I have found this PDF Tool Kit, installed it, and your script provides the requested information.
For the final application i will need to include the pdftk.exe in my distribution, because the user of my script/app will not have it.
by kdaube
03 Nov 2022, 07:30
Forum: Ask for Help (v1)
Topic: How to read PDF meta data
Replies: 4
Views: 349

Re: How to read PDF meta data

Well, towards the end of a PDF I find these data in plain text (highlighting from me indicating interesting daa): <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c143 79.161515, 2017/11/09-01:10:13 "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description ...
by kdaube
03 Nov 2022, 06:20
Forum: Ask for Help (v1)
Topic: How to read PDF meta data
Replies: 4
Views: 349

How to read PDF meta data

Deaar all, While it's easy to get a file's creation date. However the method is useless for downloaded PDFs as the creation date is the date of download to my system. I can get the wanted information by opening the file in Acrobat (Reader) and user File > Properties - but I want to do it without usi...
by kdaube
19 Feb 2022, 07:47
Forum: Visual Studio Code
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 70
Views: 36571

How to step through a script?

Dear all, I'm trying to get familier with AHK debugging using this new extension: Name: vscode-autohotkey-debug Id: zero-plusplus.vscode-autohotkey-debug Description: Advanced debugging support for AutoHotkey(includes H) v1 and v2 Version: 1.11.0 Publisher: zero-plusplus My test sript runs (by measn...
by kdaube
22 Dec 2021, 05:15
Forum: Ask for Help (v1)
Topic: Write array to file Topic is solved
Replies: 1
Views: 634

Re: Write array to file Topic is solved

Ah, that simple: remove the " around the file name...

But I need to add line feeds, because it' all in one line in the file.
by kdaube
22 Dec 2021, 05:12
Forum: Ask for Help (v1)
Topic: Write array to file Topic is solved
Replies: 1
Views: 634

Write array to file Topic is solved

Dear experts, I collect text lines in an array and want to write this array into a file: ReadRCfile(file_xx) ; test with french - for conversions nLines := aLines.Length() Loop % nLines { MsgBox % aLines[A_Index] FileAppend % aLines[A_Index], "E:\_DDDprojects\FM-Localisation\Scripts\Example_out.txt"...
by kdaube
22 Jan 2021, 11:16
Forum: Ask for Help (v1)
Topic: MousClick location not as expected Topic is solved
Replies: 5
Views: 416

Re: MousClick location not as expected Topic is solved

Seemingly the vertical 'toolbar' window right at the bottom of the FrameMaker window is active. After careful inspection I see that you are right! And yes, If !WinExist("ahk_class FrameFamily15.MdiFrame") { Did the trick. I end up with a variable ... fmVersion := "15" ; 10 … 16 If !WinExist("ahk_cl...
by kdaube
22 Jan 2021, 08:45
Forum: Ask for Help (v1)
Topic: MousClick location not as expected Topic is solved
Replies: 5
Views: 416

MousClick location not as expected Topic is solved

Dear helpers, To send keystrokes to the application FrameMaker (version > 8) I need to add a mouseclick after the window activation to be able to input anything into that application. In a script which shall send keystrokes I have these statements If WinExist("ahk_exe FrameMaker.exe") WinActivate, a...
by kdaube
15 Nov 2020, 12:12
Forum: Ask for Help (v1)
Topic: Can not extract with RegExMatch Topic is solved
Replies: 1
Views: 202

Re: Can not extract with RegExMatch Topic is solved

Well - I found it myself: Thou must not have blanks between function name and opening parantheses!

Code: Select all

iFound    := RegExMatch (newText, re_02, outVar)
must be written

Code: Select all

iFound    := RegExMatch(newText, re_02, outVar)
and all is OK...
by kdaube
15 Nov 2020, 12:05
Forum: Ask for Help (v1)
Topic: Can not extract with RegExMatch Topic is solved
Replies: 1
Views: 202

Can not extract with RegExMatch Topic is solved

Dear all, There must be a knot in my breain (yes, it is a little bit old). oldText = Message ("E", "Settings file «01» Read error:\n02", "getXMLdata" newText = <msg_02>Settings file «01» Read error:\n, 02</msg_02> ; WIN+n Replace the still selected string with the message from the xml file ; newText...
by kdaube
10 Sep 2020, 01:31
Forum: Ask for Help (v1)
Topic: Script not working after wakeup from hibernation
Replies: 4
Views: 1290

Re: Script not working after wakeup from hibernation

... seems to help only for resume 10, but not resume 7 PBT_APMRESUMESUSPEND 0x0007 resuming from a low-power state PBT_APMPOWERSTATUSCHANGE 0x000A e.g. switch from battery to A/C; low b attery In my case 7 is after 'self-hibernation' (sleeping according to power settings), 10 is after 'forced hibern...
by kdaube
09 Jun 2020, 04:10
Forum: Ask for Help (v1)
Topic: Windows Defender reports troyan in Shadow Volume for a compiled AHK script
Replies: 8
Views: 808

Re: Windows Defender reports troyan in Shadow Volume for a compiled AHK script

Thank You all for the discussion of the issue To Joe Wograd and others: Probably not an issue, but I wonder if kdaube got an infected download from somewhere other than the TAC109 GitHub page I have downloaded from an autohotkey page (but not https://www.autohotkey.com/download/2.0/ where now the al...
by kdaube
08 Jun 2020, 08:43
Forum: Ask for Help (v1)
Topic: Windows Defender reports troyan in Shadow Volume for a compiled AHK script
Replies: 8
Views: 808

Windows Defender reports troyan in Shadow Volume for a compiled AHK script

Dear all, I haven't noticed this before, but starting May 29 nearly every day I get report from Windows Defendor (now 12 reports) about a troyan found on a volume shadow copy. The time is always in the early afternoon (12 … 15 pm): https://daube.ch/zz_tests/2020-06-08-WindowsDefender.png I have noti...
by kdaube
08 May 2020, 03:06
Forum: Ask for Help (v1)
Topic: Hotkey WIN+Left dos not behave any more
Replies: 1
Views: 322

Re: Hotkey WIN+Left dos not behave any more

The problem is gone, Probably due to the change in my hotstring script https://www.autohotkey.com/boards/viewtopic.php?f=76&t=74682 , introducing it with the sequence to raise privileges: #SingleInstance Force if !A_IsAdmin { ; see H:\Utilities\DDDutils\Test-ahks\Run-as-admin.ahk try Run *RunAs "%A_...
by kdaube
08 May 2020, 03:02
Forum: Ask for Help (v1)
Topic: Script not working after wakeup from hibernation
Replies: 4
Views: 1290

Re: Script not working after wakeup from hibernation

I have now introduced the script with this code: #SingleInstance Force if !A_IsAdmin { ; must be first in script ; see *verb in AHK help --- here the context-menu Run as Administrator try Run *RunAs "%A_ScriptFullPath%" catch MsgBox, You clicked Cancel when asked to elevate the script`nPlease Run th...
by kdaube
07 May 2020, 02:38
Forum: Ask for Help (v1)
Topic: Hotkey WIN+Left dos not behave any more
Replies: 1
Views: 322

Hotkey WIN+Left dos not behave any more

Dear experts, Since short time hottkey WIN+Left does not behave any more in Windows 10 Pro, OSbuild 10.0.18363.778; Monitor size 3440 x 1440 Using WIN+Left arrow the 1. use moves the current app window to the left half of the screen, the other windows are in the right half in reduced size klicking o...

Go to advanced search