Search found 607 matches

by toralf
14 Sep 2019, 03:26
Forum: Ich brauche Hilfe
Topic: Mehrere ListViews in Tab3s Topic is solved
Replies: 3
Views: 278

Re: Mehrere ListViews in Tab3s Topic is solved

Nur eine Anregung:
Du hast z.Z. nur Labels für die drei Filteraktionen benutzt. Da diese fast identisch vom Aufbau sind könntest du stattdessen eine Funktion bauen, die es je nachdem alles zentral macht. Der Unterschied (Obst/Nuss/Fleisch) könnte über einen Parameter übermittelt werden
by toralf
25 Jul 2019, 22:49
Forum: Ask For Help
Topic: Adding controls AFTER tabs
Replies: 3
Views: 195

Re: Adding controls AFTER tabs

Add a line with Gui, Tab when you are done with the tabs. See documentation on tab control
by toralf
25 Jul 2019, 15:20
Forum: Ask For Help
Topic: Adding controls AFTER tabs
Replies: 3
Views: 195

Re: Adding controls AFTER tabs

You may position them below the tabs e.g. with xm option, see positioning of controls.
Or you specify absolut coordinates
by toralf
25 Jul 2019, 15:16
Forum: Ask For Help
Topic: WinKill doesn't work in compiled script
Replies: 6
Views: 361

Re: WinKill doesn't work in compiled script

Winkill expects a window title not a path. Might that be the issue?
by toralf
25 Jul 2019, 14:25
Forum: Ask For Help
Topic: Excel Help
Replies: 5
Views: 324

Re: Excel Help

Regarding you original question. Clicking coordinates are simple but as you discovered also not very robust. This it is not recommended. The most robust way with Excel is to use the COM interface. If you search the forum for this it will bring up several examples. Regarding positioning the windows t...
by toralf
16 Jul 2019, 22:22
Forum: Ask For Help
Topic: VBA in AHK, some functions don't work?
Replies: 5
Views: 436

Re: VBA in AHK, some functions don't work?

Msdn is a good source
by toralf
12 Jul 2019, 06:16
Forum: Skripte und Funktionen
Topic: Flexibler Autofilter für Excel
Replies: 11
Views: 1933

Re: Flexibler Autofilter für Excel

Welche AHK Version benutzt du?
by toralf
10 Jul 2019, 14:07
Forum: Ich brauche Hilfe
Topic: Wenn/Dann Abfrage in Abhängigkeit eines Wochentages Topic is solved
Replies: 3
Views: 333

Re: Wenn/Dann Abfrage in Abhängigkeit eines Wochentages Topic is solved

Du kannst das Kommando FormatTime mit der Option WDay nutzen, um den aktuellen Wochentag zu ermitteln. Abhängig davon kannst du dann ja wie du selbst geschrieben hast die zu addierende Zahl ermitteln
by toralf
06 Jul 2019, 00:05
Forum: Ask For Help
Topic: ListView with specific ImageIcon
Replies: 1
Views: 182

Re: ListView with specific ImageIcon

In the subroutine Readfile you create for each line a new image list . Iirc there should be only one for a LV. You might also take a look at splitpath. It is more r robust then substrating 4 characters from the end of the file You are using the GUI to store all information. I would recommend you to ...
by toralf
04 Jul 2019, 08:28
Forum: Ask For Help
Topic: StdOutToVar with alternating threads
Replies: 6
Views: 382

Re: StdOutToVar with alternating threads

Thanks, it's a typo. in a previous version I had stored them in the class and used it in the ReadStdOut method.
I changed the above script
by toralf
04 Jul 2019, 05:52
Forum: Ask For Help
Topic: StdOutToVar with alternating threads
Replies: 6
Views: 382

Re: StdOutToVar with alternating threads

Thanks a lot. Update: - fixed the above mentioned shortcommings - added WorkingDir as an optional parameter for run() File = %A_ScriptDir%\test.ahk Script = (% Loop, 10 { Sleep 2000 OutputDebug, OutputDebug %A_Index%``n FileAppend, StdOut %A_Index%``n, * FileAppend, StdErr %A_Index%``n, ** } ) FileD...
by toralf
04 Jul 2019, 00:03
Forum: Ask For Help
Topic: StdOutToVar with alternating threads
Replies: 6
Views: 382

Re: StdOutToVar with alternating threads

I think I got a fairly decent class now. Callback function and callback period get defined on new() and the timer to read the stdout is set when a cmd gets run(). Any improvement suggestions? File = %A_ScriptDir%\test.ahk Script = (% Loop, 10 { Sleep 2000 OutputDebug, OutputDebug %A_Index%``n FileAp...
by toralf
03 Jul 2019, 16:32
Forum: Ask For Help
Topic: StdOutToVar with alternating threads
Replies: 6
Views: 382

Re: StdOutToVar with alternating threads

I tried to create a class, it works. It was easy to have a Exists() method to check if a stream is currently running. But the ease of use got degredated, in my opinion. I had to create a bound function for the timer to get the instance of the class transferred into the function. And inside the timed...
by toralf
03 Jul 2019, 15:02
Forum: Ask For Help
Topic: StdOutToVar with alternating threads
Replies: 6
Views: 382

StdOutToVar with alternating threads

Lately I had two topics in this forum. One was to close StdOutToVar process The other was on alternating threads With the answers I got on these two topics I was able to create the below script. It basically has 3 functions: StdOutStream() StdOutStream_Read() StdOutStream_Kill() The question I have ...
by toralf
03 Jul 2019, 08:53
Forum: Ask For Help
Topic: Alternating threads
Replies: 4
Views: 310

Re: Alternating threads

Thank you for clarification. I”ll look into it.
by toralf
03 Jul 2019, 08:07
Forum: Ask For Help
Topic: Alternating threads
Replies: 4
Views: 310

Re: Alternating threads

Dear Holger, Thank you for your reply. Unfortunately I can not use different timer to alternate. The real actions take a longer time to finish. I only use loops with sleep to simulate the real action. Therefore I use a negative period for the settimer to start a different thread. Since both threads ...
by toralf
03 Jul 2019, 08:01
Forum: Ask For Help
Topic: How to close a stdoutstream
Replies: 7
Views: 602

Re: How to close a stdoutstream

Mine is CP850
by toralf
03 Jul 2019, 02:49
Forum: Ask For Help
Topic: How to close a stdoutstream
Replies: 7
Views: 602

Re: How to close a stdoutstream

I combined the two versions of the scripts and added my own flavor. File = %A_ScriptDir%\test.ahk Script = (% Loop, 10 { Sleep 2000 OutputDebug, OutputDebug %A_Index%``n FileAppend, StdOut %A_Index%``n, * FileAppend, StdErr %A_Index%``n, ** } ) FileDelete, %File% FileAppend, %script%, %File% cmd = %...
by toralf
03 Jul 2019, 02:41
Forum: Ask For Help
Topic: Alternating threads
Replies: 4
Views: 310

Alternating threads

I would like the two threads to alternate. But with the below code the original thread starts until it gets interrupted by the timed function. The original thread resumes when the second thread has ended. What do I have to do to have them both interrupt each other when the current active thread is i...
by toralf
03 Jul 2019, 00:19
Forum: Ask For Help
Topic: How to close a stdoutstream
Replies: 7
Views: 602

Re: How to close a stdoutstream

Thanks a lot teadrinker , I was aware that it was not 64 bit compatible and changed it in the meantime, but thanks for the updated version. I realize that there were 2 differences: 1) the PID wasn't read out of the Startupinfo 2) the %A_ComSpec% /c prevented to close the process There is also a diff...

Go to advanced search