Hallo:)
ich programmiere für mich und meine Kollegen ein Tool um effizienter mit unserer CAD-Software arbeiten zukönnen.
Ich bin schon nah am Ziel aber ein paar Probleme habe ich noch:
1: Ich habe 2 GUIs, auf dem Ersten ist ein Button um auf das 2. zu kommen. Und dieses öffnet sich auch, nur wenn ich das 2. GUI schliesse beendet sich mein ganzes Programm.
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("NLT", 105, 116, 192, 133, $GUI_SS_DEFAULT_GUI, BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))
$Label1 = GUICtrlCreateLabel("Nova Lüftungstool", 9, 8, 91, 17)
$Label2 = GUICtrlCreateLabel("Status: On/Off", 18, 32, 73, 17)
$Button1 = GUICtrlCreateButton("Tastenbelegung", 5, 72, 83, 17)
$Button2 = GUICtrlCreateButton("Hilfe", 5, 96, 83, 17)
$Label3 = GUICtrlCreateLabel("v.0.4", 40, 48, 28, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Nova Lüftungstool Tastenbelegung", 540, 230, 666, 394)
$Label1 = GUICtrlCreateLabel("Nova Lüftungstool", 152, 32, 133, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Tastenbelegung", 160, 64, 103, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("Eckig: Kanal=a; Bogen=s; Übergang=ü; Übergang eckig>rund=p; T-Stück=t; Hosenstück=h", 56, 104, 449, 17)
$Label4 = GUICtrlCreateLabel("Rund: Rohr=w; Bogen=r; T-Stück=e; Übergang=u", 56, 144, 456, 17)
$Label5 = GUICtrlCreateLabel("Konstruktionshilfe: Linie=l; K-Linie=k; Verbinder=v; Messen=m; Draggen=d; Drehen=y; Spiegeln=g", 56, 184, 463, 17)
$Label6 = GUICtrlCreateLabel("Textmodus=q; Beenden=Einfg", 144, 200, 371, 17)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState(@SW_HIDE, $Form1)
GUISetState(@SW_Show, $Form2)
EndSwitch
WEnd
Problem 2: Kann ich bei einer Funktion NUR die Maus deaktivieren? Habe nur einen Befehl gefunden um den Input einfach zu blocken.
Hier mein Code, während der Ausführung der Funktion darf ich die Maus nicht groß bewegen sonst kommt der Falsche Befehl dabei raus...
Spoiler anzeigen
Func kanal()
HotKeySet("a")
HotKeySet("k")
Send("!u")
;send ("r")
;send ("{right}")
Send("k")
Send("{ENTER}")
Send("k")
HotKeySet("a", "kanal")
HotKeySet("k", "klinie")
EndFunc ;==>kanal
Ich hoffe, jemand hat die passenden Tipps
Grüße
Stuuhl