 |
AutoHotkey Community Wir helfen uns gegenseitig aus der Patsche
|
| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
Sess Gast
|
Verfasst am: So Jun 29, 2008 1:50 pm Titel: makro soll weitermachen, wenn ein ActiveTitle gefunden wurde |
|
|
Hi.
Ich schreibe ein Makro mit "AutoHotKey" und aus der Tatsache heraus, dass sich Fenster manchmal langsamer öffnen, soll eben ein Befehl her,
der besagt es geht erst weiter wenn der bestimmte Active-Title gefunden wurde.
Bisher habe ich:
___________________________________________________________
RUN C:\Dokumente und Einstellungen\Ulf\Desktop\MusikProgramme\GlovePIE030\GlovePIE.exe
;
;
Loop 4
{
Sleep 2000
WinActivate, GlovePIE
WinGetTitle, title, A
if(title == "GlovePIE - Programmable Input Emulator 0.3")
break
}
;Klick auf "File"
Click 18, 36
Sleep 1000
;
___________________________________________________________
und dann gehts weiter....
Aber er beendet die Schleife nicht .
Merken tu ich das daran das erst nach 8 Sekunden der Mauszeiger zu "File" läuft.
Ich weiss, es gibt vielleicht bessere Möglichkeiten, aber ich brauch nur Hilfe mit der Schleife, denn das funktioniert ja vom Prinzip.
Lieben Gruß,
Sess |
|
| Nach oben |
|
 |
Z Gecko Gast
|
Verfasst am: So Jun 29, 2008 2:26 pm Titel: |
|
|
Grundsätzlich brauchst Du für sowas:
WinWaitActive
Da Du aber das Fenster mit WinActivate eh noch aktivierst, reicht auch:
WinWait
Damit wartest Du bis das Fenster existiert.
Nebenbei: Spracherkennung kannst Du auch mit Seans COM-Speach-Skript benutzen http://www.autohotkey.com/forum/topic26841.html.
Die Erkennung wird in beiden Fällen vom MS-Specch SDK erledigt, da gibt es also keinen Unterschied bei der Erkennungsqualität.
Und Glove-PIE hat eine bedenkliche Lizenzpolitik.
| Glove-PIE Licence hat Folgendes geschrieben: | GlovePIE is Copyright 2007 by Carl Kenner, except for the scripts by other authors. By using this software you agree to obey the following license conditions:
* Playball Technology, Inc has exclusive rights to use this software for making money from commercial baseball simulations. However other people are free to make money from this program for non-baseball related things.
* You may not use this software directly or indirectly for any military purpose. This includes, but is not limited to, training, research and development, controlling military hardware, directing military personnel, or troop entertainment. You may not use this software anywhere on a military base or vessel. This applies to all versions of PIE. You may also not use it for playing “games” produced by the military to recruit players as real soldiers, including America’s Army. Sorry.
* You may not export this software to Israel, or use it in Israel (including the occupied territories), until Israel has ended its occupation of the West Bank, Gaza Strip, Lebanon, Syria, and anywhere else it may occupy, or until Israel abolishes apartheid (granting all Jews and non-Jews in its territories equal rights). If you try to run it in Israel before then, it will give you an error.
* You may not use this software to cheat at online or multiplayer games. What constitutes cheating depends on the game and the server. Just using a different input device shouldn't be considered cheating, but complex scripted actions to make things easier may be considered cheating. Don't get GlovePIE banned, or you will hurt everyone who wants to play with a VR glove. But feel free to cheat at single player! |
|
|
| Nach oben |
|
 |
Sess Gast
|
Verfasst am: So Jun 29, 2008 2:52 pm Titel: |
|
|
GlovPie nehm ich nicht zur Spracherkennung (befindet sich aus anderen Gruenden im "MusikProgramme" Ordner), wenn du das daher meintest.
Kommt es also aufs gleiche raus, ob ich
WinActivate, GlovePIE
WinWait, GlovePIE
schreibe, oder beide Zeilen umkehre? |
|
| Nach oben |
|
 |
Z Gecko Gast
|
Verfasst am: So Jun 29, 2008 3:31 pm Titel: |
|
|
Äh, nein.
Du kannst entweder
| Code: | WinWait, GlovePIE
WinActivate, GlovePIE
| schreiben, oder
falls dein Fenster aus anderen gründen schon aktiviert wird(z.B. weil beim Prgrammstart sowieso das Fenster aktiviert wird),
| Code: | | WinWaitActive, GlovePIE |
|
|
| Nach oben |
|
 |
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten.
|
Powered by phpBB © 2001, 2005 phpBB Group Deutsche Übersetzung von phpBB.de
|