Tratsch rund um Autoit / Autoit Talk | kleinere Fragen

05/10/2013 17:01 .xD1997™#1216
Habs grad ausprobiert, du willst also, dass wenn jedes Zeichen, das du eingegeben hast mindestens einmal in dem Namen vorkommt, der Name gesendet wird?
05/10/2013 17:09 Greaka#1217
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...
05/10/2013 17:48 .xD1997™#1218
Quote:
Originally Posted by Greaka View Post
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...
So, endlich ne Lösung gefunden:

PHP Code:
#include <File.au3>

$Open = @ScriptDir "/lbwords.txt"
$Lines _FileCountLines$Open )
$Zeichen InputBox"""Zeichen eingeben" )

For 
$i 1 To $Lines
    $Result 
0
    $Wort 
StringSplitFileReadLine$Open$i ), "" )
    For 
$j 1 To $Wort[0]
        If 
StringInStr$Zeichen$Wort[$j] ) Then $Result += 1
    Next
    
If $Result $Wort[0Then SendFileReadLine$Open$i ) & "{Enter}" )
Next 
05/10/2013 22:47 YatoDev#1219
Quote:
Originally Posted by omer36 View Post
GUICtrlSetColor mal versucht? ^^
Hat bei mir heue nicht geklappt hatte gegoogelt da kahm die gleiche loesung .... geht es denn so bei dir ?
05/10/2013 23:41 .xD1997™#1220
Quote:
Originally Posted by »FlutterShy™ View Post
Hat bei mir heue nicht geklappt hatte gegoogelt da kahm die gleiche loesung .... geht es denn so bei dir ?
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>

GUICreate"Farbige Progressbar"500100, -1, -)
DllCall"uxtheme.dll""none""SetThemeAppProperties""int")
$Progress GUICtrlCreateProgress101048080 )
GUICtrlSetColor( -10xFF0000 )
GUICtrlSetData( -175 )
GUISetState( @SW_SHOW )
While 
1
    
Switch GUIGetMsg()
        Case 
$GUI_EVENT_CLOSE
            
Exit
    EndSwitch
WEnd 
Die Progressbar als letztes Element in die GUI setzen und direkt davor das DllCall, ansonsten hast du die ganze GUI im UXTheme.
05/11/2013 00:23 omer36#1221
joa, klappt bei mir
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"625443192124)
$Progress1 GUICtrlCreateProgress(24019215017)
GUICtrlSetColor(-10xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
05/11/2013 01:48 Achat#1222
Eine DLC UDF für AutoIt gibt es noch nicht, oder?

Wie könnte ich einen DLC mit AutoIt erstellen?

MfG
05/11/2013 07:29 YatoDev#1223
Quote:
Originally Posted by Achat View Post
Eine DLC UDF für AutoIt gibt es noch nicht, oder?

Wie könnte ich einen DLC mit AutoIt erstellen?

MfG
DLC = Download-Container ?:D
05/11/2013 09:31 butter123#1224
da erfüllt jdownloader schon alle meine wünsche^^
05/11/2013 14:16 YatoDev#1225
Quote:
Originally Posted by butter123 View Post
da erfüllt jdownloader schon alle meine wünsche^^
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 ? :D

Quote:
Originally Posted by omer36 View Post
joa, klappt bei mir
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"625443192124)
$Progress1 GUICtrlCreateProgress(24019215017)
GUICtrlSetColor(-10xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
klappt nicht !
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"625443192124)
$Progress1 GUICtrlCreateProgress(24019215017)
GUICtrlSetColor(-10xFF0000)
GUICtrlSetData($Progress1,100)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
Quote:
Originally Posted by .xD1997™ View Post
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>

GUICreate"Farbige Progressbar"500100, -1, -)
DllCall"uxtheme.dll""none""SetThemeAppProperties""int")
$Progress GUICtrlCreateProgress101048080 )
GUICtrlSetColor( -10xFF0000 )
GUICtrlSetData( -175 )
GUISetState( @SW_SHOW )
While 
1
    
Switch GUIGetMsg()
        Case 
$GUI_EVENT_CLOSE
            
Exit
    EndSwitch
WEnd 
Die Progressbar als letztes Element in die GUI setzen und direkt davor das DllCall, ansonsten hast du die ganze GUI im UXTheme.
geht aber sehr unschön ^^
05/11/2013 14:24 WJNeeson#1226
Quote:
Originally Posted by »FlutterShy™ View Post
[...]
Liegt an deinem Windows-Theme. Die neueren (Win Vista/7) unterstützen die Farbeinstellungen wahrscheinlich nicht.

Quote:
Originally Posted by .xD1997™ View Post
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>

GUICreate"Farbige Progressbar"500100, -1, -)
DllCall"uxtheme.dll""none""SetThemeAppProperties""int")
$Progress GUICtrlCreateProgress101048080 )
GUICtrlSetColor( -10xFF0000 )
GUICtrlSetData( -175 )
GUISetState( @SW_SHOW )
While 
1
    
Switch GUIGetMsg()
        Case 
$GUI_EVENT_CLOSE
            
Exit
    EndSwitch
WEnd 
Die Progressbar als letztes Element in die GUI setzen und direkt davor das DllCall, ansonsten hast du die ganze GUI im UXTheme.
Aus diesem Grund funktioniert auch der Script.
05/11/2013 14:41 YatoDev#1227
habe windows 8 , gibts da keine schöne lösung für ? ansonsten schreib ich mal microsoft an
05/11/2013 14:49 WJNeeson#1228
Quote:
Originally Posted by »FlutterShy™ View Post
habe windows 8 , gibts da keine schöne lösung für ? ansonsten schreib ich mal microsoft an
Mir würde nurnoch das einfallen:
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>

GUICreate"Farbige Progressbar"500100, -1, -)
$Progress GUICtrlCreateProgress101048080 )
GUICtrlSetData( -175 )
_SendMessage(GUICtrlGetHandle($Progress), 0x04102)
GUISetState( @SW_SHOW )
While 
1
    
Switch GUIGetMsg()
        Case 
$GUI_EVENT_CLOSE
            
Exit
    EndSwitch
WEnd 
Allerdings wird die ProgressBar erst dann Rot gefärbt, wenn die 75% erreicht sind.
05/11/2013 20:42 No Plan#1229
hab auch mal wieder ne frage ._. scheiß tcp, steige da nicht durch.

Also, ich habe jetzt das Problem das die Unterseite immer anders heißt, also z.B.
/v/35073300/vemNJo1vf4
oder
/v/35078392/Zk47mQuGRq
Wie bekomme ich jetzt den Namen der Unterseite raus?
Mit stringbetween ist da ja nichts zu machen...
05/11/2013 20:47 YatoDev#1230
Quote:
Originally Posted by #System View Post
.....
wow danke also das ist meine gui :

PHP Code:
#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"713366192124)
;
DllCall"uxtheme.dll""none""SetThemeAppProperties""int")
$Edit1 GUICtrlCreateEdit("Fill in all codes to check"88345257)
$Button1 GUICtrlCreateButton("Check !"82729949)
$Edit2 GUICtrlCreateEdit("Debug : " & @CRLF3608345257)
$ProgressHex GUICtrlCreateProgress(11227259049)
GUICtrlSetData( -1)
_SendMessage(GUICtrlGetHandle($ProgressHex), 0x04102)
;
GUICtrlSetColor( -10xFF0000 )
$Label2 GUICtrlCreateLabel("0"8033662817)
$Label1 GUICtrlCreateLabel("Done :"83366017)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _Main
()

    EndSwitch
WEnd 
da wird die gui nur bis zu 50 % eingefärbt und die function main geb ich euch nicht eun mein include auch nicht denkt euch das weg ;)

bitte warten ich edite noch

Im include wird eine file eingelesen und dessen zeilen gezählt und immer pro do schleife eine drauf bis anzahl der zeilen erreicht ist :
PHP Code:
$mLines $mLines 
danach wird auch die progress gesetzt
PHP Code:
GUICtrlSetData($mProgressHex,$mLines
und am ende wird die progress auf 100 % gesetzt (ich weiß etwas blöd gelößt)
PHP Code:
GUICtrlSetData($mProgressHex,100
vorher hat alles richtig funktioniert

vielen dank für deine hilfe , hast du vielleicht skype ? pn please