Search found 243 matches

by Peter2
19 Feb 2016, 03:47
Forum: Ask For Help
Topic: LV_GetNext(0, "F") returns always 0
Replies: 14
Views: 1356

Re: LV_GetNext(0, "F") returns always 0

just me

thanks. I tried now to
a) add Gui, %BundleList%:Default in different placers and
b) removed the name of the GUI

but nothing changed. Is it possible that you modify my code above that it is working (or tell me exactly where I have to change what?).

Thanks in advance
by Peter2
18 Feb 2016, 18:08
Forum: Ask For Help
Topic: LV_GetNext(0, "F") returns always 0
Replies: 14
Views: 1356

Re: LV_GetNext(0, "F") returns always 0

So, here is the core of the code. It creates a listview, fills it with two lines and does something with double-click. With the context-menu (right-click) I want to extract the value of the clicked line - but I get nothing. Certainly I missed as usual a dot or a comma or something else ... #SingleIn...
by Peter2
18 Feb 2016, 17:04
Forum: Ask For Help
Topic: LV_GetNext(0, "F") returns always 0
Replies: 14
Views: 1356

Re: LV_GetNext(0, "F") returns always 0

I have only one GUI with one List, but a) there is a loop which refreshes it sometimes (but the problem is before the refresh) b) I gave the GUI a name Gui, new,+HwndBundleList,Bundle Switcher Gui, Add, ListView, r20 w580 vMyListView gMyListView Grid, Icon|Name|Status|Description|Path|Picture Someth...
by Peter2
18 Feb 2016, 16:08
Forum: Ask For Help
Topic: LV_GetNext(0, "F") returns always 0
Replies: 14
Views: 1356

LV_GetNext(0, "F") returns always 0

