Guest AX5 Posted December 21, 2009 Share Posted December 21, 2009 (edited) I got a map named files and on this script i want to over write the file in map file to a destination and it needs to use $Button2 = GUICtrlCreateButton("Over write", 40, 120, 100, 25, $WS_GROUP) Edited December 21, 2009 by AX5 Link to comment Share on other sites More sharing options...
GEOSoft Posted December 21, 2009 Share Posted December 21, 2009 (edited) Solution = Look elsewhere in your code because the portion you provided us with is just fine. Although I see no reason for the $WS_GROUP style from what you are showing. Edited December 21, 2009 by GEOSoft George Question 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!" Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 21, 2009 Moderators Share Posted December 21, 2009 George,Every Koda generated script I have seen has the $WS_GROUP style in the button lines. Goodness knows why! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
GEOSoft Posted December 21, 2009 Share Posted December 21, 2009 Thanks for the info M23. That's total nonsense and I'll just add it to my list of things I don't like about Koda. George Question 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!" Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 21, 2009 Share Posted December 21, 2009 I was looking for this code. Thx all $b = True If $b = True Then FileInstall("C:\test.bmp", "D:\mydir\test.bmp") Link to comment Share on other sites More sharing options...
trancexx Posted December 21, 2009 Share Posted December 21, 2009 I saw what you deleted. You need to read more. And try to comprehend read. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 21, 2009 Share Posted December 21, 2009 (edited) I saw what you deleted. You need to read more. And try to comprehend read. Im trying doing my best I thing that i cant fix... I want this script to the button so wan u press the button the scripts starts #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("0000", 323, 512, 192, 124) $Button1 = GUICtrlCreateButton("Steg 1", 184, 128, 113, 33, $WS_GROUP) $Button2 = GUICtrlCreateButton("Steg 2", 184, 216, 113, 33, $WS_GROUP) $Button3 = GUICtrlCreateButton("Steg 3", 184, 304, 113, 33, $WS_GROUP) $Button4 = GUICtrlCreateButton("Steg 4", 184, 392, 113, 33, $WS_GROUP) $Label1 = GUICtrlCreateLabel("4", 40, 32, 244, 65) $Label2 = GUICtrlCreateLabel("3", 32, 112, 140, 65) $Label3 = GUICtrlCreateLabel("2", 32, 200, 140, 65) $Label4 = GUICtrlCreateLabel("1", 32, 288, 140, 65) $Label5 = GUICtrlCreateLabel("0", 32, 376, 140, 125) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Run("Notepad.exe", $Button1) EndSwitch WEnd All the buttons most run 1 files each button Button 1 Run("files\executable\step1.exe", "") Button 2 Run("files\executable\step2.exe", "") Button 3 Run("files\executable\step3.exe", "") Edited December 21, 2009 by AX5 Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 21, 2009 Share Posted December 21, 2009 Or this code $rc = _RunDos("start files/1.exe") Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 21, 2009 Share Posted December 21, 2009 (edited) 1. Open helpfile.2. Find "GUI Reference".3. Read.4. Drink whiskey milk.5. Use the knowledge you now have to fix your script.6. Goto 10.7. Finished.Can you guess which two steps are voluntary? Edit: forgot something... Edited December 22, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 22, 2009 Share Posted December 22, 2009 (edited) 1. Open helpfile.2. Find "GUI Reference".3. Read.4. Drink whiskey milk.5. Use the knowledge you now have to fix your script.6. Goto 10.7. Finished.Can you guess which two steps are voluntary? Edit: forgot something...Cant find it plz help, Howe do i make the buttons work whit the script Edited December 22, 2009 by AX5 Link to comment Share on other sites More sharing options...
GEOSoft Posted December 22, 2009 Share Posted December 22, 2009 Do tou read too fast or not at all? What you need is in that help file several times. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("0000", 323, 512, 192, 124) $Button1 = GUICtrlCreateButton("Steg 1", 184, 128, 113, 33) $Button2 = GUICtrlCreateButton("Steg 2", 184, 216, 113, 33) $Button3 = GUICtrlCreateButton("Steg 3", 184, 304, 113, 33) $Button4 = GUICtrlCreateButton("Steg 4", 184, 392, 113, 33) $Label1 = GUICtrlCreateLabel("4", 40, 32, 244, 65) $Label2 = GUICtrlCreateLabel("3", 32, 112, 140, 65) $Label3 = GUICtrlCreateLabel("2", 32, 200, 140, 65) $Label4 = GUICtrlCreateLabel("1", 32, 288, 140, 65) $Label5 = GUICtrlCreateLabel("0", 32, 376, 140, 125) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Run("Notepad.exe") Case $Button1 Run("files\executable\step1.exe") Case $Button2 ;; Do something EndSwitch WEnd Add Case statements for the other two buttons as well. George Question 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!" Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 22, 2009 Share Posted December 22, 2009 Do tou read too fast or not at all? What you need is in that help file several times. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("0000", 323, 512, 192, 124) $Button1 = GUICtrlCreateButton("Steg 1", 184, 128, 113, 33) $Button2 = GUICtrlCreateButton("Steg 2", 184, 216, 113, 33) $Button3 = GUICtrlCreateButton("Steg 3", 184, 304, 113, 33) $Button4 = GUICtrlCreateButton("Steg 4", 184, 392, 113, 33) $Label1 = GUICtrlCreateLabel("4", 40, 32, 244, 65) $Label2 = GUICtrlCreateLabel("3", 32, 112, 140, 65) $Label3 = GUICtrlCreateLabel("2", 32, 200, 140, 65) $Label4 = GUICtrlCreateLabel("1", 32, 288, 140, 65) $Label5 = GUICtrlCreateLabel("0", 32, 376, 140, 125) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Run("Notepad.exe") Case $Button1 Run("files\executable\step1.exe") Case $Button2 ;; Do something EndSwitch WEnd Add Case statements for the other two buttons as well. thx man love you (Not in a gay way) Your the best the program works now Link to comment Share on other sites More sharing options...
failedtocompile Posted December 22, 2009 Share Posted December 22, 2009 thx man love you (Not in a gay way) Your the best the program works now /giggle Link to comment Share on other sites More sharing options...
Guest AX5 Posted December 22, 2009 Share Posted December 22, 2009 Now i did int get an answer to my other problem. I have this script and i want it to change the Procces speed on a specific program In the slide bar i want so you can change the speed from 1 - 10 and make the speed use a program to do this on and event make it use Add speed button #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Speed ", 230, 179, 253, 154) $Input1 = GUICtrlCreateInput("C:\wer35.exe", 40, 40, 150, 21) $Slider1 = GUICtrlCreateSlider(55, 66, 121, 30) $Add = GUICtrlCreateButton("Add Speed", 65, 112, 100, 28) $Pic1 = GUICtrlCreatePic("img/soft01-s.jpg", 0, 0, 230, 177, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now