Du musst auch auf Tools-->Compile gehen (übers Menü)!
Mega
Du musst auch auf Tools-->Compile gehen (übers Menü)!
Mega
Hi,
kein Problem. Habe deine Icons vergessen ![]()
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 350, 233, 193, 125, -1, $WS_EX_TOOLWINDOW)
$Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Local $icon_A[4] = [16, 32, 48, 64]
HotKeySet("{ESC}", '_end')
; das untere ist die unedliche funktion und das obere ist das fenster
;dashier stand dabei:
; MsgBox was Skript nicht anhält
;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)
While 1
$msg = GUIGetMsg()
If $msg = -3 Then Exit
If $msg = $Button1 Then
For $i = 0 To 20
tcc_msgbox($icon_A[Random(0, 3, 1)], "Virus", "Ich bin dein Virus", Random(0, @DesktopWidth, 1), Random(0, @DesktopHeight))
Next
EndIf
WEnd
Func tcc_msgbox($icon = 16, $title = "Virus", $text = "Ich bin dein Virus", $x = -1, $y = -1)
If $icon = 0 Then
$msg = GUICreate($title & " - TCC", 16 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
Else
$msg = GUICreate($title & " - TCC", 80 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
GUICtrlCreateIcon(@SystemDir & "\\user32.dll", 0, 8, 8, 32, 32)
EndIf
If $icon = 16 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -4)
ElseIf $icon = 32 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -3)
ElseIf $icon = 48 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -2)
ElseIf $icon = 64 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -5)
EndIf
If $icon = 0 Then
GUICtrlCreateLabel($text, 8, 16, StringLen($text) * 7, 17, 1)
$btn_ok = GUICtrlCreateButton("OK", (16 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
Else
GUICtrlCreateLabel($text, 64, 16, StringLen($text) * 7, 17)
$btn_ok = GUICtrlCreateButton("OK", (80 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
EndIf
GUISetState(@SW_SHOW)
EndFunc ;==>tcc_msgbox
Func _end()
Exit (0)
EndFunc ;==>_end
Mega
Hi,
es soll ja auch nicht jeder einen Virus schreiben, diesen in den Autostart legen und sich dann freuen!
Mega
Du kannst auch einfach dies eintragen :
#AutoIt3Wrapper_icon=c:\\bla\blabla\SawBlade.ico ; halt deinen Pfad zur Datei!
in deinen Quellcode!
Mega
Hi,
für den einen Ansatz gab es doch schon welche
[autoit]Global $re = _getDOSOutput('ipconfig /all')
[/autoit][autoit][/autoit][autoit]MsgBox(64, 'IPCONFIG / ALL', StringStripWS($re, 7), 20)
[/autoit][autoit][/autoit][autoit]Func _getDOSOutput($command)
Local $text = '', $Pid = Run('"' & @ComSpec & '" /c ' & $command, '', @SW_HIDE, 2 + 4)
While 1
$text &= StdoutRead($Pid, False, False)
If @error Then ExitLoop
Sleep(10)
WEnd
Return $text
EndFunc ;==>_getDOSOutput
Aber weiter so!!! ![]()
Mega
Hi,
du musst doch nur einmal den Ablauf in Worte fassen.
Programmstart
Datei suchen (in deinem Programm??? oder Windows Explorer?)
Markieren
Hotkey zum Start des Umbenennens
so ungefähr?
Mega
P.S. Da gibt es schon x Tools dafür.
So einen Mist unterstützen wir hier nicht. Aber weil es so einfach ist, hier mal ein Tipp.
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 350, 233, 193, 125, -1, $WS_EX_TOOLWINDOW)
$Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
HotKeySet("{ESC}", '_end')
; das untere ist die unedliche funktion und das obere ist das fenster
;dashier stand dabei:
; MsgBox was Skript nicht anhält
;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)
While 1
$msg = GUIGetMsg()
If $msg = -3 Then Exit
If $msg = $Button1 Then
For $i = 0 To 20
tcc_msgbox(16, "Virus", "Ich bin dein Virus", Random(0, @DesktopWidth, 1), Random(0, @DesktopHeight))
Next
EndIf
WEnd
Func tcc_msgbox($icon = 16, $title = "Virus", $text = "Ich bin dein Virus", $x = -1, $y = -1)
If $icon = 0 Then
$msg = GUICreate($title & " - TCC", 16 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
Else
$msg = GUICreate($title & " - TCC", 80 + StringLen($text) * 7, 100, $x, $y, 0x80000, $WS_EX_TOOLWINDOW)
GUICtrlCreateIcon(@SystemDir & "\\user32.dll", 0, 8, 8, 32, 32)
EndIf
If $icon = 16 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -4)
ElseIf $icon = 32 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -3)
ElseIf $icon = 48 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -2)
ElseIf $icon = 64 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -5)
EndIf
If $icon = 0 Then
GUICtrlCreateLabel($text, 8, 16, StringLen($text) * 7, 17, 1)
$btn_ok = GUICtrlCreateButton("OK", (16 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
Else
GUICtrlCreateLabel($text, 64, 16, StringLen($text) * 7, 17)
$btn_ok = GUICtrlCreateButton("OK", (80 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
EndIf
GUISetState(@SW_SHOW)
EndFunc ;==>tcc_msgbox
Func _end()
Exit (0)
EndFunc ;==>_end
Mega
Naja, noch nicht ganz. ![]()
Willst du ein Tool in Autoit schreiben, weil du das ständig brauchst. Willst du den Windows Prozess nur automatisieren, oder alles gleich in Autoit machen?
Sollen das auch andere nutzen?
Mega
Versuch mal TeamViewer.
Mega
Hi,
so geht dein Skript zumindest. Was du erreichen willst ist mir indes unklar.
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 350, 233, 193, 125)
$Button1 = GUICtrlCreateButton("start", 112, 136, 113, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
; das untere ist die unedliche funktion und das obere ist das fenster
;dashier stand dabei:
; MsgBox was Skript nicht anhält
;Mit dieser UDF ist es möglich, eine MsgBox zu erstellen, was das Skript nicht anhält. Man kann die Icons ändern (0,16,32,48,64) und man kann titel und text bestimmen statt der funktion msgbox(icon,titel,text) muss man stattdessen tcc_msgbox(icon,titel,text) benutzen als extra kann man auch die x und y position einstellen, falls man nix schreibt, befindet sich das fenster in der mitte... ansonsten könnt ihr noch was verändern, falls ihr was braucht (z.B. 2 buttons oder so)
While 1
$msg = GUIGetMsg()
If $msg = $Button1 Then tcc_msgbox(16, "$title", "$text")
WEnd
Func tcc_msgbox($icon, $title, $text, $x = -1, $y = -1)
If $icon = 0 Then
$msg = GUICreate($title & " - TCC", 16 + StringLen($text) * 7, 100, $x, $y, 0x80000)
Else
$msg = GUICreate($title & " - TCC", 80 + StringLen($text) * 7, 100, $x, $y, 0x80000)
GUICtrlCreateIcon(@SystemDir & "\\user32.dll", 0, 8, 8, 32, 32)
EndIf
If $icon = 16 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -4)
ElseIf $icon = 32 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -3)
ElseIf $icon = 48 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -2)
ElseIf $icon = 64 Then
GUICtrlSetImage(-1, @SystemDir & "\\user32.dll", -5)
EndIf
If $icon = 0 Then
GUICtrlCreateLabel($text, 8, 16, StringLen($text) * 7, 17, 1)
$btn_ok = GUICtrlCreateButton("OK", (16 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
Else
GUICtrlCreateLabel($text, 64, 16, StringLen($text) * 7, 17)
$btn_ok = GUICtrlCreateButton("OK", (80 + StringLen($text) * 7) / 2 - 37, 45, 75, 22, 0)
EndIf
GUISetState(@SW_SHOW)
EndFunc ;==>tcc_msgbox
Mega
Hi,
was willst du denn ermöglichen?
Kannst du ein bißchen mehr zum Drumrum erzählen?
ich denke, dann finden wir eine ganz andere Lösung ! ![]()
Mega
Hi,
kannst du das Bild nicht binär lesen?
Mega
Man kann den Pc auch mit Autoit sperren.
Hi,
du hast bestimmt Send anstatt ControlSend usw. benutzt.
Mega
Was soll es denn werden, wenn es fertig ist?
Hi,
soll das sowas rauskommen wie CamStudio?
Mega
Glückwunsch!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
$oIE = ObjCreate("Shell.Explorer.2")
[/autoit][autoit][/autoit][autoit]GUICreate("Explorer", 800, 500, -1, -1, $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 800, 500 )
GUISetState()
[/autoit][autoit][/autoit][autoit]$oIE.navigate("C:\")
[/autoit][autoit][/autoit][autoit]While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
Exit
EndSelect
WEnd
Hi,
such mal nach temperatur
Mega
Poste mal ein Testskript, bitte.