Appleking0007 Posted September 11, 2024 Posted September 11, 2024 Hello, I have an issue with my code. I need $idDate from code 1 to update even after a manual change is made by the user. Now, every time when i change the date it does not apply in code 2 and it always add 4 hours. I would appriociate any help Code 1: If GUICtrlRead($idComboBox) = "A" Then GUICtrlDelete($idProblemLabel) $idProblemLabel = GUICtrlCreateLabel("2 hodiny" & @CRLF & "vysoká teplota na více jak 25% nábytku" & @CRLF & "centrální výpadek chlazení" & @CRLF & "výpaden PC" & @CRLF & "nedostatek chladiva jednotky" & @CRLF & "dva a více kompresory v alarmu", 10, 70) $idDate = GUICtrlCreateDate("", 10, 210, 160, 26, $DTS_SHORTDATEFORMAT) $sStyle = "yyyy/MM/dd HH:mm:ss" GUICtrlSendMsg($idDate, $DTM_SETFORMATW, 0, $sStyle) $newdate = _DateAdd('h', 2, _NowCalc()) GUICtrlSetData($idDate, $newdate) Local $sStyle = "dd.MM.yyyy HH:mm" GUICtrlSendMsg($idDate, $DTM_SETFORMATW, 0, $sStyle) EndIf Code 2: If Not StringInStr(GUICtrlRead($idInput1), "_") Then ClipPut(GUICtrlRead($idComboBox) & "_" & GUICtrlRead($idDate) & "_" & GUICtrlRead($idInput1)) MsgBox($MB_SYSTEMMODAL, "Title", "Vloženo do clip boardu. Okno se zavre za 10sec" & @CRLF & GUICtrlRead($idComboBox) & "_" & GUICtrlRead($idDate) & "_" & GUICtrlRead($idInput1), 10) GUICtrlSetData($idInput1, "") EndIf CallcentrumCZ (2).au3
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now