Jump to content

christiancdj

Members
  • Posts

    12
  • Joined

  • Last visited

christiancdj's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. oItem = _OL_ItemCreate($oOutlook, $olMailItem, "*\Outlook-UDF-Test\TargetFolder\Mail", "", "Subject=TestMail", "BodyFormat=" & $olFormatHTML, _ "HTMLBody=Bodytext in <b>bold</b><img src='cid:The_Outlook.jpg'>Embedded image.") If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_ItemCreate Example Script", "Error creating a mail in folder 'Outlook-UDF-Test\TargetFolder\Mail'. @error = " & @error & ", @extended = " & @extended) $oItem = _OL_ItemAttachmentAdd($oOutlook, $oItem, Default, @ScriptDir & "\The_Outlook.jpg") ; , @ScriptDir & "\_OL_ItemCopy.au3, 4", @ScriptDir & "\_OL_Foldertree.au3") If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_ItemCreate Example Script", "Error adding an attachment to a mail in folder 'Outlook-UDF-Test\TargetFolder\Mail'. @error = " & @error & ", @extended = " & @extended) ist not working with Outlook 2010 > the email ist created but no attachments! Pls Help.
  2. The progressbar is running faster the it shoud - if its 12 its nearbly by 12.30 what do i wrong?
  3. #include <Excel.au3> #include <Array.au3> #include <SliderConstants.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <WindowsConstants.au3> Global $iStart = 6 * 60 ;6 Uhr Global $iGesamt = 16 * 60 ;gesamte Bereitschaftszeit Local $aArray1 $benutzer = "test" $tagID = "MO" #Region ### START Koda GUI section ### Form=c:dokumente und einstellungenadministratordesktophotline compakt.kxf $Form2 = GUICreate("Hotline Bereitschaft für "& $benutzer &" am "& $tagID,577, 50, 251, 326) ;~ $Form2 = GUICreate("Hotline Bereitschaft für " & 1, 587, 50, 251, 326) $idLblPer = GUICtrlCreateLabel("",550,10,30,17) $progressbar1 = GUICtrlCreateProgress(5, 28, 560, 17, $WS_EX_OVERLAPPEDWINDOW,$WS_EX_TOPMOST) GUICtrlSetColor(-1, 32250); not working with Windows XP Style ;~ AdlibRegister("_ShowProgress", 60000) ;show 60 sec ;~ $FS = GUICtrlCreateInput("FS", 392, 8, 20, 16) $Checkbox1 = GUICtrlCreateInput("", 7, 8, 20, 17,"",$TBS_TOP) $schicht = _ArrayToString($aArray1, "", 2,2) ;anzeige() $Checkbox2 = GUICtrlCreateInput("", 25, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 3,3) ;anzeige() $Checkbox3 = GUICtrlCreateInput("", 43, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 4,4) ;anzeige() $Checkbox4 = GUICtrlCreateInput("", 61, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 5,5) ;anzeige() $Checkbox5 = GUICtrlCreateInput("", 79, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 6,6) ;anzeige() $Checkbox6 = GUICtrlCreateInput("", 97, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 7,7) ;anzeige() $Checkbox7 = GUICtrlCreateInput("", 115, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 8,8) ;anzeige() $Checkbox8 = GUICtrlCreateInput("", 133, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 9,9) ;anzeige() $Checkbox9 = GUICtrlCreateInput("", 151, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 10,10) ;anzeige() $Checkbox10 = GUICtrlCreateInput("", 169, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 11,11) ;anzeige() $Checkbox11 = GUICtrlCreateInput("", 187, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 12,12) ;anzeige() $Checkbox12 = GUICtrlCreateInput("", 205, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 20,13) ;anzeige() $Checkbox13 = GUICtrlCreateInput("", 223, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 14,14) ;anzeige() $Checkbox14 = GUICtrlCreateInput("", 241, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 15,15) ;anzeige() $Checkbox15 = GUICtrlCreateInput("", 260, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 16,16) ;anzeige() $Checkbox16 = GUICtrlCreateInput("", 278, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 17,17) ;anzeige() $Checkbox17 = GUICtrlCreateInput("", 295, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 18,18) ;anzeige() $Checkbox18 = GUICtrlCreateInput("", 313, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 19,19) ;anzeige() $Checkbox19 = GUICtrlCreateInput("", 331, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 20,20) ;anzeige() $Checkbox20 = GUICtrlCreateInput("", 349, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 21,21) ;anzeige() $Checkbox21 = GUICtrlCreateInput("", 367, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 22,22) ;anzeige() $Checkbox22 = GUICtrlCreateInput("", 385, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 23,23) ;anzeige() $Checkbox23 = GUICtrlCreateInput("", 403, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 24,24) ;anzeige() $Checkbox24 = GUICtrlCreateInput("", 421, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 25,25) ;anzeige() $Checkbox25 = GUICtrlCreateInput("", 439, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 26,26) ;anzeige() $Checkbox26 = GUICtrlCreateInput("", 457, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 27,27) ;anzeige() $Checkbox27 = GUICtrlCreateInput("", 475, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 28,28) ;anzeige() $Checkbox28 = GUICtrlCreateInput("", 493, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 29,29) ;anzeige() $Checkbox29 = GUICtrlCreateInput("", 511, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 30,30) ;anzeige() $Checkbox30 = GUICtrlCreateInput("", 529, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 31,31) ;anzeige() $Checkbox31 = GUICtrlCreateInput("", 547, 8, 20, 17, $BS_3STATE) $schicht = _ArrayToString($aArray1, "", 32,32) ;anzeige() uhrzeit() _ShowProgress() uhrzeit() GUISetState(@SW_SHOW) ;~ _ArrayDisplay($aArray1, "Horizontal",-1,1) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit ;~ _ExcelBookClose($oExcel) EndSwitch ;~ $working = "0,104" WEnd Func uhrzeit() ;~ GUICtrlCreateLabel("6.3", 5, 30,20) GUICtrlCreateLabel("7", 22, 30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("8", 57, 30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("9", 93, 30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("10", 127,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("11", 164,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("12", 199,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GuICtrlCreateLabel("13", 235,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("14", 271,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("15", 307,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("16", 343,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("17", 379,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("18", 415,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("19", 451,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("20", 487,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("21", 523,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlCreateLabel("22", 559,30,20,$WS_EX_TRANSPARENT) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) EndFunc Func _ShowProgress() Local $iBereits = @HOUR * 60 + @MIN - $iStart $iPercent = (($iBereits / $iGesamt * 100 )) ConsoleWrite(@HOUR & ":" & @MIN & @TAB & $iPercent & @CRLF) ;zur Kontrolle GUICtrlSetData($progressbar1, $iPercent) ;~ GUICtrlSetData($idLblPer,GUICtrlRead($progressbar1) & " %") ;zur Demo, dass die Progressbar nur ganze Werte annimmt EndFunc ;==>_ShowProgress thats my code sorry thats not nice
  4. Im trying to make a work timer from 6 to 22 clock then reading the working time from a exel an making the break time visible each person has a differen break time so i want to make a progressbar like >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 6 7 8 9 10 11 12 13 14 ...... 20 21 22 xxx ........ xxx break ............ break ...... have you an idea?
  5. have some problems with the time progressbar is running faster the the time #include <Excel.au3> #include <Array.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <WindowsConstants.au3> Local $time, $minlaufer $Form2 = GUICreate("Hotline Bereitschaft für am "& 1,577, 50, 251, 326) $progressbar1 = GUICtrlCreateProgress(0, 33, 577, 17) GUICtrlSetColor(-1, 32250); not working with Windows XP Style $time = ((@HOUR + @MIN) + $minlaufer) GUICtrlSetData($progressbar1, $time) GUISetState(@SW_SHOW, $Form2) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit $minlaufer = "9,6" EndSwitch WEnd
  6. got nothing to say you are a god thanks again it got it now
  7. i got no idea why its not working, please help cant move down objts $aIndex = _GUICtrlListBox_GetSelItems($mylist) If $aIndex[0] = 1 Then ;~ ; Check if aleady at top If $aIndex[1] <> 0 Then ;~ ; Swap elements _ArraySwap($gaDropFiles[$aIndex[1]+1], $gaDropFiles[$aIndex[1]]) _ArrayDisplay($mylist) ; Destroy list GUICtrlSetData($mylist, "") ; Rewrite list For $i = 1 To $gaDropFiles[0] GUICtrlSetData($mylist, $gaDropFiles[$i]) Next ;~ EndIf EndIf EndIf
  8. thanks your are a genius thanks a lot
  9. wow thanks a lot, didn't know the funktion but now i got a new problem_ im realy confused - how can i move the files order up and down or even throw one out of the list? i realy dont know how @GUI_DragFile works, sorry
  10. how can i run the files in the list from the array? i got a list of files to install, but i dont get all files i always get the last dropped file to the array - what goes wrong? how can i install all droped files to the list? #include <GUIListBox.au3> #include <GuiConstantsEx.au3> #include <Array.au3> #include <GUIConstantsEx.au3> #include <String.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ListBoxConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Include <GuiListView.au3> #Include <File.au3> #include <Array.au3> #include <file.au3> Global $gaDropFiles[1], $iDropItem = -1 Global $WM_DROPFILES = 0x233 Global $hFile GUICreate(" My GUI acceptfile", 620, 320, @DesktopWidth / 2 - 160, @DesktopHeight / 2 - 45, -1, 0x00000018); WS_EX_ACCEPTFILES $file = GUICtrlCreateButton("Install", 10, 5, 300, 40) $mylist = GUICtrlCreateList("", 10, 54, 441, 253, BitOR($LBS_STANDARD, $LBS_EXTENDEDSEL)) GUICtrlSetState($mylist, $GUI_DROPACCEPTED) GUISetState() GUIRegisterMsg($WM_DROPFILES, 'WM_DROPFILES_FUNC') Global $Array While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $GUI_EVENT_DROPPED Dim $sPath = _ArrayToString($gaDropFiles, "") GUICtrlSetData($mylist,$sPath) Case $file daisyChainRun() EndSwitch WEnd Func WM_DROPFILES_FUNC($hWnd, $msgID, $wParam, $lParam) Local $nSize, $pFileName Local $nAmt = DllCall('shell32.dll', 'int', 'DragQueryFileW', 'hwnd', $wParam, 'int', 0xFFFFFFFF, 'ptr', 0, 'int', 255) For $i = 0 To $nAmt[0] - 1 $nSize = DllCall('shell32.dll', 'int', 'DragQueryFileW', 'hwnd', $wParam, 'int', $i, 'ptr', 0, 'int', 0) $nSize = $nSize[0] + 1 $pFileName = DllStructCreate('wchar[' & $nSize & ']') DllCall('shell32.dll', 'int', 'DragQueryFileW', 'hwnd', $wParam, 'int', $i, 'ptr', DllStructGetPtr($pFileName), 'int', $nSize) ReDim $gaDropFiles[$i + 1] $gaDropFiles[$i] = DllStructGetData($pFileName, 1) $pFileName = 0 Next EndFunc ;==>WM_DROPFILES_FUNC func daisyChainRun(); will be used to run selected scripts after they are properly sorted etc For $i = 1 To $gaDropFiles[0] RunWait(@ComSpec & " /c " & $gaDropFiles[$i] & " >> log.txt") Next EndFunc
  11. hello, got a litte problem, maybe there is someone there who can help me i will integrate some files in the same file i compile for example vlc and the autoit code in one file - so if i start the autoit code the vlc file is also the in temp folder or something like that. So my question: Is it possible to integrate files to the compiler, to get everything in one package?
  12. hello, got a litte problem, maybe there is someone there who can help me i will integrate some files in the same file i compile for example vlc and the autoit code in one file - so if i start the autoit code the vlc file is also the in temp folder or something like that. So my question: Is it possible to integrate files to the compiler, to get everything in one package?
×
×
  • Create New...