I used the code "ListView_2.ahk" from helpfile to create a listview with doubleclick and context-menu. The list works, doubleclick too, and right-click shows the context-menu and invokes the sub-routine. The only problem is LV_GetNext(0, "F") returns always 0 Before I upload the code (where I broke ...
by Peter2
18 Feb 2016, 11:52
Forum: Ask For Help
Topic: Simple text extraction ....
Replies: 4
Views: 525

Re: Simple text extraction ....

In any AHK expression two quotes within a string yields a literal quote. https://autohotkey.com/docs/commands/_EscapeChar.htm#Remarks ... Thanks. I looked at the help of RegExMatch, where I could find no info about double quotes ...This is what I meant about using Instr / SubStr... It will take tim...
by Peter2
18 Feb 2016, 04:47
Forum: Ask For Help
Topic: (transient glitch) Private Messages on this board?
Replies: 2
Views: 386

Re: Private Messages on this board?

I just sent you a PM, and I can see it in the Outbox. My old messages are displayed in "Inbox" and in "Sent Messages".
by Peter2
18 Feb 2016, 02:55
Forum: Ask For Help
Topic: Loop, files and (Back)slashes
Replies: 2
Views: 325

Re: Loop, files and (Back)slashes

Thanks for your help.
So it can be said that "Loop, Files" handles the path in another way than "A_LoopFileDir"?
by Peter2
18 Feb 2016, 02:50
Forum: Ask For Help
Topic: Simple text extraction ....
Replies: 4
Views: 525

Re: Simple text extraction ....

It is (in large part) clear now - as usual after an explanation here in the forum :bravo: But I don't understand the searching of quotes: search for 'abc' -->> parameter "abc" search for 'Name="Inspector"' -->> parameter "Name=""Inspector""" It seems that the doubled quotes "" are not an "escaping",...
by Peter2
17 Feb 2016, 19:57
Forum: Ask For Help
Topic: Simple text extraction ....
Replies: 4
Views: 525

Simple text extraction ....

I'm lost in a simple text extraction between RegExMatch and Match-objects, but I'm sure it can be done with 2 lines. Thanks for help in Advance. I have simple strings, line by line, created with Fileread ProductType="Application" Name="Inspector" AppVersion="1.0.0" Description="Debugging tools" Prod...
by Peter2
17 Feb 2016, 19:03
Forum: Ask For Help
Topic: Loop, files and (Back)slashes
Replies: 2
Views: 325

Loop, files and (Back)slashes

I made a mistake with (back)slashes, and I'm curious why I get the results I got. I defined a folder, using slashes instead of backslashes: ziel1 := A_AppData . "/Autodesk/ApplicationPlugins/" In this folders, there are the subfolders "A.bundle", "B.bundle_paused" and "C" Then I looped the folder, t...
by Peter2
15 Feb 2016, 14:37
Forum: Ask For Help
Topic: Date: days since 01.01.1900
Replies: 5
Views: 1018

Re: Date: days since 01.01.1900

Additional info: It seems that the decimal part of the input value needs an extra handling. Example: 41689.75 -->> 19.02.2014 18:00 I made it this way (I'm sure it can be condensed to a half-liner ..) dez_datum := 41689.750000 tage := Floor(dez_datum) stunden := (dez_datum - tage) * 24 start:=190001...
by Peter2
15 Feb 2016, 02:10
Forum: Ask For Help
Topic: Date: days since 01.01.1900
Replies: 5
Views: 1018

Re: Date: days since 01.01.1900

Thanks @Exaskryz for the original code and @SifJar for the modification.
by Peter2
14 Feb 2016, 14:50
Forum: Ask For Help
Topic: trojan in autohotkey installer?
Replies: 36
Views: 20529

Re: trojan in autohotkey installer?

Current check of AutoHotkey112301.zip on Virustotal.com shows 0 alerts:
https://www.virustotal.com/de/file/f606 ... 455479320/
by Peter2
14 Feb 2016, 13:38
Forum: Ask For Help
Topic: Date: days since 01.01.1900
Replies: 5
Views: 1018

Re: Date: days since 01.01.1900

Exaskryz wrote:...to interchange between Excel and AHK, ...
No interaction with, no usage of Excel - pure AHK. Let's see if the difference of the results can be solved ....
by Peter2
14 Feb 2016, 12:39
Forum: Ask For Help
Topic: Date: days since 01.01.1900
Replies: 5
Views: 1018

Date: days since 01.01.1900

Usually MS Excel calculates dates with "days since 01.01.1900" - eg. 19.02.2014 is day 41689" (=> approx. 114 years x 365 days = 41610)

Is there a function in AHK to convert numbers to date: 41689 -->> 19.02.2014?

Have a fine week!

Peter
by Peter2
28 Dec 2015, 04:52
Forum: Ask For Help
Topic: Retrieve filename and pagenumber from PDF
Replies: 9
Views: 1995

Re: Retrieve filename and pagenumber from PDF

huismu5 wrote:...I'm illiterate in all programming languages except AHK ...
Me too, but ask the support in the forum. They are very quick and competent, and maybe they can show you the way ...
by Peter2
28 Dec 2015, 03:44
Forum: Ask For Help
Topic: Retrieve filename and pagenumber from PDF
Replies: 9
Views: 1995

Re: Retrieve filename and pagenumber from PDF

I suppose this depends on the PDF-Viewer that you are using. PDF-XChange Editor offers a Javascript API, so maybe you can solve your job without AHK?
http://www.tracker-software.com/product ... nge-editor
by Peter2
01 Nov 2015, 15:41
Forum: Ask For Help
Topic: [Solved] Parsing strings with Pilcrow inside
Replies: 5
Views: 859

Re: [Solved] Parsing strings with Pilcrow inside

Solved - sorry for the confusion:

The named crypter-script uses the value A_ScriptName, and of course different names brings different results.
by Peter2
01 Nov 2015, 10:45
Forum: Ask For Help
Topic: [Solved] Parsing strings with Pilcrow inside
Replies: 5
Views: 859

Re: Parsing strings with Pilcrow inside

Thanks for your advices. I tried some things - unsatisfying results .... I have ... 1) an AHK script with the linked script of PhiLho (see above) 2) a script which a) reads a small text file b) adds random characters c) crypt it (for usage) d) decrypt it (for controlling) 3) a script which reads c) ...
by Peter2
31 Oct 2015, 18:25
Forum: Ask For Help
Topic: [Solved] Parsing strings with Pilcrow inside
Replies: 5
Views: 859

Re: Parsing strings with Pilcrow inside

ASCII is 7-bit (0-127). So what encoding does the text file use? ... I use current AutoHotkeyU32.exe, and the file is created with " Random, code, 32, 230 neu = % Chr(code) neu fileappend . Ultraedit shows the filetype with "1252" ...The function was written for old AutoHotkey (32-bit ANSI, where s...

Go to advanced search