Beiträge von Sprenger120
-
-
ein programm um die GUI zu desinen
Der Inhalt kann nicht angezeigt werden, da er nicht mehr verfügbar ist. am besten du liest mal das Klick
-
Wir sind kein Bot Forum
dafür gibt es dieses Klick//Edit: Aber da mit der Oberflächen (GUI) das machst du am bestem nit Koda (bei SciTe einach Alt+m)
-
hmm aber wozu braucht man so viele MausClicks
das wird bestimmt nen bot
-
am besten du lädst das mal hoch damit wir mal schauen können was der switcher alles so kann
-
habe das mal gebaut (vor einiger zeit)
könnte vlt nicht funzenSpoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Array.au3>
#include <GuiIPAddress.au3>$_1 = GUICreate("IP-Scanner", 558, 262, 192, 124)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$List = GUICtrlCreateListView("IP|Zeit", 8, 40, 537, 169)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 50)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 50)
$Start = GUICtrlCreateButton("Start", 8, 216, 537, 41, $WS_GROUP)
GUICtrlCreateGroup("IP", 8, 0, 537, 33)
$show_ip = GUICtrlCreateLabel("", 176, 8, 115, 17)
$IPAddress1 = _GUICtrlIpAddress_Create($_1, 32, 8, 130, 21)
GUISetState(@SW_SHOW)While 1
[/autoit] [autoit][/autoit] [autoit][/autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Start
$ip = _GUICtrlIpAddress_Get ($IPAddress1)
$xip = StringSplit($ip, ".")
_ArrayDelete ($xip, 0)
;_ArrayDisplay ($xip, "")
Do
$xip[3] = $xip[3] + 1
If $xip[3] > 233 Then
$xip[2] = $xip[2] + 1
$xip[3] = 0
EndIf
If $xip[2] > 233 Then $xip[1] = $xip[1] + 1
If $xip [1] > 233 Then $xip[0] = $xip[0] + 1
$sip = _ArrayToString ($xip, ".")
$ping = Ping ($sip)
if $ping <> 0 Then GUICtrlCreateListViewItem ($sip & "|" & $ping, $List)
GUICtrlSetData ($show_ip, $sip)
Until GUIGetMsg() = -3
EndSwitch
WEnd -
-
Hi Com.
ich habe diesen Skript in dem Englischen Autoit Forum gefunden. Ich möchte nämlich Skript A mit Skript B Komunizieren lassen ohne TCP ODER UDP.
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
#include-onceGlobal Const $MHVersionInformation = "V1.04"
[/autoit] [autoit][/autoit] [autoit]Global $MHSendDataToFunc = " _DefaultMsgFunc"
[/autoit] [autoit][/autoit] [autoit]
Global $MHhwmd_Receiver
Global $MHAdditionalIdentifier = "_CAL987qwerty2468";just to make the window titles a little bit more unique; Windows Definitions;
[/autoit] [autoit][/autoit] [autoit]
Global Const $StructDef_COPYDATA = "dword none;dword count;ptr pointer"
Global Const $WM_COPYDATA_MH = 0x4A;Message Queue Setup
[/autoit] [autoit][/autoit] [autoit]
Global $MHCallBackTimer = 200
Global $pTimerProc, $uiTimer
Global $aMessageQueue[1]=[0]Opt("OnExitFunc", "CallBack_Exit")
[/autoit] [autoit][/autoit] [autoit]; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit]
; Name...........: _MHVersion
; Description ...: Gets Message Handler Version information
; Syntax.........: _MHVersion()
; Parameters ....: None
; Return values .: Message Handler Version Number
; Author ........: ChrisL
; ===============================================================================================================================
Func _MHVersion()Return $MHVersionInformation
[/autoit] [autoit][/autoit] [autoit]EndFunc
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
; Name...........: _SetCallBackTimerInterval
; Description ...: Sets the script up to accept messages
; Syntax.........: _SetCallBackTimerInterval(nnn)
; Parameters ....: $iTime - Callback timer in milliseconds to process each message in the queue
; Return values .: Success - The new callback timer
; Failure - @error is set and the previous callback timer setting is used. Default is 200ms
; Information ...: The timer must be changed before _SetAsReceiver() is called
; Author ........: ChrisL
; ===============================================================================================================================
Func _SetCallBackTimerInterval($iTime = 200)
If Not IsInt($iTime) then Return SetError(1,0,$MHCallBackTimer) ;not an integer so set error and return current setting
If $MHhwmd_Receiver <> "" then Return SetError(1,0,$MHCallBackTimer) ;the receiver function is already set so the timer can not be changed
If $iTime = 0 then Return $MHCallBackTimer ;Return existing value
If $iTime < 50 then $iTime = 50
$MHCallBackTimer = $iTime
Return SetError(0,0,$iTime)
EndFunc; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit]
; Name...........: _CALLBACKQUEUE
; Description ...: Process any messages that are queued and adjust the message queue
; Syntax.........: None
; Parameters ....: None
; Return values .: None
; Author ........: ChrisL
; ===============================================================================================================================
Func _CALLBACKQUEUE()Local $vMessage
[/autoit] [autoit][/autoit] [autoit]
Local $queueLen = $aMessageQueue[0]If $queueLen > 0 then
[/autoit] [autoit][/autoit] [autoit]
$vMessage = $aMessageQueue[1]
$aMessageQueue[1] = ""
For $i = 1 to $queueLen -1
$aMessageQueue[$i] = $aMessageQueue[$i +1]
NextRedim $aMessageQueue[$queueLen]
[/autoit] [autoit][/autoit] [autoit]$aMessageQueue[0] = $queueLen - 1
[/autoit] [autoit][/autoit] [autoit]
Call($MHSendDataToFunc,$vMessage)
EndIfEndFunc
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
; Name...........: _QueueMessage
; Description ...: Queues messages to prevent script slowdown
; Syntax.........: _QueueMessage($vText)
; Parameters ....: $vText - The text to queue from the remote script
; Return values .: None
; Author ........: ChrisL
; ===============================================================================================================================
Func _QueueMessage($vText)
Redim $aMessageQueue[$aMessageQueue[0] +2]
$aMessageQueue[$aMessageQueue[0] +1] = $vText
$aMessageQueue[0]+=1
EndFunc; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit]
; Name...........: _SetAsReceiver
; Description ...: Sets the script up to accept messages
; Syntax.........: _SetAsReceiver($vTitle)
; Parameters ....: $vTitle - The Local_ReceiverID_Name
; Return values .: Success - Handle to the receiver window
; Failure - @error is set and the relevant message is displayed
; Author ........: ChrisL
; ===============================================================================================================================
Func _SetAsReceiver($vTitle)
If StringLen($vTitle) = 0 then
Msgbox(16 + 262144,"Message Handler Error","A Local_ReceiverID_Name must be specified." & @crlf & _
"Messages will not be received unless a unique Local_ReceiverID_Name is used!")
Return SetError(1,1,-1);Make sure the user has specified a title
EndIf$vTitle &= $MHAdditionalIdentifier;add on our additionalIdentifier which is unlikely to be used exept by scripts using this UDF
[/autoit] [autoit][/autoit] [autoit]If WInExists($vtitle) and WinGetHandle($vTitle) <> $MHhwmd_Receiver then ;already a window exists with this title and it's not ours highly unlikely unless 2 copies of the script are running
[/autoit] [autoit][/autoit] [autoit]
Msgbox(16 + 262144,"Message Handler Error","The Local_ReceiverID_Name " & StringTrimRight($vTitle,StringLen($MHAdditionalIdentifier)) & " already exists." & @crlf & _
"A unique Local_ReceiverID_Name must be specified." & @crlf & _
"Messages will not be received unless a unique Local_ReceiverID_Name is used!")
Return SetError(1,2,-1)
EndIf$MHhwmd_Receiver = GUICreate($vTitle)
[/autoit] [autoit][/autoit] [autoit]
GUIRegisterMsg($WM_COPYDATA_MH, "_GUIRegisterMsgProc")
$pTimerProc = DllCallbackRegister("_CALLBACKQUEUE", "none", "")
$uiTimer = DllCall("user32.dll", "uint", "SetTimer", "hwnd", 0, "uint", 0, "int", $MHCallBackTimer, "ptr", DllCallbackGetPtr($pTimerProc))
$uiTimer = $uiTimer[0]
Return $MHhwmd_ReceiverEndFunc
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
; Name...........: _SetReceiverFunction
; Description ...: Sets the function to call on receiving data
; Syntax.........: _SetReceiverFunction($vString)
; Parameters ....: $vString - The string of data to send
; Return values .: Success - The users function name to call
; Failure - @error is set and "" is returned
; Author ........: ChrisL
; ===============================================================================================================================
Func _SetReceiverFunction($vString)
If $vString = "" then return SetError(1,1,$vString)
$MHSendDataToFunc = $vString
Return SetError(0,0,$MHSendDataToFunc)
EndFunc; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit]
; Name...........: _SendData
; Description ...: Sends data to the registered window
; Syntax.........: _SendData($vData,$ReceiverTitle)
; Parameters ....: $vData - The string of data to send
; $ReceiverTitle - Remote_ReceiverID_Name specified in the script you wish to communicate to
; Return values .: Success - The count of the string length sent
; Failure - @error is set and 0 is returned
; Author ........: martin, piccaso and ChrisL
; ===============================================================================================================================
Func _SendData($vData,$ReceiverTitle)
Local $strLen,$CDString,$vs_cds,$pCDString,$pStruct,$hwndRecIf StringLen($ReceiverTitle) = 0 then Return SetError(1,1,0);Make sure the user has specified a title
[/autoit] [autoit][/autoit] [autoit]
$ReceiverTitle&= $MHAdditionalIdentifier$strLen = StringLen($vData)
[/autoit] [autoit][/autoit] [autoit]
$CDString = DllStructCreate("char var1[" & $strLen +1 & "]");the array to hold the string we are sending
DllStructSetData($CDString,1,$vData)$pCDString = DllStructGetPtr($CDString);the pointer to the string
[/autoit] [autoit][/autoit] [autoit]$vs_cds = DllStructCreate($StructDef_COPYDATA);create the message struct
[/autoit] [autoit][/autoit] [autoit]
DllStructSetData($vs_cds,"count",$strLen + 1);tell the receiver the length of the string +1
DllStructSetData($vs_cds,"pointer",$pCDString);the pointer to the string$pStruct = DllStructGetPtr($vs_cds)
[/autoit] [autoit][/autoit] [autoit]$hwndRec = WinGetHandle($ReceiverTitle)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
If $hwndRec = "" then
$vs_cds = 0;free the struct
$CDString = 0;free the struct
Return SetError(1,2,0)
EndIfDllCall("user32.dll", "lparam", "SendMessage", "hwnd", $hwndRec, "int", $WM_COPYDATA_MH, "wparam", 0, "lparam", $pStruct)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
If @error then
$vs_cds = 0;free the struct
$CDString = 0;free the struct
return SetError(1, 3, 0) ;return 0 no data sent
EndIf$vs_cds = 0;free the struct
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$CDString = 0;free the struct
Return $strLen
EndFunc; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit]
; Name...........: _GUIRegisterMsgProc
; Description ...: Called when a messae is sent to the registered window
; Syntax.........: _GUIRegisterMsgProc($hWnd, $MsgID, $wParam, $lParam)
; Parameters ....: $hWnd - Window/control handle
; $iMsg - Message ID received
; $wParam - Could specify additional message-specific information
; $lParam - Specifies a pointer to the message
; Return values .: None - Calls user specified function
; Author ........: piccaso
; Modified.......: ChrisL and martin
; ===============================================================================================================================
Func _GUIRegisterMsgProc($hWnd, $MsgID, $WParam, $LParam)
Local $vs_cds,$vs_msgIf $MsgID = $WM_COPYDATA_MH Then ; We Recived a WM_COPYDATA Message
[/autoit] [autoit][/autoit] [autoit]
; $LParam = Poiter to a COPYDATA Struct
$vs_cds = DllStructCreate($StructDef_COPYDATA, $LParam)
; Member No. 3 of COPYDATA Struct (PVOID lpData;) = Pointer to Custom Struct
$vs_msg = DllStructCreate("char[" & DllStructGetData($vs_cds, "count") & "]", DllStructGetData($vs_cds, "pointer"))
; Call the function to queue the received data
_QueueMessage(DllStructGetData($vs_msg, 1))
$vs_cds = 0
$vs_msg = 0
EndIfEndFunc ;==>_GUIRegisterMsgProc
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]; #FUNCTION# ====================================================================================================================
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
; Name...........: _DefaultMsgFunc
; Description ...: If no user function is specified this function i used to receive data
; Syntax.........: _DefaultMsgFunc($vText)
; Parameters ....: $vText - The data sent be the other script
; Return values .: None
; Author ........: ChrisL
; ===============================================================================================================================
Func _DefaultMsgFunc($vText)
Msgbox(0," _DefaultMsgFunc",$vText)
EndFunc ;==>_DefaultMsgFunc;Release the CallBack resources
[/autoit]
Func CallBack_Exit()
If $MHhwmd_Receiver <> "" then
DllCallbackFree($pTimerProc)
DllCall("user32.dll", "int", "KillTimer", "hwnd", 0, "uint", $uiTimer)
EndIf
EndFuncund hier nochmal als Download
Der Inhalt kann nicht angezeigt werden, da er nicht mehr verfügbar ist. hoffentlich weiß einer damit umzugehen
-
Ich wünche euch allen ein frohes und besinnliches Weihnachtsfest, und vorallem Gesundheit und viele Geschenke.
-
super jetze funzts
thx -
Hi,
ich habe ein Problem mit dem berechnen(lassen) von großen zahlen
wenn ich das Testhalber ausführe
[autoit]
[/autoit][autoit][/autoit][autoit]
MsgBox(0,0,DataShort(100000078647484))Func DataShort($sSize)
[/autoit]
$sSize = Number($sSize)
If $sSize >= 1024 * 1024 *1024 *1024 *1024 * 1024 Then Return Round($sSize / 1024 * 1024 *1024 *1024 *1024 * 1024,1) & " EB"
If $sSize >= 1024 * 1024 *1024 *1024 *1024 Then Return Round($sSize / 1024 * 1024 *1024 *1024 *1024,5) & " PB"
If $sSize >= 1024 * 1024 *1024 *1024 Then Return Round($sSize / 1024 * 1024 *1024 *1024,2) & " TB"
If $sSize >= 1073741824 Then Return Round($sSize / 1073741824, 1) & " GB"
If $sSize >= 1048576 Then Return Round($sSize / 1048576) & " MB"
If $sSize >= 1024 Then Return Round($sSize / 1024) & " KB"
EndFunc ;==>DataShort
bekomme ich eine MsgBox mit folgendem Inhalt
1.04857682467839e+020.Ich würde das gerne ausgeschrieben haben aber ich bekomme es einfach nicht hin;(
naja vlt kann mir einer helfen.
wünsche euch einen fleißigen Weihnachtsmann
-
-
-
so ?
[autoit]
[/autoit][autoit][/autoit][autoit]
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>$Form1 = GUICreate("Form1", 625, 443, 192, 124)
[/autoit][autoit][/autoit][autoit][/autoit][autoit]
$Input1 = GUICtrlCreateInput("Input1", 80, 96, 265, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY), 0)
GUISetState(@SW_SHOW)While 1
[/autoit][autoit][/autoit][autoit]
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitEndSwitch
[/autoit]
WEnd -
das war in der hilfe vlt hilfst dir weiter
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
; Um die Beispiele 1,2,3 und 5 nachvollziehen zu können, öffne
; http://www.autoit.de und http://www.wikipedia.de in je einem IE-Browserfenster oder -Tab.
; Für Beispiel 3 ist der Mediaplayer geeignet (Media Guide auswählen)
; Zu 4. habe ich leider kein funktionierendes Beispiel.
; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!; *******************************************************
[/autoit] [autoit][/autoit] [autoit]
; Beispiel 1 - Verbindet sich mit einem geöffneten Internet Explorer, in dessen Titel"AutoIt" vorkommt und gibt die URL aus.
; *******************************************************
;
#include <IE.au3>
$oIE = _IEAttach ("AutoIt")
MsgBox(0, "Beispiel 1:", _IEPropertyGet ($oIE, "locationurl")); *******************************************************
[/autoit] [autoit][/autoit] [autoit]
; Beispiel 2 - Verbindet sich mit einem geöffneten Internet Explorer, in dessen Hauptdokument der Text "unsere Spender" vorkommt.
; *******************************************************
;
#include <IE.au3>
$oIE = _IEAttach ( "unsere Spender","text")
MsgBox(0, "Beispiel 2:", _IEPropertyGet ($oIE, "locationurl")); *******************************************************
[/autoit] [autoit][/autoit] [autoit]
; Beispiel 3 - Verbindung zu einem eingebetteten IE-Control herstellen, dessen Fenstertitel "Player" enthält.
; *******************************************************
;
#include <IE.au3>
$oIE = _IEAttach ( "Player","embedded")
MsgBox(0, "Beispiel 3:", _IEPropertyGet ($oIE, "locationurl")); *******************************************************
[/autoit] [autoit][/autoit] [autoit]
; Beispiel 4 - Verbindet sich mit dem 3. IE-Control, das in ein anderes Fenster eingebettet ist.
; Benutzt die erweiterte Fenstertitelsyntax, um das 2. Fenster mit dem Titel 'ICQ' zu finden.
; *******************************************************
;
#include <IE.au3>
$oIE = _IEAttach ("[REGEXPTITLE:ICQ; INSTANCE:2]", "embedded", 3)
MsgBox(0, "Beispiel 4:", _IEPropertyGet ($oIE, "locationurl")); *******************************************************
[/autoit] [autoit][/autoit] [autoit]
; Beispiel 5 - Füllt ein Array mit den Objektreferenzen aller erzeugten IE-Browser-Instanzen.
; Das Erste Array-Element enthält die Anzahl der gefundenen Instanzen.
; *******************************************************
;
#include <IE.au3>Dim $aIE[1]
[/autoit] [autoit][/autoit] [autoit]
$aIE[0] = 0$i = 1
[/autoit] [autoit][/autoit] [autoit]
While 1
$oIE = _IEAttach ("", "instance", $i)
If @error = $_IEStatus_NoMatch Then ExitLoop
ReDim $aIE[$i + 1]
$aIE[$i] = $oIE
$aIE[0] = $i
$i += 1
WEndMsgBox(0, "Beispiel 5 - Gefundene Browser:", "Anzahl der IE-Browser-Instanzen im Array: " & $aIE[0])
[/autoit] -
-
so ?
[autoit]
[/autoit][autoit][/autoit][autoit]
#Include <Constants.au3>
Opt("TrayMenuMode", 1)$Item1 = TrayCreateItem("1")
[/autoit][autoit][/autoit][autoit]
TrayItemSetState(-1,$TRAY_CHECKED)While 1
[/autoit]
Sleep(10)
WEnd -
irgentwann mussen wir doch mal bei ... ankommen
2
-
Hey gut geworden leider bringt mir das nichts (Win 7)
aber für meinen VPC is das was
-