Search found 125 matches
- 14 Feb 2014, 07:38
- Forum: Ask for Help (v1)
- Topic: Get duration of media file on Japanese system
- Replies: 1
- Views: 1027
Re: Get duration of media file on Japanese system
untested for i, v in FileDetailItems(file) str .= i . " = " . v . "`n" msgbox,% str FileDetailItems(file) { splitpath, file, file_nx, file_dp, file_x, file_n, file_d if (!file_d) file_dp := a_workingdir (file_dp ? "\" file_dp : "") objShell := ComObjCreate("Shell.Application") objFolder := objShell....
- 14 Feb 2014, 03:14
- Forum: Ask for Help (v1)
- Topic: [SOLVED] Problem with TickCount
- Replies: 2
- Views: 2544
Re: Problem with TickCount
they want (probably) an (32bit) unsigned int to store the msecs, dunno what dllcall defaults to though.
- 11 Feb 2014, 05:01
- Forum: Off-topic Discussion
- Topic: New games ...
- Replies: 30
- Views: 11406
Re: New games ...
I agree with tidbit, just wanna append sth positive: If one can wait some months after release, then often PC games are very low priced (not a solution for everyone/every game of course). Also, there are many indie and/or crowdfunded games not necessarily targeting the AAA market (at least for PC), ...
- 10 Feb 2014, 01:55
- Forum: Ask for Help (v1)
- Topic: WASD to Mouse Coordinates
- Replies: 1
- Views: 1307
Re: WASD to Mouse Coordinates
Untested, but maybe you get the idea:
Code: Select all
#if (getkeystate("lbutton", "p")
a::
mousemove, -50, 0,,R
keywait, a
mousemove, 50, 0,,R
return
;w::...
#if
- 05 Feb 2014, 05:31
- Forum: Ich brauche Hilfe
- Topic: AlwaysOnTop ...mit Ausnahme von...
- Replies: 13
- Views: 4342
Re: AlwaysOnTop ...mit Ausnahme von...
...nur solange sie nicht parallel in mehreren threads betrieben wird. Nur so als kleiner debugging-Hinweis, da sowas wohl leicht übersehen wird....denn diese funktioniert auch fehlerfrei
my2c
- 05 Feb 2014, 04:03
- Forum: Ich brauche Hilfe
- Topic: AlwaysOnTop ...mit Ausnahme von...
- Replies: 13
- Views: 4342
Re: AlwaysOnTop ...mit Ausnahme von...
In HotkeyIts thread habe ich eine Funktion gepostet, die das script nicht am leben erhält.
- 05 Feb 2014, 03:01
- Forum: Ich brauche Hilfe
- Topic: AlwaysOnTop ...mit Ausnahme von...
- Replies: 13
- Views: 4342
Re: AlwaysOnTop ...mit Ausnahme von...
Bittschö,
fürs Protokoll noch ein anderer Ansatz der vllt schon reichte:
fürs Protokoll noch ein anderer Ansatz der vllt schon reichte:
Code: Select all
Run, print "pic.png",,, pid
winwait,% "ahk_pid " pid
winwaitclose,% "ahk_pid " pid
- 05 Feb 2014, 02:20
- Forum: Ich brauche Hilfe
- Topic: AlwaysOnTop ...mit Ausnahme von...
- Replies: 13
- Views: 4342
Re: AlwaysOnTop ...mit Ausnahme von...
Das was just me vorschlägt, gibt es auch schon fertig:
http://ahkscript.org/boards/viewtopic.php?f=6&t=1274
http://ahkscript.org/boards/viewtopic.php?f=6&t=1274
- 17 Jan 2014, 00:12
- Forum: Ich brauche Hilfe
- Topic: Suche ansatz für Filebasierten Chat
- Replies: 14
- Views: 4640
Re: Suche ansatz für Filebasierten Chat
Japp, die Rechte müssten einmalig vergeben werden und wieder, wenn neue User hinzukommen. Das kann man (Admin) mit einer kleinen .bat machen, bei 2500 Objekten muss man es automatisieren. Nun bin ich aber angefixt und versuche mich demnächst mal an einem kleinen (nicht dateibasiertem) Konsolen-Chat-...
- 16 Jan 2014, 14:40
- Forum: Ich brauche Hilfe
- Topic: Suche ansatz für Filebasierten Chat
- Replies: 14
- Views: 4640
Re: Suche ansatz für Filebasierten Chat
Ja, ein Server wär flexibler. Soweit ich das sehe, kann man aber "Sicherheit UND dynamische Gruppen" Datei-basiert ohne riesen Aufriss realisieren. Also man verzichtet weiterhin auf dynamische User, was verkraftbar erscheint. (1) User1 hat Schreibzugriff auf den Ordner User1 und schreibt in die Date...
- 15 Jan 2014, 19:58
- Forum: Ich brauche Hilfe
- Topic: Suche ansatz für Filebasierten Chat
- Replies: 14
- Views: 4640
Re: Suche ansatz für Filebasierten Chat
Ungetestet. Jeder user hat ne datei user (mit schreibzugriff). Nachricht senden von User1 an User2 ist sowas wie fileappend oder ähnliches, fileappend,% "[User2][" . timestamp . "]" . msg . "`n", User1 Dann würde ich HotkeyIts watchdirectory (name ähnlich) testen obs in deinem Fall anwendbar ist, an...
- 08 Jan 2014, 06:08
- Forum: Scripts and Functions (v1)
- Topic: WinWaitCreated() - Wait for a new window
- Replies: 32
- Views: 16699
Re: WinWaitCreated() - Wait for a new window
That is exactly the difference between these 2 methods. Not imho, replacing the first winget command by "winget, pwl, list" (no window params) should imitate that behaviour of winwaitcreate quite well although the method does not really change. Also WinWaitCreated should be using less CPU I have no...
- 06 Jan 2014, 15:00
- Forum: Scripts and Functions (v1)
- Topic: WinWaitCreated() - Wait for a new window
- Replies: 32
- Views: 16699
Re: WinWaitCreated() - Wait for a new window
In http://ahkscript.org/boards/viewtopic.php?f=9&t=542, I pointed out an idea to a pedestrian AHK version of "winwaitcreated". It turns out to be considerably shorter (or was it my use of identifiers?) and doesn't keep the script alive, and, it falls back to "winwait" which makes it reacting faster ...
- 29 Dec 2013, 13:20
- Forum: Scripts and Functions (v1)
- Topic: Centres - returns centres of a 2d triangle
- Replies: 4
- Views: 4208
Re: Centres - returns centres of a 2d triangle
One can parametrize f(t, s) := a+(b-a)t+(c-b)s , for 0 <= t <= 1 and 0 <= s <= t where a, b, c are the vertices of the triangle. If the triangle has nonvanishing 2 dimensional Volume, i.e. det(b-a, c-b) != 0, one can use f(t, s) to integrate over the triangle. (1/Volume)*\int_0^1 dt \int_0^t ds |det...
- 19 Dec 2013, 07:53
- Forum: Gaming Help (v1)
- Topic: Array handling in a CCG
- Replies: 3
- Views: 3695
Re: Array handling in a CCG
Simple advice for you, (+) for do, (-) for not do: (+): x := "hello world" (-): x = hello world (+): x := "hello" . var (-): x = hello %var% (+): some_command,% var, maybe_some_string, ... (-): some_command, %var%, maybe_some_string, ... (+): array := {} ; yupp, it must be initialized. array[var] :=...
- 09 Dec 2013, 17:39
- Forum: Ich brauche Hilfe
- Topic: Funktion dazu bringen Teil-String zu nutzen.
- Replies: 6
- Views: 2629
Re: Funktion dazu bringen Teil-String zu nutzen.
Manchmal versteckt sich der Wald eben hinter lauter Bäumen.
Bei regex müsste man nur zusätzlich in Tab1 (die "Nadel") noch die Sonderzeichen maskieren (z.B. | durch \| ersetzen).
instr sollte ausreichen, am besten du testest erstmal obs überhaupt so funzt.
Bei regex müsste man nur zusätzlich in Tab1 (die "Nadel") noch die Sonderzeichen maskieren (z.B. | durch \| ersetzen).
instr sollte ausreichen, am besten du testest erstmal obs überhaupt so funzt.
- 09 Dec 2013, 16:55
- Forum: Ich brauche Hilfe
- Topic: Funktion dazu bringen Teil-String zu nutzen.
- Replies: 6
- Views: 2629
Re: Funktion dazu bringen Teil-String zu nutzen.
Weil viele genau das von einem Gleichheitszeichen erwarten.
prüft dagegen auf Enthaltenheit (ja ja kein richtiges Wort).
Code: Select all
instr(Tabs.accChild(A_Index).accName(0), Tab1)
- 09 Dec 2013, 14:11
- Forum: Ich brauche Hilfe
- Topic: Funktion dazu bringen Teil-String zu nutzen.
- Replies: 6
- Views: 2629
Re: Funktion dazu bringen Teil-String zu nutzen.
ähm
prüft schonmal auf Gleichheit (case insensitive), kann man durch instr/regex ersetzen.
Code: Select all
Tabs.accChild(A_Index).accName(0) = Tab1
- 17 Nov 2013, 07:40
- Forum: Ask for Help (v1)
- Topic: Variable error in function?
- Replies: 12
- Views: 4898
Re: Variable error in function?
Haven't tested it, haven't red the source, but it looks like:
Gosub remains in the thread, Settimer doesn't. Threads don't share local vars. Or more precise, gosub remains in the function scope, Settimer starts a new thread in global scope.
Gosub remains in the thread, Settimer doesn't. Threads don't share local vars. Or more precise, gosub remains in the function scope, Settimer starts a new thread in global scope.
- 13 Nov 2013, 08:36
- Forum: Ich brauche Hilfe
- Topic: Thread unterbrechen
- Replies: 8
- Views: 3460
Re: Thread unterbrechen
1) die zu unterbrechende funktion immer wieder einen break-parameter abfragen lassen.
2) AHK_H bzw ahk.dll.
3) temporäres skript starten, kann man dann auf wunsch beenden.
Wenn du was anderes findest, wärst du, soweit ich weiß, der erste.
2) AHK_H bzw ahk.dll.
3) temporäres skript starten, kann man dann auf wunsch beenden.
Wenn du was anderes findest, wärst du, soweit ich weiß, der erste.