ZLP Posted July 24, 2019 Share Posted July 24, 2019 So basically what I am working on is something that requires me to write out the last button pressed where "DEBUG" currently is, however... I really don't want to waste my time with writing out all possibilitys as inputs, is there a better way to write out all keys? Case $Eintrag GUICtrlSetData($VisuelleKontrollListe, "Debug|") Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted July 25, 2019 Share Posted July 25, 2019 @ZLP Post your entire code, because your sentence is not really clear Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
ZLP Posted July 25, 2019 Author Share Posted July 25, 2019 13 hours ago, FrancescoDiMuro said: @ZLP Post your entire code, because your sentence is not really clear #include <GUIConstantsEx.au3> #include <GuiListView.au3> ;=============================================== ;Visueller aspekt, Tatsächliches tracking als ;extra code Makiert ;=============================================== ;----------------------------------------------- ;TO-DO: ;Letzter gedrückter Knopf anzeigen lassen ;Inputs auslesen und abspeichern ;Zwischen Inputs die zeit messen ;ZEIT, MAUSPOSITION, BUTTONPRESS ;Die letzte Sache auf der Liste immer oben ;anzeigen lassen ;----------------------------------------------- ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;Nützliche Links: ;Sachen oben anzeigen lassen ;https://www.autoitscript.com/forum/topic/151288-listview-item-add-on-top/ ; ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Autoclicker() Func Autoclicker() ;Hier UI elemente GUICreate("Autoklicker",700) ;Beschreibung GUICtrlCreateLabel("F1 um eine Aufzeichnung zu beginnen",10,10,500) GUICtrlCreateLabel("F2 um die Aufzeichnung zu speichern",10,25,500) ;Hinzufügen, Löschen, Programm beenden Local $Loeschen = GUICtrlCreateButton("Löschen", 10, 320, 75, 25) Local $Eintrag = GUICtrlCreateButton("Eintrag", 90,290, 75, 25) Local $Beenden = GUICtrlCreateButton("Beenden", 90, 320, 75, 25) ;Listeninhalt Erstellen Local $VisuelleKontrollListe = GUICtrlCreateList("", 450, 50, 200, 300) ; GUICtrlSetLimit(-1, 200) ;Zum anzeigen vom display GUISetState(@SW_SHOW) ;Loop erstellen um das program offen zu halten bis Spieler ;Beenden drückt While 1 Switch GUIGetMsg() case $Beenden ExitLoop ;Eintrag von letzen Knopfdruck, -1 um immer oben angezeigt zu werden Case $Eintrag GUICtrlSetData($VisuelleKontrollListe, "Debug|", -1) <<<<<<<<<<<<<<<<<<<This is the line that's supposed to be a placeholder ;Löschen der Visuellen Liste, des arrays Case $Loeschen GUICtrlSetData($VisuelleKontrollListe, "") EndSwitch WEnd EndFunc Link to comment Share on other sites More sharing options...
Earthshine Posted July 25, 2019 Share Posted July 25, 2019 pro tip, when posting code, use the <> button and put it in there so it looks like this expandcollapse popup#include <GUIConstantsEx.au3> #include <GuiListView.au3> ;=============================================== ;Visueller aspekt, Tatsächliches tracking als ;extra code Makiert ;=============================================== ;----------------------------------------------- ;TO-DO: ;Letzter gedrückter Knopf anzeigen lassen ;Inputs auslesen und abspeichern ;Zwischen Inputs die zeit messen ;ZEIT, MAUSPOSITION, BUTTONPRESS ;Die letzte Sache auf der Liste immer oben ;anzeigen lassen ;----------------------------------------------- ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;Nützliche Links: ;Sachen oben anzeigen lassen ;https://www.autoitscript.com/forum/topic/151288-listview-item-add-on-top/ ; ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Autoclicker() Func Autoclicker() ;Hier UI elemente GUICreate("Autoklicker",700) ;Beschreibung GUICtrlCreateLabel("F1 um eine Aufzeichnung zu beginnen",10,10,500) GUICtrlCreateLabel("F2 um die Aufzeichnung zu speichern",10,25,500) ;Hinzufügen, Löschen, Programm beenden Local $Loeschen = GUICtrlCreateButton("Löschen", 10, 320, 75, 25) Local $Eintrag = GUICtrlCreateButton("Eintrag", 90,290, 75, 25) Local $Beenden = GUICtrlCreateButton("Beenden", 90, 320, 75, 25) ;Listeninhalt Erstellen Local $VisuelleKontrollListe = GUICtrlCreateList("", 450, 50, 200, 300) ; GUICtrlSetLimit(-1, 200) ;Zum anzeigen vom display GUISetState(@SW_SHOW) ;Loop erstellen um das program offen zu halten bis Spieler ;Beenden drückt While 1 Switch GUIGetMsg() case $Beenden ExitLoop ;Eintrag von letzen Knopfdruck, -1 um immer oben angezeigt zu werden Case $Eintrag GUICtrlSetData($VisuelleKontrollListe, "Debug|", -1) <<<<<<<<<<<<<<<<<<<This is the line that's supposed to be a placeholder ;Löschen der Visuellen Liste, des arrays Case $Loeschen GUICtrlSetData($VisuelleKontrollListe, "") EndSwitch WEnd EndFunc My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Developers Jos Posted July 26, 2019 Developers Share Posted July 26, 2019 (edited) @ZLP, I am still missing an answer to this question: while you continue asking questions about the same script. Please provide that answer now first. * Everybody else: please stay out for the moment. * Jos Edited July 26, 2019 by Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ZLP Posted July 27, 2019 Author Share Posted July 27, 2019 On 7/25/2019 at 8:19 PM, Earthshine said: pro tip, when posting code, use the <> button and put it in there so it looks like this expandcollapse popup#include <GUIConstantsEx.au3> #include <GuiListView.au3> ;=============================================== ;Visueller aspekt, Tatsächliches tracking als ;extra code Makiert ;=============================================== ;----------------------------------------------- ;TO-DO: ;Letzter gedrückter Knopf anzeigen lassen ;Inputs auslesen und abspeichern ;Zwischen Inputs die zeit messen ;ZEIT, MAUSPOSITION, BUTTONPRESS ;Die letzte Sache auf der Liste immer oben ;anzeigen lassen ;----------------------------------------------- ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;Nützliche Links: ;Sachen oben anzeigen lassen ;https://www.autoitscript.com/forum/topic/151288-listview-item-add-on-top/ ; ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Autoclicker() Func Autoclicker() ;Hier UI elemente GUICreate("Autoklicker",700) ;Beschreibung GUICtrlCreateLabel("F1 um eine Aufzeichnung zu beginnen",10,10,500) GUICtrlCreateLabel("F2 um die Aufzeichnung zu speichern",10,25,500) ;Hinzufügen, Löschen, Programm beenden Local $Loeschen = GUICtrlCreateButton("Löschen", 10, 320, 75, 25) Local $Eintrag = GUICtrlCreateButton("Eintrag", 90,290, 75, 25) Local $Beenden = GUICtrlCreateButton("Beenden", 90, 320, 75, 25) ;Listeninhalt Erstellen Local $VisuelleKontrollListe = GUICtrlCreateList("", 450, 50, 200, 300) ; GUICtrlSetLimit(-1, 200) ;Zum anzeigen vom display GUISetState(@SW_SHOW) ;Loop erstellen um das program offen zu halten bis Spieler ;Beenden drückt While 1 Switch GUIGetMsg() case $Beenden ExitLoop ;Eintrag von letzen Knopfdruck, -1 um immer oben angezeigt zu werden Case $Eintrag GUICtrlSetData($VisuelleKontrollListe, "Debug|", -1) <<<<<<<<<<<<<<<<<<<This is the line that's supposed to be a placeholder ;Löschen der Visuellen Liste, des arrays Case $Loeschen GUICtrlSetData($VisuelleKontrollListe, "") EndSwitch WEnd EndFunc Thanks Link to comment Share on other sites More sharing options...
ZLP Posted July 27, 2019 Author Share Posted July 27, 2019 (edited) On 7/26/2019 at 8:04 AM, Jos said: @ZLP, I am still missing an answer to this question: while you continue asking questions about the same script. Please provide that answer now first. * Everybody else: please stay out for the moment. * Jos It can be used for many things, not just games, the script is supposed to help me to make first steps into programming, gaming is just the best use for it. Really all this script should do is to track key inputs, teach UI Layout, Interactions with AutoIT and output interactions, I see nothing wrong with that to be honest. I don't think this is against any rules there are, is it Edited July 27, 2019 by ZLP Link to comment Share on other sites More sharing options...
Developers Jos Posted July 27, 2019 Developers Share Posted July 27, 2019 (edited) I honestly do not care the script can be used for anything, and the way you have phrased your answer a "Yes" would have been enough. So, please do read those forum rules carefully before making you next post and adhere to them. *click* Jos Edited July 27, 2019 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts