Jump to content

Sl4yer

Members
  • Posts

    14
  • Joined

  • Last visited

Sl4yer's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello @all i have a small problem regarding my keyboard-hook: i cant get the keycode in function "EvaluateKey" for the german @ (ALTGR+Q od. CTRL+ALT+Q) because it's not in the ascii table i guess? Do you guys have any suggestions? <Code removed>
  2. @Valuater thnx man hm.. if i'd known that the solution is this awful i'd neva had asked 4 it ps: im on vista x64
  3. hello, im trying to set the BgColor for my StatusBar but it WONT work... i just dont get it -.- My code: Local $aText[3] = ["", @TAB & "", @TAB & @TAB & ""] $statusLabel = _GUICtrlStatusBar_Create($mainwindow, -1, $aText) Func statusLabelFunc() Local $aParts[3] = [75, 170, -1] _GUICtrlStatusBar_SetParts($statusLabel, $aparts) _GUICtrlStatusBar_SetBkColor($statusLabel, 0xFFFFFF); $CLR_MONEYGREEN doesnt work either what param is the right one ?? _GUICtrlStatusBar_SetText($statusLabel, "searching", 2) Sleep(200) _GUICtrlStatusBar_SetText($statusLabel, "searching.", 2) Sleep(200) _GUICtrlStatusBar_SetText($statusLabel, "searching..", 2) Sleep(200) _GUICtrlStatusBar_SetText($statusLabel, "searching...", 2) Sleep(200) EndFunc i also read the manual but still dont get it: _GUICtrlStatusBar_SetBkColor -------------------------------------------------------------------------------- Sets the background color #Include <GuiStatusBar.au3> _GUICtrlStatusBar_SetBkColor($hWnd, $iColor) Parameters - $hWnd Handle to the control - $iColor New background color. Specify the CLR_DEFAULT value to cause the status bar to use its default background color. Return Value - Success: The previous background color, or CLR_DEFAULT if the background color is the default color Remarks - Returns RGB COLORREF color, color passed in must be BGR Hex color or RGB COLORREF
  4. sry Chrome but i dont get it?? did u figure it out, the problem why the window $resWnd cant be closed??? ps: i know that switch is kinda faster than the if statement but thats not my problem...
  5. hey Chrome, what do u mean with "my code is not complete" ?? I tried ur solution but it DOESNT work im about to go nuts >_<
  6. why does nothing happen when the X(close button) on the right-top corner of the window $resWnd is clicked??? pls help cause i spent hours to figure it out $resWnd = GUICreate ("Suchergebnis", 400, $resWndSize, -1 , -1) $reslistView = GuiCtrlCreateListView("Dateiname |Pfad ", -1, -1, 350, 60) For $i = 1 to $aArray[0] $checkArrayCont = StringRegExp($aArray[$i], $dateisuche & "\\", 1, 0) If $checkArrayCont = 1 Then $pathStartPos = StringInStr ($aArray[$i], $dateisuche & "\", 0, -1) $pathEndPos = StringInStr ($aArray[$i], "\", 0, -1) $countPathChars = $pathEndPos - $pathStartPos Dim $extractPath = StringMid ($aArray[$i], $pathStartPos, $countPathChars) $ListViewItemcontrolID = GuiCtrlCreateListViewItem($aArray[$i] & "|" & $extractPath, $reslistView) EndIf Next GUISetState(@SW_SHOW, $resWnd) GUISwitch($resWnd) While 1 $msg2 = GUIGetMsg(1) If $msg2[0] = $GUI_EVENT_CLOSE AND $msg2[1] = $resWnd Then GuiDelete($resWnd) ExitLoop EndIf local $getCurSelection = _GUICtrlListViewGetCurSel($reslistView) If _GUICtrlListViewGetCurSel($reslistView) = 1 Then $curSelectedItemText = _GUICtrlListViewGetItemText($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 1) If ($curSelectedItemText <> "") Then RunWait(@ComSpec & ' /c explorer "' & $curSelectedItemText & '\"', "", @SW_HIDE) EndIf _GUICtrlListViewSetItemSelState ($reslistView, _GUICtrlListViewGetSelectedIndices($reslistView), 0, 0) EndIf WEnd
  7. hi Zedna, i'm within a function and i created a new window which i want to closed when clicked on the x button on the right top corner but the window doesn't return the $GUI_EVENT_CLOSE
  8. why doesn't GUIGetMsg return anything?? i don't get it ?? my code is the following: msgbox(0, "", WinGetState ("wnd title")) _ArrayDisplay(GUIGetMsg(1)) the results are these:
  9. hmm.. kk i got the thing with the single quotes.. but theres another point that bothers me: what exactly does the parameter /c in combination with the @ComSpec commando do??? RunWait(@ComSpec & ' /c i expected something like this: but that's not what the parameter is about... pls help
  10. hi script folks, how am i suppose to write the folloing in the correct way??? RunWait(@ComSpec & " /c " & "dir /b /s " & GUICtrlRead($vinput) & ">c:\vzsucheErg.txt") pls help
  11. yehaw! got it to work with the following: $ret = _GUICtrlListViewGetItemText($dlistView, _GUICtrlListViewGetSelectedIndices($dlistView)) If ($ret <> $LV_ERR) Then MsgBox(0, "Selected Item", $ret) $ret = _GUICtrlListViewGetItemText($dlistView, _GUICtrlListViewGetSelectedIndices($dlistView), 0) If ($ret <> $LV_ERR) Then MsgBox(0, "Selected Item, SubItem 0", $ret) EndIf Else GUICtrlSetData($Status, "Nothing Selected") EndIf thnx guys 4 ur help i appreciate it
  12. Why does "GUICtrlRead($dlistView)" return "6" when the first entry (c: | ntfs) is selected??? note: the function GUICtrlRead is called after a button is submitted $dlistView = GuiCtrlCreateListView("Laufwerk|Dateisystem|", 20, 40, 200, 60) $dVar = DriveGetDrive( "fixed" ) If NOT @error Then For $i = 1 to $dVar[0] $dglVar1 = DriveGetFileSystem($dVar[$i] & "\" ) GuiCtrlCreateListViewItem($dVar[$i] & "|" & $dglVar1, $dlistView) Next EndIf pls help
  13. thnx 4 reply GUICreate ("test", 320, 200, -1, -1, $WS_POPUP) GuiCtrlCreatePic("fff.jpg", 0, 0, 320, 200) GUISetState(@SW_SHOW) Sleep(3000) GUIDelete()
  14. hi, could u guys help me out on creating a GUI without a title bar?? sry 4 my poor english
×
×
  • Create New...