Search found 144 matches

by hd0202
02 Dec 2014, 06:14
Forum: Bug Reports
Topic: Code works with 1.1.14.03 but not with the last versions
Replies: 4
Views: 1413

Code works with 1.1.14.03 but not with the last versions

This post refers to FC - AutoHotkey Foundation Classes v0.1 (Includes OOP GUI) in Script section. In order to learn about OOP with AutoHotkey and to get some experience I have converted the second (full) example of the TreeView section in the help and made some additions (folders and icons in the li...
by hd0202
29 Nov 2014, 08:02
Forum: Ask For Help
Topic: Help with using Tail/Checkfile to watch multiple files Topic is solved
Replies: 1
Views: 518

Re: Help with using Tail/Checkfile to watch multiple files Topic is solved

In your current version you call use it for only one file. The cause are the static variables "CF" and FP" which keep the values from one call to the next, and if you call it with another file they are reset. Here is my suggestion that uses an array for this purpose and can be used for many files: #...
by hd0202
26 Nov 2014, 16:34
Forum: Scripts and Functions
Topic: AFC - AutoHotkey Foundation Classes v0.1 (Includes OOP GUI)
Replies: 12
Views: 9200

Re: AFC - AutoHotkey Foundation Classes v0.1 (Includes OOP G

Thank you for this wunderful class (and for the wunderful SciTE4AutoHotkey, too) !!! In order to learn about OOP with AutoHotkey and to get some experience I have converted the second (full) example of the TreeView section in the help and made some additions (folders and icons in the listview and do...
by hd0202
26 Jun 2014, 10:02
Forum: Ich brauche Hilfe
Topic: Bug oder nicht Bug, das ist hier die Frage.
Replies: 3
Views: 900

Re: Bug oder nicht Bug, das ist hier die Frage.

Johnny R wrote:Mache ich einen Fehler oder ist das ein Bug?
Du machst einen Fehler: Choose1 selektiert Amazon

Hubert
by hd0202
04 Jun 2014, 05:24
Forum: Ich brauche Hilfe
Topic: Oberste Zeile einer Listbox ermitteln...
Replies: 2
Views: 1098

Re: Oberste Zeile einer Listbox ermitteln...

Code: Select all

LB_GETTOPINDEX(HWND) {
   ; LB_GETTOPINDEX = 0x018E -> msdn.microsoft.com/en-us/library/bb761317(v=vs.85).aspx
   Return (DllCall("User32.dll\SendMessage", "Ptr", HWND, "UInt", 0x018E, "Ptr", 0, "Ptr", 0, "Ptr") + 1)
}
Hubert
by hd0202
20 May 2014, 05:14
Forum: Ich brauche Hilfe
Topic: Script verhält sich anders als compilierte Version
Replies: 11
Views: 1799

Re: Script verhält sich anders als compilierte Version

Hi fump,

ist es Absicht, dass in Deinem GUI
Gui, 2:Add, ...
und
Gui, Add, ...
gemischt sind?

Hubert
by hd0202
24 Apr 2014, 02:18
Forum: Ask For Help
Topic: bizarre IF() behavior in timed routine
Replies: 15
Views: 2726

Re: bizarre IF() behavior in timed routine

What do you think of

Code: Select all

  If (winW && winH && !((oldX=winX)&&(oldY=winY)&&(oldW=winW)&&(oldH=winH))) 
Hubert
by hd0202
24 Apr 2014, 02:04
Forum: Scripts and Functions
Topic: Scriptcontrol 1.2
Replies: 5
Views: 2657

Re: Scriptcontrol 1.2

For testing I changed 2 code lines to show 20 lines:

Code: Select all

 ...
 Gui, Add, ListView, r20 w400 vListView gAHKListe hwndhLV AltSubmit, PID|Name|Parameter|Pause on|Hotkeys off
 ...
 Gui, Show,w420 h410, %scripttitle%
 ...
Hubert
by hd0202
26 Mar 2014, 10:03
Forum: Ask For Help
Topic: Problem with creating and saving an XML file
Replies: 15
Views: 3863

Re: Problem with creating and saving an XML file

I think, the StringSplit is wrong, it should be:

Code: Select all

StringSplit, TitleArray, A_LoopReadLine, _.
This could be easyly checked with MsgBox :lol:

Hubert
by hd0202
23 Mar 2014, 05:21
Forum: Ask For Help
Topic: Get Selected Files in Order: Windows Explorer
Replies: 7
Views: 2798

Re: Get Selected Files in Order: Windows Explorer

My new suggestion, tested with XP and Win7: start with ctrl shift 2, then switch to explorer and select files per left click with ctrl shift 1 you end the collection of files and show the result ^+2:: files = tab := {} loop2 = yes loop { clipboard = if (loop2 = "no") return send, ^c sleep, 200 loop,...
by hd0202
22 Mar 2014, 13:12
Forum: Ask For Help
Topic: Get Selected Files in Order: Windows Explorer
Replies: 7
Views: 2798

Re: Get Selected Files in Order: Windows Explorer

Here is my suggestion: ^+1:: ; ctrl shift 1 on open explorer window. tested on XP wingettitle, title, A ControlGetText, path, Edit1, %title% ; needs: "Display the full path in the address bar" in folder options msgbox, % path ControlGet, files, List, "selected", SysListView321, %title% out = loop, p...
by hd0202
17 Mar 2014, 08:54
Forum: Ask For Help
Topic: select a file in a folder
Replies: 7
Views: 1782

Re: select a file in a folder

I understand, that you want to copy 2 from 5 files from folder1 (that should be selected by AutoHotkey) to your work folder "premiere" and use them there for your work. Then you want to copy 2 from 5 files from folder2 and process them, the same with folder3 and folder4. My suggestion: do not copy t...
by hd0202
17 Mar 2014, 04:35
Forum: Ask For Help
Topic: Help with TreeView
Replies: 19
Views: 4664

Re: Help with TreeView

@just me
Your solution was my first thought too :lol:
If it where so simple I had not needed more than one hour for my suggestion - please test both versions :!:

Hubert
by hd0202
17 Mar 2014, 01:48
Forum: Ask For Help
Topic: select a file in a folder
Replies: 7
Views: 1782

Re: select a file in a folder

Why not directly copy the files via hotkey? In my sample the folders on the desktop are name "folder1" to "folder4", the target folder is named "premiere" and is on desktop too the hotkeys defined are "ctrl shift 1" to "ctrl shift 4" dir = %A_Desktop%\ to_folder = %dir%premiere ; set full path of ta...
by hd0202
17 Mar 2014, 00:54
Forum: Ask For Help
Topic: Help with TreeView
Replies: 19
Views: 4664

Re: Help with TreeView

My suggestion: start with the parent folder of the folder you want to show and ignore the sibling folders :!: First add some lines after setting TreeRoot : TreeRoot = %A_StartMenuCommon% splitpath, treeroot, rootname stringgetpos, pos, treeroot, \, R treeroot := substr(treeroot, 1, pos) TreeViewWidt...
by hd0202
07 Mar 2014, 03:51
Forum: Ich brauche Hilfe
Topic: Variablen HWND an ahk_id übergeben
Replies: 11
Views: 1906

Re: Variablen HWND an ahk_id übergeben

Also so:

Code: Select all

tempgui := A_Gui "HDT3"
tempgui := %tempgui%
... ahk_id %tempgui%
Hubert
by hd0202
07 Mar 2014, 03:21
Forum: Ich brauche Hilfe
Topic: Variablen HWND an ahk_id übergeben
Replies: 11
Views: 1906

Re: Variablen HWND an ahk_id übergeben

fump2000 wrote:ahk_id % %A_Gui%HDT3
muss wenn schon denn schon ahk_id % A_Gui "HDT3" heissen.

Hier mein Vorschlag:

Code: Select all

tempgui := A_Gui "HDT3"
... ahk_id %tempgui%
Hubert
by hd0202
27 Feb 2014, 01:09
Forum: Ask For Help
Topic: I am in search of a simple List View script with 5 columns
Replies: 14
Views: 2557

Re: I am in search of a simple List View script with 5 colum

just me gave you a complete example in the previous post which vou can use with little changes: 1) Ignore the creation of the test file - you already have your csv file - instead give your filename 2) I think you must change the delimiter character in the StringSplit command from | to , or ; Hubert
by hd0202
27 Feb 2014, 00:50
Forum: Scripts and Functions
Topic: [Class] ImageButton
Replies: 127
Views: 45713

Re: [Class] ImageButton

I added

Code: Select all

#include %a_scriptdir%
and it worked.

Hubert
by hd0202
24 Feb 2014, 15:50
Forum: Ask For Help
Topic: I am in search of a simple List View script with 5 columns
Replies: 14
Views: 2557

Re: I am in search of a simple List View script with 5 colum

LV_Add is a function and expects variables, therefore you must code your constants as:

Code: Select all

LV_Add("", "Key","EN SParts","FW SParts","Role-Tags", "DE-Translate")
Hubert

Go to advanced search