Abfrage ob das Programm im Vordergrund ist?
Ich sitze da schon 1 Stunde dran und google und versuche und versuche!
Nichts klappt. Könnt ihr mir vielleicht helfen.
Also es soll abfragen ob Autoit in Vordergrund ist.
Abfrage ob das Programm im Vordergrund ist?
Ich sitze da schon 1 Stunde dran und google und versuche und versuche!
Nichts klappt. Könnt ihr mir vielleicht helfen.
Also es soll abfragen ob Autoit in Vordergrund ist.
If WinActive($Handle) Then ;// ...
[/autoit]WinActive ( "title" [, "text"] )
Make-Grafik war schneller.
[autoit]If WinActive($Handle) Then ;// ...
[/autoit]
Muss ich $Handle definieren also eine Variable erstellen?
Weil ich bekomme ein Error wegen $Handle
oO Ja, wie willst du etwas verwenden was nicht existiert?
Oder du verwendest einfach den Fenstertitel. Siehe in die Hilfe!
Ja natürlich musst du das. $Handle ist der Rückgabewert von GUICreate, oder auch einfach nur der Fenstertitel.
Ja muss ich bei
[autoit]$Handle = "Process"
[/autoit]machen?
Wenn ich das mache gehts immer noch nicht ^^.
Weil es soll ja den AutoIt Skript in Vordergrund bringen.
Der Process ist
AutoIt.exe*32
[/autoit] Zitat$Handle ist der Rückgabewert von GUICreate, oder auch einfach nur der Fenstertitel.
Ich weiß nicht was ihr meint.
Wenn ich $Handle nicht definiere also eine Variable erstelle kommt ein Error.
Wenn ich $Handle definiere also eine Variable erstelle kommt immer noch ein Error.
;Abfrage ob AutoIt im Vordergrund ist
$Handle = "AutoIt.exe"
If WinActive($Handle) Then
MsgBox( 0, "OK", "" )
EndIf
;// *- Kein Kommentar -*
[/autoit]Du kannst keine Prozesse in den Vordergrund bringen oO Nur GUI's...
Wie hast du dir das vorgestellt?
Ich mein nicht Processe.
Also ich mein z.B. Chrome ?
Zitat von sezer0012[...] Weil es soll ja den AutoIt Skript in Vordergrund bringen.
Der Process ist [...]
So, nochmal: Was genau hast du vor? AutoIt.exe ist ein Prozess. Und den kann man nicht in den Vordergrund bringen.
Könnt ihr mir jetzt helfen? Ich sitze immer noch drann
Also ich erstell einen Loader dann öffnet es automatisch adf.ly so dann kommt eine MsgBox wo steht nimm den Loader in Vordergrund. Und die Abfrage ist ja dafür da. Oder du weist wie man automatisch den Loader in Vordergrund nimmt.
Warte auf Antwort ....
Habe ich das richtig verstanden, du willst ein von dir erstelltes Fenster in den Vordergrund bringen?
Das müsste klappen falls du nur ein Fenster hast:
Func Vordergrund()
Local $aList =WinList()
For $i = 1 to $aList[0][0]
If WinGetProcess($aList[$i][1]) = @AutoItPID Then
WinActivate($aList[$i][1])
Return $aList[$i][1]
EndIf
Next
Return -1
EndFunc
Effizenter wäre es natürlich wenn du zumindest den Titel des von dir erstellten Fensters wisstest
Edit: Stell am besten einfach mal dein Script hier rein, dann kann man dir wahrscheinlich besser helfen.
Noch eine Frage xD:
Also es soll eine Abfrage sein ob der LINK ( z.B. YouTube ) geöffnet ist...
Geht das?
Jaa THANKS
Also es soll eine Abfrage sein ob der LINK ( z.B. YouTube ) geöffnet ist...
Geht das?
Ich mag es immer wenn ihr grad alles hin schreibt also z.B. ShellExute