Guten Tag liebe AutoHotkey Community,
ich wollte, dass immer wenn eine bestimmte Chat Message im Spiel GTA:SA erscheint, im GUI +1 gerechnet wird. Leider funktioniert es bei mir nicht wirklich.
#SingleInstance, force
Gui, Show, x30 y40 h610 w960, Counter
Gui, Add, Edit, x10 y10 w50 h20 ReadOnly, %variable%
return
GUIclose:
ExitApp
#Include API.ahk
variable 0
Zähler:
GetChatLine (0, chat)
if (InStr(chat, "SERVER: Graffiti erfolgreich bereinigt (+$15).")
{
variable += 1
}
Könte mir vllt. jemand tipps geben? Danke im Vorraus.
MfG SnowTimeZ
Gui bei Chat Message +1 Zählen
Moderator: jNizM
-
- Posts: 1
- Joined: 20 Aug 2018, 10:44
Re: Gui bei Chat Message +1 Zählen
GuiControl
Code: Select all
#SingleInstance, force
Gui, Add, Edit, x10 y10 w50 h20 ReadOnly +HwndhEdit, %variable%
Gui, Show, x30 y40 h610 w960, Counter
return
GUIclose:
ExitApp
#Include API.ahk
variable := 0
Zähler:
GetChatLine(0, chat)
if (InStr(chat, "SERVER: Graffiti erfolgreich bereinigt (+$15).")
{
variable += 1
GuiControl, Text, % hEdit, % variable
}
return
Who is online
Users browsing this forum: No registered users and 53 guests