BuckMaster
Active Members-
Posts
57 -
Joined
-
Last visited
-
Days Won
2
BuckMaster last won the day on December 2 2012
BuckMaster had the most liked content!
About BuckMaster
- Birthday 04/12/1992
Profile Information
-
Location
California
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
BuckMaster's Achievements
Wayfarer (2/7)
37
Reputation
-
mLipok reacted to a post in a topic:
Form Builder beta
-
arqstaad reacted to a post in a topic:
Form Builder beta
-
ibrahem reacted to a post in a topic:
Form Builder beta
-
jcmackie reacted to a post in a topic:
Form Builder beta
-
namlunthkl reacted to a post in a topic:
Form Builder beta
-
MattHiggs reacted to a post in a topic:
Form Builder beta
-
argumentum reacted to a post in a topic:
Form Builder beta
-
kcvinu reacted to a post in a topic:
Form Builder beta
-
sdfaheemuddin reacted to a post in a topic:
Form Builder beta
-
EarlDPearl reacted to a post in a topic:
Form Builder beta
-
I overstepped 101 when i was making the language file so its missing as of now, and I will fix 151 so it updates. For text that doesn't fit for certain languages I will add a tool tip so you can still read it. I have noticed how the GUI cuts off at the bottom in full screen mode but i cant figure out a way to fix it, I think it has something to do with the GUI having a menu because I set the main GUI size to the desktop height and the menu adds another 20 pixels, but changing the size of the GUI to anything less than the desktop height causes the explorer bar to show up. In the next version the replace GUI and Settings GUI will be in the language file. I screwed up right there, in the source you can change $GUIData on line 5934 to $WinTitles and it will work. If a control is selected and you press delete it is going to delete it, cant you perform the same action using backspace? In the next version you will be able to set the control handle prefix in settings. @Autolaser - Thank you for translating the language file to German
-
Update v1.0.8 - Somehow a main function got deleted causing the script to crash on some changes - Fixed some issues with updating Languages Form Builder Source.zip Form Builder.zip
-
Its now attached to my first post
-
I linked to my previous post in my first post, are you saying I should attach the files to my first post?
-
Update v1.0.7 - Help File Look-up hotkey changed to Ctrl+B - Replace hotkey changed to Ctrl+H - Changes to $SCN_MODIFIED so only text events are notified - Bookmarks added, Ctrl+M to add or delete a Bookmark from the current line - Edit -> Bookmarks -> Set Bookmark changes the currently selected Bookmark - Edit -> Clear Current Bookmarks deletes only the currently selected Bookmark - Allows you to change foreground and background colors of Bookmarks - Added F2 hotkey for Next Bookmark - Added Shift+F2 hotkey for Previous Bookmark - Fixed a bug that made it so script annotation did not show up for some people - Script errors and warnings now add a Bookmark on each line - Ctrl+E hotkey added to clear all Bookmarks and Annotations - Minor GUI tweaks - Fixed a bug with the GUI Style undo action - Undo and Redo actions for GUI windows will now update the window properties if the GUI is selected - F4 Hotkey no longer switches modes, switching modes is now F10 - F4 is to toggle next error or warning message, works like it does in SciTe, bookmarks the line and highlights the error in the console - Shift+F4 Hotkey added to toggle previous error or warning message - Shift+F5 Hotkey added to clear script output - Ctrl+F5 Hotkey added as SyntaxCheck Prod - Form Builder now performs a SyntaxCheck before entering GUI Mode and prompts on Error or Warning - Language Select Menu Added Settings -> Lanugage - Icons added to main menu - Languages added to all new menu items and msgbox's - Language Files updated for new data - Language Support added for Arabic, Chinese, Dutch, French, German, Hebrew, Japanese, Swedish, Thai, and Vietnamese [ Google Translate ] - Fixed bug with updating a language that made it look like ANSI and UTF-8 were both selected - Added redo button next to undo button - Font attribute buttons Bold, Italic, Underline and Strike-Out changed to labels Source has all resource files and non-standard includes now
-
I've got a couple things I want to finish before I release this next version, It should be up later today. I didn't know colored buttons caused issues but I found a couple topics on it saying its an internal issue that wont be fixed. So i guess I will just swap out the buttons with labels.
-
This is a problem I am having in my project Form Builder ever since I updated to the current AutoIt version, the Bold, Italic, Underline, and Strike-out font attribute buttons go invisible when I change the color to $InactiveColor or $ActiveColor, I added a black label behind the buttons so you can see where they should be, you can still click the buttons but they do not show up. Inactive and Active colors are declared as: $ActiveColor = 0x70CFF4 $InactiveColor = 0xE0E0E0 In the image below I commented out all of the lines that applied $InactiveColor to the bold button and it showed up ex. ;GUICtrlSetBkColor($FontBoldButton, $InactiveColor) These are the only changes I make to $FontBoldButton throughout my script GUICtrlSetFont($FontBoldButton, 8, 800, 0, "Georgia") GUICtrlSetState($FontBoldButton, $GUI_ENABLE) GUICtrlSetState($FontBoldButton, $GUI_DISABLE) GUICtrlSetBkColor($FontBoldButton, $InactiveColor) GUICtrlSetBkColor($FontBoldButton, $ActiveColor) GUICtrlSetResizing($FontBoldButton, 4+64+256+512) Does anyone know why this is happening?
-
BuckMaster reacted to a post in a topic:
Wrapper Error
-
Thank you! Updated my AutoIt3Wrapper.exe to the current beta and that fixed it.
-
I am having a problem compiling my script with resources added with the wrapper ever since I updated to the current release of AutoIt 3.3.10.2 The script still compiles but the resources do not show up. console output: +>17:23:57 Aut2exe.exe ended.rc:0 >17:23:57 Performing the Program Resource Update steps: !>17:23:57 Error: Failed to get script data from end of target file. Skipping resource update.rc:2 +>17:23:57 Created program:C:UsersCameronDesktopForm BuilderForm Builder.exe >Exit code: 0 Time: 59.188 Here is the part of my script that doesn't work #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=Icons\NewIcon_2.ico #AutoIt3Wrapper_Res_Description=Form Builder #AutoIt3Wrapper_Res_Fileversion=1.0.7.0 #AutoIt3Wrapper_Res_LegalCopyright=©2014 Cameron Wilson. All Rights reserved. #AutoIt3Wrapper_Res_Language=1033 #AutoIt3Wrapper_Res_File_Add=Images\AlignBottom.bmp, rt_bitmap, Align_Bottom #AutoIt3Wrapper_Res_File_Add=Images\AlignCenterHoriz.bmp, rt_bitmap, Align_CenterHoriz #AutoIt3Wrapper_Res_File_Add=Images\AlignCenterVert.bmp, rt_bitmap, Align_CenterVert #AutoIt3Wrapper_Res_File_Add=Images\AlignLeft.bmp, rt_bitmap, Align_Left #AutoIt3Wrapper_Res_File_Add=Images\AlignRight.bmp, rt_bitmap, Align_Right #AutoIt3Wrapper_Res_File_Add=Images\AlignTop.bmp, rt_bitmap, Align_Top #AutoIt3Wrapper_Res_File_Add=Images\SpaceHeight.bmp, rt_bitmap, Space_Height #AutoIt3Wrapper_Res_File_Add=Images\SpaceHeightCenter.bmp, rt_bitmap, Space_HeightCenter #AutoIt3Wrapper_Res_File_Add=Images\SpaceLeft.bmp, rt_bitmap, Space_Left #AutoIt3Wrapper_Res_File_Add=Images\SpaceWidth.bmp, rt_bitmap, Space_Width #AutoIt3Wrapper_Res_File_Add=Images\SpaceWidthCenter.bmp, rt_bitmap, Space_WidthCenter #AutoIt3Wrapper_Res_File_Add=Images\ResizeAuto.bmp, rt_bitmap, Resize_Auto #AutoIt3Wrapper_Res_File_Add=Images\ResizeAuto_Disable.bmp, rt_bitmap, Resize_Auto_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeAuto_Selected.bmp, rt_bitmap, Resize_Auto_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeBottom.bmp, rt_bitmap, Resize_Bottom #AutoIt3Wrapper_Res_File_Add=Images\ResizeBottom_Disable.bmp, rt_bitmap, Resize_Bottom_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeBottom_Selected.bmp, rt_bitmap, Resize_Bottom_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeHCenter.bmp, rt_bitmap, Resize_HCenter #AutoIt3Wrapper_Res_File_Add=Images\ResizeHCenter_Disable.bmp, rt_bitmap, Resize_HCenter_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeHCenter_Selected.bmp, rt_bitmap, Resize_HCenter_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeLeft.bmp, rt_bitmap, Resize_Left #AutoIt3Wrapper_Res_File_Add=Images\ResizeLeft_Disable.bmp, rt_bitmap, Resize_Left_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeLeft_Selected.bmp, rt_bitmap, Resize_Left_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeLockHeight.bmp, rt_bitmap, Resize_LockHeight #AutoIt3Wrapper_Res_File_Add=Images\ResizeLockHeight_Disable.bmp, rt_bitmap, Resize_LockHeight_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeLockHeight_Selected.bmp, rt_bitmap, Resize_LockHeight_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeLockWidth.bmp, rt_bitmap, Resize_LockWidth #AutoIt3Wrapper_Res_File_Add=Images\ResizeLockWidth_Disable.bmp, rt_bitmap, Resize_LockWidth_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeLockWidth_Selected.bmp, rt_bitmap, Resize_LockWidth_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeRight.bmp, rt_bitmap, Resize_Right #AutoIt3Wrapper_Res_File_Add=Images\ResizeRight_Disable.bmp, rt_bitmap, Resize_Right_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeRight_Selected.bmp, rt_bitmap, Resize_Right_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeTop.bmp, rt_bitmap, Resize_Top #AutoIt3Wrapper_Res_File_Add=Images\ResizeTop_Disable.bmp, rt_bitmap, Resize_Top_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeTop_Selected.bmp, rt_bitmap, Resize_Top_Selected #AutoIt3Wrapper_Res_File_Add=Images\ResizeVCenter.bmp, rt_bitmap, Resize_VCenter #AutoIt3Wrapper_Res_File_Add=Images\ResizeVCenter_Disable.bmp, rt_bitmap, Resize_VCenter_Disable #AutoIt3Wrapper_Res_File_Add=Images\ResizeVCenter_Selected.bmp, rt_bitmap, Resize_VCenter_Selected #AutoIt3Wrapper_Res_File_Add=Images\AutoAlign.bmp, rt_bitmap, AutoAlign #AutoIt3Wrapper_Res_File_Add=Images\AutoAlign_Disable.bmp, rt_bitmap, AutoAlign_Disable #AutoIt3Wrapper_Res_File_Add=Images\Grid.bmp, rt_bitmap, Grid #AutoIt3Wrapper_Res_File_Add=Images\Grid_Disable.bmp, rt_bitmap, Grid_Disable #AutoIt3Wrapper_Run_AU3Check=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Did something change that I'm not aware of? Any help would be appreciated, BuckMaster
-
Yes, I put Ctrl+H as help file look-up because i felt it was a little more intuitive but if Ctrl+H is usually used as replace I will use that, but for right now I don't think it will be very hard to go one key lower and hit B When I release the next version I'll try and round up all of the includes so you can run the source So just to make it clear it's not my application crashing, the windows explorer folder that the compiled exe is in closed? If your issue is only with windows explorer I don't think it was my program that caused the problem, After compiling a script Form Builder reopens the script but this shouldn't cause any problems with windows explorer. It has been removed as of now, eventually i want to try to add it again but its going to be a lot of work.
-
Update v1.0.6 Major script overhaul, I literally started over from scratch only adding parts of code from the old script that were solid. I don’t have a help file made as of now so I am going to explain all of the functionality in this post - Form Builder is no longer bi-directional, you now toggle between script mode and GUI mode using a button in the top right or F4 - The script no longer recompiles on every change but instead inserts changes into the script - Form Builder no longer cares about Event mode or GuiGetMsg mode - No more .gui files, you now edit .au3 scripts directly - Script edit is now a SciLexer control, includes syntax highlighting, folding, call tips, keywords, and inline error annotations. - Script output console is now at the bottom in script mode - Main GUI menu redone, most functions from SciTe have been added along with their hotkeys - All restrictions to editing the script have been removed - GDI+ and Graphic editors removed - Cleanup of script, stability greatly increased - Hotkeys no longer use _IsPressed they now use GUIAccelerator keys (with exception to a few) - Multiple scripts can be open - Form Builder buffers the open scripts and adds an asterisk * to scripts that have been modified - Rich Edit, GUIScrollbars, Dummy, and Updown are disabled for now until I can add them - GUI Menu controls cannot be created as of now but will be rendered in the editor - Undo and Redo actions in script mode and GUI mode added, the GUI undo and redo buffer is cleared switching between modes - The Undo and Redo buffers do not have a limit but are cleared when switching between modes or scripts - Undo and Redo actions do not work for controls that have no control handle - The Treeview now works as a Go to function for controls and functions in script mode - Form Builder now tries to preserve as much of the original content as possible, it will save whitespace in-between parameters and comments on controls - Treeview context menu reworked, much more responsive - Unicode support added File -> Encoding -> UTF-8 - Language support added, I added a couple of language files and used Google translate just so I could size my GUI's for different languages, I do not support what those language files say - Selecting a GUI in the Treeview in GUI mode will allow you to change the GUI's Handle, Position, Background Color, State, Cursor, Font, Font Size and Font Attributes - Auto Declare is no longer hiding in the settings, it is now on the top right and is a toggle between Off, Global and Local - Help File Lookup added (Ctrl + H), allows you to search selected text in the help file, Any variable will be searched and the first result will be displayed, any string will be searched as a keyword in the index - Added current script line, column, and selection length in the bottom left - Standard undeclared style constants are checked before script execution and the script will prompt if an undefined style constant is found - You can now toggle script whitespace, EOL characters, line numbers, margins and output in the View menu - View -> Toggle All Folds works as it does in SciTe, only base level folds are changed and the first fold found determines whether to expand or contract - Form Builder Settings redone - Bugs with submitting data and control selection have been fixed - Fixed problems with frequently called repetitive functions causing issues with large scripts - Fixed bugs with B, I, U and S font attribute buttons getting stuck and called when enter was pressed Hotkeys Ctrl + N - New Blank Script Ctrl + G - New GUI Script Ctrl + O - Open Script Ctrl + Shift + S - Save As Ctrl + S - Save Esc - Close Open Script Alt + F4 - Exit Ctrl + Z - Undo Ctrl + Y - Redo Ctrl + X - Cut Ctrl + C - Copy Ctrl + V - Paste Ctrl + A - Select All Ctrl + W - Clear inline script annotation Ctrl + F - Find Ctrl + F3 - Find Next Shift + F3 - Find Previous (doesn’t work yet) Ctrl + B - Replace F5 - Go Alt + F5 - Beta Run F7 - Build Ctrl + F7 - Compile F11 - Full screen F8 - Toggle Show/Hide Script Output Ctrl + I - Open Include Ctrl + H - Help File Lookup F1 - AutoIt Help File Ctrl + D - Duplicate Control Delete - Delete Control Ctrl + Shift + 8 - Toggle Show/Hide Script Whitespace Ctrl + Shift + 9 - Toggle Show/Hide Script EOL characters Ctrl - GUI Mode multicontrol selection F4 - Switch Modes Basic GUI Mode How To Create a Control - click a control on the left - click in the GUI you wish to add the control Left Click: Click and drag to auto resize the control Right Click: Creates the control at a standard size Select a Control - click inside the control or select it in the treeview Change a controls Data - First select the control - modify the controls data on the right, press enter to submit changes state, cursor, font and resizing update when you change the data - when modifying the data parameter the script recognizes if there is a variable in the data and will add quotes accordingly ex. data parameter = $data, End result in script: GUICtrlCreateButton($data, 50, 50, 100, 20) ex. data parameter = data, End result in script: GUICtrlCreateButton("data", 50, 50, 100, 20) ex. data parameter = "data"&$data, End result in script: GUICtrlCreateButton("data"&$data, 50, 50, 100, 20) Applying an Image to a control - select a control - control styles must be applied to some controls before adding an image - click the ... button next to the Image input in the Control Properties area in the bottom right - select the image you want to display, allows jpg, bmp, gif, ico and dll files - selecting a dll will open another prompt to choose which resource to display Control Grouping - multiple controls must be selected - press the group controls button - control grouping allows you to resize and move multiple controls at the same time, as of now groups are deleted when leaving GUI mode I only have a couple odds and ends to finish up before everything should be complete, I need to add Undo and Redo actions for copying and duplicating controls and a couple other minor things, eventually I want to try to add all of the UDF controls as well. If people are willing to translate the language file I would be very greatful, the ones I have right now are from Google translate, I only used them for testing and have no idea what they say. I want to thank Kip, Prog@ndy, Isi360 and all of the other contributors on this forum, without you guys i dont think i could have written this script. Please post any comments, problems or suggestions, BuckMaster * I only used one "magic number" on my main close case statment, only for faster locating, and i dont care.
-
Scintilla DLL with AUtoIT?
BuckMaster replied to TheAutomator's topic in AutoIt General Help and Support
Great UDF by kip '?do=embed' frameborder='0' data-embedContent>> The previous versions require an include that I couldnt find but on page 4 ProgAndy attached the version that worked for me page-4'>page-4 A good starting point would be to read over Kips UDF and see how he did it. The documentation for the SciLexer.dll can be found here as well, http://www.scintilla.org/ScintillaDoc.html -
Creating a simple script-engine with autoit.
BuckMaster replied to GeekIT's topic in AutoIt General Help and Support
I am trying to do something very similar in one of my scripts, I like how jdelaney went about it but for what I am doing I cannot declare the variables before. I came up with this real quick and it works for what you are trying to do, there are a couple ways you could improve it because right now it will confuse similar variable names ex. ABC and ABCD I can think of a couple ways of fixing this but i think you can figure it out #include <Array.au3> Dim $TestScript = 'ABC = 456' & @CRLF & _ 'DEF = "this is a test" & ABC + 123' & @CRLF & _ 'myVar = 1 + -5 * 8 / 7 - 5 & "test" & -1 - -10 & "help!!!"' & @CRLF & _ 'Func = 456' & @CRLF ProcessScript($TestScript) Func ProcessScript($hScript) Local $hSplit = StringSplit($hScript, @CRLF, 1) Local $Variables[1] = [0], $Data[1] = [0] For $i = 1 to $hSplit[0] Step 1 Local $aString $aString = StringRegExp($hSplit[$i],"(.*)\s=\s(.*)",3) If IsArray($aString) Then _ArrayAdd($Variables, $aString[0]) _ArrayAdd($Data, $aString[1]) $Variables[0] += 1 $Data[0] += 1 EndIf Next For $i = 1 to $Variables[0] Step 1 ConsoleWrite("+ Variable["&$i&"] = "&$Variables[$i]&@CRLF) ConsoleWrite("> Data["&$i&"] = "&$Data[$i]&@CRLF) Next For $i = 1 to $Data[0] Step 1 Local $ProcessData = $Data[$i] For $c = 1 to $Variables[0] Step 1 If StringinStr($Data[$i], $Variables[$c]) Then $ProcessData = StringReplace($Data[$i], $Variables[$c], $Data[$c]) EndIf Next ConsoleWrite("- Processed Data["&$i&"] = "&Execute($ProcessData)&@CRLF) Next EndFunc -
Your problem is you cannot use Event Mode and GUIGetMsg at the same time. If the GUIOnEventMode option is set to 1 then the return from GUIGetMsg is always 0 and the @error is set to 1. Your progress function looks like it will work right if you make those changes. BuckMaster
-
Hey guys sorry for not being on the forums in a while, I've been busy with school and my business. I have noticed that this script is extremely cluttered, crashes sometimes and does not run perfectly, Because of that I have started writing a new version that will remove the bi-directionality of the code and will make it more of a toggle between script mode and GUI edit mode, I plan to change the main framework of GUI editing so it can work better as a script editor. I have removed some of the usless features I added for the hell of it and I am trying to focus on performance and stability in this new version. So far i have removed the richedit control for the script area and have replaced it with a Scilexer control, now i just need to work on parsing autoit gui efficiently and updating control movements in the script. BuckMaster