Habs grad ausprobiert, du willst also, dass wenn jedes Zeichen, das du eingegeben hast mindestens einmal in dem Namen vorkommt, der Name gesendet wird?
So, endlich ne Lösung gefunden:Quote:
Nein, andersherum ich möchte dass die Eingabe einer Auswahl ist und wenn jeder Buchstabe des namens in der Auswahl vorkommt, soll er diesen Namen aufschreiben...
#include <File.au3>
$Open = @ScriptDir & "/lbwords.txt"
$Lines = _FileCountLines( $Open )
$Zeichen = InputBox( "", "Zeichen eingeben" )
For $i = 1 To $Lines
$Result = 0
$Wort = StringSplit( FileReadLine( $Open, $i ), "" )
For $j = 1 To $Wort[0]
If StringInStr( $Zeichen, $Wort[$j] ) Then $Result += 1
Next
If $Result = $Wort[0] Then Send( FileReadLine( $Open, $i ) & "{Enter}" )
Next
Quote:
Hat bei mir heue nicht geklappt hatte gegoogelt da kahm die gleiche loesung .... geht es denn so bei dir ?
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
GUICreate( "Farbige Progressbar", 500, 100, -1, -1 )
DllCall( "uxtheme.dll", "none", "SetThemeAppProperties", "int", 0 )
$Progress = GUICtrlCreateProgress( 10, 10, 480, 80 )
GUICtrlSetColor( -1, 0xFF0000 )
GUICtrlSetData( -1, 75 )
GUISetState( @SW_SHOW )
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$Progress1 = GUICtrlCreateProgress(240, 192, 150, 17)
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
ok also meint ihr das was ich meine , also achat wenn du sowas umbeding machen willst dann kucke dir was beim jdownloader ab ist ja open source oder ? :DQuote:
da erfüllt jdownloader schon alle meine wünsche^^
klappt nicht !Quote:
joa, klappt bei mir
PHP Code:#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$Progress1 = GUICtrlCreateProgress(240, 192, 150, 17)
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$Progress1 = GUICtrlCreateProgress(240, 192, 150, 17)
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetData($Progress1,100)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
geht aber sehr unschön ^^Quote:
Die Progressbar als letztes Element in die GUI setzen und direkt davor das DllCall, ansonsten hast du die ganze GUI im UXTheme.PHP Code:#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
GUICreate( "Farbige Progressbar", 500, 100, -1, -1 )
DllCall( "uxtheme.dll", "none", "SetThemeAppProperties", "int", 0 )
$Progress = GUICtrlCreateProgress( 10, 10, 480, 80 )
GUICtrlSetColor( -1, 0xFF0000 )
GUICtrlSetData( -1, 75 )
GUISetState( @SW_SHOW )
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Liegt an deinem Windows-Theme. Die neueren (Win Vista/7) unterstützen die Farbeinstellungen wahrscheinlich nicht.Quote:
[...]
Aus diesem Grund funktioniert auch der Script.Quote:
Die Progressbar als letztes Element in die GUI setzen und direkt davor das DllCall, ansonsten hast du die ganze GUI im UXTheme.PHP Code:#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
GUICreate( "Farbige Progressbar", 500, 100, -1, -1 )
DllCall( "uxtheme.dll", "none", "SetThemeAppProperties", "int", 0 )
$Progress = GUICtrlCreateProgress( 10, 10, 480, 80 )
GUICtrlSetColor( -1, 0xFF0000 )
GUICtrlSetData( -1, 75 )
GUISetState( @SW_SHOW )
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Mir würde nurnoch das einfallen:Quote:
habe windows 8 , gibts da keine schöne lösung für ? ansonsten schreib ich mal microsoft an
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
GUICreate( "Farbige Progressbar", 500, 100, -1, -1 )
$Progress = GUICtrlCreateProgress( 10, 10, 480, 80 )
GUICtrlSetData( -1, 75 )
_SendMessage(GUICtrlGetHandle($Progress), 0x0410, 2)
GUISetState( @SW_SHOW )
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
wow danke also das ist meine gui :Quote:
.....
#include <100%Hex.au3> ; mein include
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Autoit\License system\100 % Hex Form.kxf
$Form1 = GUICreate("U7t1m4t3 H3X Pr0z3ss0r", 713, 366, 192, 124)
;DllCall( "uxtheme.dll", "none", "SetThemeAppProperties", "int", 0 )
$Edit1 = GUICtrlCreateEdit("Fill in all codes to check", 8, 8, 345, 257)
$Button1 = GUICtrlCreateButton("Check !", 8, 272, 99, 49)
$Edit2 = GUICtrlCreateEdit("Debug : " & @CRLF, 360, 8, 345, 257)
$ProgressHex = GUICtrlCreateProgress(112, 272, 590, 49)
GUICtrlSetData( -1, 0 )
_SendMessage(GUICtrlGetHandle($ProgressHex), 0x0410, 2)
;GUICtrlSetColor( -1, 0xFF0000 )
$Label2 = GUICtrlCreateLabel("0", 80, 336, 628, 17)
$Label1 = GUICtrlCreateLabel("Done :", 8, 336, 60, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Main()
EndSwitch
WEnd
$mLines = $mLines + 1
GUICtrlSetData($mProgressHex,$mLines)
GUICtrlSetData($mProgressHex,100)