Welchen Sinn soll das haben? Um den 1&1-Webmailer zu öffnen, willst du die Zugangsdaten in einem Skript hinterlegen und den Browser starten, der dann in die Webmail-Seite die Daten einträgt. Das macht doch jeder Browser sowieso, wenn du sagst: PW für diese Seite speichern.
Alternativ kannst du doch den Zugriff ohne Browser machen, indem du über einen lokalen Mailclient zugreifst. Konfigurationshinweise findest du hier: http://hilfe-center.1und1.de/hosting/email/clients/
Beiträge von BugFix
-
-
Daher auch meine Bemerkung: Wenn die Struktur immer so ist,...
Die Gruppen sind beabsichtigt um die Ziffern in einer Gruppe zu selektieren. -
Und warum guckst du dann nicht in die Hilfe zu ListBox? Steht dort genauso - hier mal ohne die DebugPrint-Aufrufe:
Spoiler anzeigen
[autoit]#include <GUIListBox.au3>
[/autoit] [autoit][/autoit] [autoit]
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>Opt('MustDeclareVars', 1)
[/autoit] [autoit][/autoit] [autoit]$Debug_LB = False ; Check ClassName being passed to ListBox functions, set to True and use a handle to another control to see it work
[/autoit] [autoit][/autoit] [autoit]Global $hListBox
[/autoit] [autoit][/autoit] [autoit]_Main()
[/autoit] [autoit][/autoit] [autoit]Func _Main()
[/autoit] [autoit][/autoit] [autoit]
Local $hGUI; Create GUI
[/autoit] [autoit][/autoit] [autoit]
$hGUI = GUICreate("(UDF Created) List Box Create", 400, 296)
$hListBox = _GUICtrlListBox_Create($hGUI, "String upon creation", 2, 2, 396, 296)
GUISetState()
[/autoit] [autoit][/autoit] [autoit]
GUIRegisterMsg($WM_COMMAND, "WM_COMMAND"); Add files
[/autoit] [autoit][/autoit] [autoit]
_GUICtrlListBox_BeginUpdate($hListBox)
_GUICtrlListBox_ResetContent($hListBox)
_GUICtrlListBox_InitStorage($hListBox, 100, 4096)
_GUICtrlListBox_Dir($hListBox, @WindowsDir & "\win*.exe")
_GUICtrlListBox_AddFile($hListBox, @WindowsDir & "\Notepad.exe")
_GUICtrlListBox_Dir($hListBox, "", $DDL_DRIVES)
_GUICtrlListBox_Dir($hListBox, "", $DDL_DRIVES, False)
_GUICtrlListBox_EndUpdate($hListBox); Loop until user exits
[/autoit] [autoit][/autoit] [autoit]
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>_MainFunc _ListDblClick()
[/autoit] [autoit][/autoit] [autoit]
Local $indx = _GUICtrlListBox_GetCurSel($hListBox)
MsgBox(0, 'Doppelklick auf:', _GUICtrlListBox_GetText($hListBox, $indx))
EndFuncFunc WM_COMMAND($hWnd, $iMsg, $iwParam, $ilParam)
[/autoit] [autoit][/autoit] [autoit]
#forceref $hWnd, $iMsg
Local $hWndFrom, $iIDFrom, $iCode, $hWndListBox
If Not IsHWnd($hListBox) Then $hWndListBox = GUICtrlGetHandle($hListBox)
$hWndFrom = $ilParam
$iIDFrom = BitAND($iwParam, 0xFFFF) ; Low Word
$iCode = BitShift($iwParam, 16) ; Hi WordSwitch $hWndFrom
[/autoit]
Case $hListBox, $hWndListBox
Switch $iCode
Case $LBN_DBLCLK ; Sent when the user double-clicks a string in a list box
Return _ListDblClick()
Case $LBN_ERRSPACE ; Sent when a list box cannot allocate enough memory to meet a specific request
;~ Return _ListErrSpace()
Case $LBN_KILLFOCUS ; Sent when a list box loses the keyboard focus
;~ Return _ListKillFocus()
Case $LBN_SELCANCEL ; Sent when the user cancels the selection in a list box
;~ Return _ListSelCancel()
Case $LBN_SELCHANGE ; Sent when the selection in a list box has changed
;~ Return _ListSelChange()
Case $LBN_SETFOCUS ; Sent when a list box receives the keyboard focus
;~ Return _ListSetFocus()
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
EndFunc ;==>WM_COMMAND -
Wenn die Struktur immer so ist, sollte dieses Pattern passen:
[autoit]$str = "abcd= 29876 xyz= 0 irgendwas" _
[/autoit][autoit][/autoit][autoit]
& @CRLF & "abcd= 123 xyz= 945" _
& @CRLF & "abcd= 4567 xyz= 345 und noch was" _
& @CRLF & "abcd= 8902 xy"$re = StringRegExp($str, '(abcd=\s+)(\d+)([w= ]+.*)\r\n', 3)
[/autoit]
MsgBox(0, 'Gesuchter Wert', $re[UBound($re)-2]) -
Es stehen zum Thema Listview mehrere Bsp. in der Hilfe, aus denen das ersichtlich ist.
Ich habe es mal zusammengefaßt:Spoiler anzeigen
[autoit]#include<GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]
#include<WindowsConstants.au3>
#include <GUIListView.au3>$gui = GUICreate('test')
[/autoit] [autoit][/autoit] [autoit]
$hListView = GUICtrlCreateListView('Spalte1|Spalte2', 10, 10, 300, 200)
_GUICtrlListView_SetColumnWidth($hListView, 0, 146)
_GUICtrlListView_SetColumnWidth($hListView, 1, $LVSCW_AUTOSIZE_USEHEADER)
For $i = 1 To 10
GUICtrlCreateListViewItem('Zeile ' & $i & ' Spalte 1|Zeile ' & $i & ' Spalte 2', $hListView)
Next
GUISetState()
GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSEFunc _LeftDblClick($Info)
[/autoit] [autoit][/autoit] [autoit]
MsgBox(0, 'Text in Spalte', _GUICtrlListView_GetItemText($Info[1], $Info[3], $Info[4]) )
EndFuncFunc WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam)
[/autoit] [autoit][/autoit] [autoit]
Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndListView
$hWndListView = $hListView
If Not IsHWnd($hListView) Then $hWndListView = GUICtrlGetHandle($hListView)$tNMHDR = DllStructCreate($tagNMHDR, $ilParam)
[/autoit]
$hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
$iIDFrom = DllStructGetData($tNMHDR, "IDFrom")
$iCode = DllStructGetData($tNMHDR, "Code")
Switch $hWndFrom
Case $hWndListView
Switch $iCode
Case $LVN_COLUMNCLICK ; A column was clicked
Local $tInfo = DllStructCreate($tagNMLISTVIEW, $ilParam)
Local $aInfo[11] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "Param")]
;~ _ColumnClick($aInfo)
Case $LVN_DELETEITEM ; An item is about to be deleted
Local $tInfo = DllStructCreate($tagNMLISTVIEW, $ilParam)
Local $aInfo[11] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "Param")]
;~ _ItemDeleted($aInfo)
Case $LVN_HOTTRACK ; Sent by a list-view control when the user moves the mouse over an item
Local $tInfo = DllStructCreate($tagNMLISTVIEW, $ilParam)
Local $aInfo[11] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "Param")]
Return 0 ; allow the list view to perform its normal track select processing.
;Return 1 ; the item will not be selected.
;~ _HottTrackItem($aInfo)
Case $LVN_KEYDOWN ; A key has been pressed
Local $tInfo = DllStructCreate($tagNMLVKEYDOWN, $ilParam)
Local $aInfo[5] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "VKey"), _
DllStructGetData($tInfo, "KeyFlags")]
;~ _KeyDown($aInfo)
Case $NM_CLICK ; Sent by a list-view control when the user clicks an item with the left mouse button
Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam)
Local $aInfo[12] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "lParam"), _
DllStructGetData($tInfo, "KeyFlags")]
;~ _LeftClick($aInfo)
Case $NM_DBLCLK ; Sent by a list-view control when the user double-clicks an item with the left mouse button
Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam)
Local $aInfo[12] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "lParam"), _
DllStructGetData($tInfo, "KeyFlags")]
_LeftDblClick($aInfo)
Case $NM_KILLFOCUS ; The control has lost the input focus
Local $aInfo[3] = [$hWndFrom, _
$iIDFrom, _
$iCode]
;~ _LostFocus($aInfo)
Case $NM_RCLICK ; Sent by a list-view control when the user clicks an item with the right mouse button
Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam)
Local $aInfo[12] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "lParam"), _
DllStructGetData($tInfo, "KeyFlags")]
; Return 1 ; not to allow the default processing
Return 0 ; allow the default processing
;~ _RightClick($aInfo)
Case $NM_RDBLCLK ; Sent by a list-view control when the user double-clicks an item with the right mouse button
Local $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam)
Local $aInfo[12] = [$hWndFrom, _
$iIDFrom, _
$iCode, _
DllStructGetData($tInfo, "Index"), _
DllStructGetData($tInfo, "SubItem"), _
DllStructGetData($tInfo, "NewState"), _
DllStructGetData($tInfo, "OldState"), _
DllStructGetData($tInfo, "Changed"), _
DllStructGetData($tInfo, "ActionX"), _
DllStructGetData($tInfo, "ActionY"), _
DllStructGetData($tInfo, "lParam"), _
DllStructGetData($tInfo, "KeyFlags")]
;~ _RightDblClick($aInfo)
Case $NM_RETURN ; The control has the input focus and that the user has pressed the ENTER key
Local $aInfo[3] = [$hWndFrom, _
$iIDFrom, _
$iCode]
;~ _InputFocusReturn($aInfo)
Case $NM_SETFOCUS ; The control has received the input focus
Local $aInfo[3] = [$hWndFrom, _
$iIDFrom, _
$iCode]
;~ _SetFocus($aInfo)
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
EndFunc ;==>WM_NOTIFY -
[autoit]Weil der soll das ja nur solange machen bis er was gefunden hat, dann klicken und fertig.
Do
[/autoit]
$aRet = PixelSearch(835,704,1255,736,0xffff8b,30)
Until Not @error
MouseClick("left",646,893)
Denk dran, sollte die Farbe nicht auftauchen, hängst du in einer Endlosschleife. Falls es länger dauern kann, bis die Farbe erscheint, sollte in die Schleife noch ein kleines Sleep mit rein. -
die Variable für den Tab (TabItem) wird zufalls generiert
Die ID des Item erhältst du doch durch GUICtrlRead(Control, extended)
Hier mal als Bsp.:Spoiler anzeigen
[autoit]#include <GUIConstantsEx.au3>
[/autoit] [autoit][/autoit] [autoit]
Example()Func Example()
[/autoit] [autoit][/autoit] [autoit]
Local $tab
$gui = GUICreate("GUI Tab", 400, 230)
$bDel = GUICtrlCreateButton('Delete Active TabItem', 10, 200, 130, 20)
$tab = GUICtrlCreateTab(10, 10, 380, 180)
For $i = 0 To 5
GUICtrlCreateTabItem('TabItem ' & $i)
Next
GUICtrlCreateTabItem("")GUISetState()
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit]
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
If $msg = $tab Then
WinSetTitle($gui, "", "aktives Tab: " & GUICtrlRead($tab) & ' ID: ' & GUICtrlRead($tab, 1))
ElseIf $msg = $bDel Then
GUICtrlDelete(GUICtrlRead($tab, 1))
WinSetTitle($gui, "", "aktives Tab: " & GUICtrlRead($tab) & ' ID: ' & GUICtrlRead($tab, 1))
EndIf
WEnd
EndFunc ;==>Example -
!= gibt es in AutoIt nicht. Verwende Not oder <>
-
Eine Möglichkeit wäre dieses etwas angestaubte Skript von mir: Doppelklick für (fast) jedes Control
Eine andere Variante ist das Auswerten der Message Doppelklick (für Listview z.B. $NM_DBLCLK über GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY") ). Mußt du dir die für das entsprechende Control zuständigen Messagecodes mal raussuchen. -
Du brauchst nur eine 2. Sortiervariable:
[autoit]$B_DESCENDING = _GUICtrlListView_GetColumnCount($listg1)
[/autoit]
$B_DESCENDING_2 = _GUICtrlListView_GetColumnCount($listg2) -
Ein Klick auf Schriftart in der Hilfe stellt bei dir nicht mehr die Darstellung um ?
Ob du es glaubst oder nicht - dieser Button ist mir vorher noch nie aufgefallen.
Man wird echt betriebsblind. Ich habe alle möglichen Tasten+Scrollaktionen getestet, aber auf die Idee nach nem Button zu suchen bin ich nicht gekommen. Ich muß wohl akzeptieren: ich werde alt!
Danke Raupi, nun ist alles wieder OK. -
Hi,
hab folgendes Problem. Beim Scrollen in einer Hilfe-Datei (chm) blockierte mein Touchpad und der Hilfetext zoomte auf. Nachdem das Touchpad wieder entblockte, habe ich keine Möglichkeit mehr den Text auf normale Größe zurückzuzoomen.
Im Normalfall wird der Text in Schriftgröße 10 od. 11 dargestellt. Jetzt ist es etwa 14 bis 16. Das ist natürlich äußerst unangenehm zu lesen. Betroffen sind davon sämtliche Hilfedateien.
Hat jemand eine Idee, wie ich wieder zur normalen Darstellung zurückkomme? Absichtlich gelingt es mir nicht nochmals die Blockade herbeizuführen. -
Probier mal mit Fehlerabfrage:
Spoiler anzeigen
[autoit]If WinExists("Öffnen") Then
[/autoit]
$hOeffnen = WinGetHandle("Öffnen")
If Not IsHWnd($hOeffnen) Then Exit MsgBox(0, '', 'Kein Handle!')
$aCursorInfo = GUIGetCursorInfo($hOeffnen)
If Not IsArray($aCursorInfo) Then Exit MsgBox(0, '', 'Keine Cursor-Info!')
If $aCursorInfo[4] = 1 Then MsgBox(0, "Info", "Öffnen")
If $aCursorInfo[4] = 2 Then MsgBox(0, "Info", "Abbrechen")
EndIf -
GUIGetCursorInfo ( [winhandle] )
"Öffnen" ist kein Handle und somit gibt dir die Funktion auch kein Array zurück. -
Deine Funktion generiert doch gar keine Primzahlen?!
Oops, da hab ich den Anfang irgendwie überlesen
- hab nur die Funktion _IsPrime gesehen. 
-
Hi Oscar,
check doch mal die Version auch: Primfaktorzerlegung, Radikal eines Integer
Würde mich interessieren, wie das im Vergleich aussieht.
-
Hab es jetzt nicht im Detail durchgeschaut (verwende bitte autoit-Tags), aber ich vermute mal, dass in jedem Durchlauf die Farbe gesetzt wird (deshalb Streifen), da du dieselbe Variable $stat für alle Button verwendest. Somit muß diese ja immer unterschiedlich sein (du checkst ja nacheinander mehrere Sachen und veränderst dabei $stat) und die Toggle-Func wird aufgerufen.
-
-
Du kannst den Aktionsradius der Maus auf deine GUI begrenzen - MouseTrap()
-
Naja, ich wollte dir ja nicht mit hoher Mathematik kommen

Aber wenn du dich mal mit den Grundlagen der Wegoptimierung auseinandersetzen willst - bitteschön: http://www.qno.de/wiwi/winf/Seminar0106.pdf und hier: http://www.hs-augsburg.de/informatik/pro…erf/3d_vis.html