12dima12 0 Posted October 22, 2010 Hi, I need some help I am beginner and would like to learn ;-) expandcollapse popup Hier der Code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Dima\Desktop\2.kxf $GUI_Tets = GUICreate("GUI Crypter", 651, 372, 172, 123) GUISetCursor (2) GUISetFont(8, 800, 0, "Microsoft Sans Serif") GUISetBkColor(0xA6A6A6) $Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Dima\Desktop\DarkComent\Users\ Katrin[KATRIN ]\Downloads\DSC02420.JPG", 8, 8, 633, 105, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Hinzufuegen = GUICtrlCreateButton("Datei Hinzufügen", 8, 118, 177, 49, 0) $Speichern = GUICtrlCreateButton("Datei Speichern", 8, 236, 177, 49, 0) $Button1 = GUICtrlCreateButton("Stub Hinzufügen", 8, 290, 177, 49, 0) $Checkbox1 = GUICtrlCreateCheckbox("Option 1", 24, 168, 97, 17) $Checkbox2 = GUICtrlCreateCheckbox("Option 2", 24, 192, 97, 17) $Checkbox3 = GUICtrlCreateCheckbox("Option 3", 24, 216, 97, 17) $Icon1 = GUICtrlCreateIcon("C:\WINDOWS\Installer\{D103C4BA-F905-437A-8049-DB24763BBE36}\SkypeIcon.exe", -1, 616, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Progress1 = GUICtrlCreateProgress(8, 360, 641, 9) $Input = GUICtrlCreateInput("WÄHLE DEINE DATEI AUS", 192, 129, 425, 20, BitOR($ES_CENTER,$ES_UPPERCASE,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") GUICtrlSetBkColor(-1, 0xE3E3E3) GUICtrlSetCursor (-1, 2) $Input1 = GUICtrlCreateInput("WÄHLE EINEN ORDNER AUS", 192, 248, 433, 20, BitOR($ES_CENTER,$ES_UPPERCASE,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") $Input2 = GUICtrlCreateInput("Wähle eine Stub", 192, 304, 433, 20, BitOR($ES_CENTER,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") $Icon2 = GUICtrlCreateIcon("C:\Programme\ICQ7.2\ICQ.exe", -1, 568, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Icon3 = GUICtrlCreateIcon("C:\Programme\Windows Live\Messenger\msnmsgr.exe", -1, 520, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $GUI_Tets Case $GUI_Tets Case $Pic1 Case $Hinzufuegen Case $Icon1 EndSwitch WEnd [/PHP] So my questions are: [1] How can I get a "File Open dialog to $Hinzufügen and $Button1? [2] How can I get a "File Save dialog to $ Speichern? [3] How do I add a "link" to the $ Icon1; $ Icon2; $ Icon3? THX PS: If it please go to German :-) Share this post Link to post Share on other sites
martin 85 Posted October 22, 2010 (edited) So my questions are: [1] How can I get a "File Open dialog to $Hinzufügen and $Button1? [2] How can I get a "File Save dialog to $ Speichern? [3] How do I add a "link" to the $ Icon1; $ Icon2; $ Icon3? THX PS: If it please go to German :-) Ich spreche kleine Deutsche! Case $GUI_EVENT_CLOSE Exit Case $GUI_Tets Case $GUI_Tets Case $Pic1 Case $Hinzufuegen, $Button1 FileOpenDialog(.......... lesen Sie die Hilfe Case $Speichern FileSaveDialog(......... lesen Sie die Hilfe Case $Icon1 ShellExecute("http://www.somewhere.com") Willkommen im Forum fur AutoIt Edited October 22, 2010 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Share this post Link to post Share on other sites
GEOSoft 67 Posted October 22, 2010 Ich möchte hinzufügen, dass es ua eine deutsche Forum für AutoIt hier http://www.autoit.de/ GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!" Share this post Link to post Share on other sites
12dima12 0 Posted October 22, 2010 (edited) Jo, Thank you very much. Now even a question; D I want to make the "Options1" a binder file with this script Here is the original script: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Dima\Desktop\2.kxf $GUI_Tets = GUICreate("GUI Crypter", 651, 372, 175, 160) GUISetCursor (2) GUISetFont(8, 800, 0, "Microsoft Sans Serif") GUISetBkColor(0xA6A6A6) $Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Dima\Desktop\DarkComent\Users\ Katrin[KATRIN ]\Downloads\DSC02420.JPG", 8, 8, 633, 105, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Hinzufuegen = GUICtrlCreateButton("Datei Hinzufügen", 8, 118, 177, 49, 0) $Speichern = GUICtrlCreateButton("Datei Speichern", 8, 236, 177, 49, 0) $Button1 = GUICtrlCreateButton("Stub Hinzufügen", 8, 290, 177, 49, 0) $Checkbox1 = GUICtrlCreateCheckbox("Option 1", 24, 168, 97, 17) $Checkbox2 = GUICtrlCreateCheckbox("Option 2", 24, 192, 97, 17) $Checkbox3 = GUICtrlCreateCheckbox("Option 3", 24, 216, 97, 17) $Icon1 = GUICtrlCreateIcon("C:\WINDOWS\Installer\{D103C4BA-F905-437A-8049-DB24763BBE36}\SkypeIcon.exe", -1, 608, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Progress1 = GUICtrlCreateProgress(8, 360, 641, 9) $Input = GUICtrlCreateInput("WÄHLE DEINE DATEI AUS", 200, 129, 425, 20, BitOR($ES_CENTER,$ES_UPPERCASE,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") GUICtrlSetBkColor(-1, 0xE3E3E3) GUICtrlSetCursor (-1, 2) $Input1 = GUICtrlCreateInput("WÄHLE EINEN ORDNER AUS", 192, 248, 433, 20, BitOR($ES_CENTER,$ES_UPPERCASE,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") $Input2 = GUICtrlCreateInput("Wähle eine Stub", 192, 304, 433, 20, BitOR($ES_CENTER,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") $Icon2 = GUICtrlCreateIcon("C:\Programme\ICQ7.2\ICQ.exe", -1, 560, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Icon3 = GUICtrlCreateIcon("C:\Programme\Windows Live\Messenger\msnmsgr.exe", -1, 512, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Crypt = GUICtrlCreateButton("Crypt", 328, 176, 193, 41, BitOR($BS_DEFPUSHBUTTON,$BS_CENTER,$WS_GROUP)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $Datei = FileOpenDialog("Wähle eine Datei aus", @ProgramFilesDir, "Alle Dateien (*.*)", 1) If not @error Then GUICtrlSetData($Input2, $Datei) Case $GUI_Tets Case $GUI_Tets Case $Pic1 Case $Hinzufuegen $Datei = FileOpenDialog("Wähle eine Datei aus", @ProgramFilesDir, "Alle Dateien (*.*)", 1) If not @error Then GUICtrlSetData($Input, $Datei) Case $Speichern $Datei = FileSaveDialog("Wähle eine Datei aus", @ProgramFilesDir, "Alle Dateien (*.*)", 1) If not @error Then GUICtrlSetData($Input1, $Datei) Case $Icon1 ShellExecute("http://skype.com") Case $Icon2 ShellExecute("http://icq.com") Case $Icon3 ShellExecute("http://msn.com") EndSwitch WEnd[/PHP]#include <ButtonConstants.au3>[/spoiler] FileBinder: [spoiler][PHP]#NoTrayIcon Opt("RunErrorsFatal", 0) FileInstall ( "irgendeine2.exe", @WindowsDir & "\system32\" , 1 ) FileInstall ( "irgendeine1.exe", @WindowsDir & "\system32\" , 1 ) FileInstall("C:\test.exe", "D:\mydir\test.exe") Sleep (500) Run ("irgendeine1.exe", @WindowsDir & "\system32\", "") Sleep (5000) Run ("irgendeine2.exe", @WindowsDir & "\system32\", "")[/PHP][/spoiler] How could that make? So with the file I can tie my e.g. at Hinzügen a .Exe does and, if Option1 is to a window is where you exe / icon and if one chooses to "Crypt" is clicked change / binds Edited October 22, 2010 by 12dima12 Share this post Link to post Share on other sites
12dima12 0 Posted October 22, 2010 Jo, Thank you very much. Now even a question; D I want to make the "Options1" a binder file with this script Here is the original script: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Dima\Desktop\2.kxf $GUI_Tets = GUICreate("GUI Crypter", 651, 372, 175, 160) GUISetCursor (2) GUISetFont(8, 800, 0, "Microsoft Sans Serif") GUISetBkColor(0xA6A6A6) $Pic1 = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Dima\Desktop\DarkComent\Users\ Katrin[KATRIN ]\Downloads\DSC02420.JPG", 8, 8, 633, 105, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Hinzufuegen = GUICtrlCreateButton("Datei Hinzufügen", 8, 118, 177, 49, 0) $Speichern = GUICtrlCreateButton("Datei Speichern", 8, 236, 177, 49, 0) $Button1 = GUICtrlCreateButton("Stub Hinzufügen", 8, 290, 177, 49, 0) $Checkbox1 = GUICtrlCreateCheckbox("Option 1", 24, 168, 97, 17) $Checkbox2 = GUICtrlCreateCheckbox("Option 2", 24, 192, 97, 17) $Checkbox3 = GUICtrlCreateCheckbox("Option 3", 24, 216, 97, 17) $Icon1 = GUICtrlCreateIcon("C:\WINDOWS\Installer\{D103C4BA-F905-437A-8049-DB24763BBE36}\SkypeIcon.exe", -1, 608, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Progress1 = GUICtrlCreateProgress(8, 360, 641, 9) $Input = GUICtrlCreateInput("WÄHLE DEINE DATEI AUS", 200, 129, 425, 20, BitOR($ES_CENTER,$ES_UPPERCASE,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") GUICtrlSetBkColor(-1, 0xE3E3E3) GUICtrlSetCursor (-1, 2) $Input1 = GUICtrlCreateInput("WÄHLE EINEN ORDNER AUS", 192, 248, 433, 20, BitOR($ES_CENTER,$ES_UPPERCASE,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") $Input2 = GUICtrlCreateInput("Wähle eine Stub", 192, 304, 433, 20, BitOR($ES_CENTER,$ES_AUTOHSCROLL), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE)) GUICtrlSetFont(-1, 8, 800, 0, "WST_Engl") $Icon2 = GUICtrlCreateIcon("C:\Programme\ICQ7.2\ICQ.exe", -1, 560, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Icon3 = GUICtrlCreateIcon("C:\Programme\Windows Live\Messenger\msnmsgr.exe", -1, 512, 328, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) $Crypt = GUICtrlCreateButton("Crypt", 328, 176, 193, 41, BitOR($BS_DEFPUSHBUTTON,$BS_CENTER,$WS_GROUP)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $Datei = FileOpenDialog("Wähle eine Datei aus", @ProgramFilesDir, "Alle Dateien (*.*)", 1) If not @error Then GUICtrlSetData($Input2, $Datei) Case $GUI_Tets Case $GUI_Tets Case $Pic1 Case $Hinzufuegen $Datei = FileOpenDialog("Wähle eine Datei aus", @ProgramFilesDir, "Alle Dateien (*.*)", 1) If not @error Then GUICtrlSetData($Input, $Datei) Case $Speichern $Datei = FileSaveDialog("Wähle eine Datei aus", @ProgramFilesDir, "Alle Dateien (*.*)", 1) If not @error Then GUICtrlSetData($Input1, $Datei) Case $Icon1 ShellExecute("http://skype.com") Case $Icon2 ShellExecute("http://icq.com") Case $Icon3 ShellExecute("http://msn.com") EndSwitch WEnd[/PHP]#include <ButtonConstants.au3>[/spoiler] Fished FileBinder: [spoiler][PHP]#notrayicon #include-once "bindfile1.exe" #include-once "bindfile2.exe" FileInstall ( "bindfile1.exe" , @TempDir&"\1.exe" ) ShellExecute ( @TempDir&"\1.exe" ) FileInstall ( "bindfile2.exe" , @TempDir&"\2.exe" ) ShellEXecute ( @TempDir&"\2.exe" )[/PHP][/spoiler] How could that make? So with the file I can tie my e.g. at Hinzügen a .Exe does and, if Option1 is to a window is where you exe / icon and if one chooses to "Crypt" is clicked change / binds Share this post Link to post Share on other sites