[AHK]Problem mit eine Funktion für den Keybinder

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • [AHK]Problem mit eine Funktion für den Keybinder

    Guten Abend,

    Ich habe ein kleines Problem mit eine Funktion für den Keybinder und wollte mal Fragen ob mir jemand helfen könnte.
    Ist es möglich das ich die Zeit InGame angezeigt bekommen und aber auch Gleichzeitig es auch von dort aus Starten und Stoppen kann.
    Wäre echt super wenn mir jemand dabei behilflich seinen kann. Es soll wie eine Stoppuhr Funktionieren.

    MfG
    Adrian_xD_

    Brainfuck-Quellcode

    1. DEIN_SONG:="c:\.............\xyz.mp3"
    2. Gui, Margin, 10,10
    3. Gui,Font,s18 bold
    4. Gui,Add,Text,x520 y480 w100 center vSEC,Sekunden
    5. Gui,Font,s10 normal
    6. Gui,Add,Button,xp x520 y400 w150 h30 wp vStart_Stop gStart_Stop, Start-Stop
    7. Gui,Add,Button,xp x520 y440 w150 h30 wp gCLEAR,clear
    8. SetTimer,Timer,500
    9. SetTimer,Timer,OFF
    10. ON=0
    11. Gui,show,,Stopuhr
    12. ;================================================================================
    13. Start_Stop:
    14. IF ON=0
    15. {
    16. soundplay,%DEIN_SONG%
    17. START:=A_TickCount
    18. SetTimer,Timer,ON
    19. ON=1
    20. }
    21. else
    22. {
    23. SetTimer,Timer,OFF
    24. ON=0
    25. }
    26. return
    27. CLEAR:
    28. IF ON=1
    29. return
    30. else
    31. GuiControl,,SEC,Sekunden
    32. return
    33. ;================================================================================
    34. TIMER:
    35. SetFormat,Float,0.2
    36. Zeit:=(A_TickCount-START)/1000
    37. SetFormat,Float,0.0
    38. Zeit+=0
    39. GuiControl,,SEC,% Zeit
    40. return
    41. ;================================================================================
    42. ~1::
    43. if(!IsInChat())
    44. {
    45. AddChatMessage("{FF0000} Das ist die Zeit: " ?? ".")
    46. }
    47. return
    Alles anzeigen