ritblitz Posted September 25, 2011 Share Posted September 25, 2011 I am new to AutoIt scripting. What i was looking for was a scipt or a advise on how to go about writing one to write flowcharts. Was looking at something to work like in http://watts.cs.sonoma.edu/SFC/index.html SFC seems to be a good way to create flowcharts without much complexity. How can i do this in AutoIt. Please advise. Link to comment Share on other sites More sharing options...
Ramzes Posted September 25, 2011 Share Posted September 25, 2011 Welcome to the AutoIt forums. If you want help with an idea then use some chat forum.Here you ask help regarding the actual code that you have problems with. Further more, the code should be reduced to an absolute minimum, still reproducing the problem.. Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 25, 2011 Moderators Share Posted September 25, 2011 Ramzes,I would not start quoting trancexx if I were you - you never know where it might end up. Besides I see nothing wrong with the OP's question - asking how to approach an AutoIt script is a perfectly legitimate query for this forum. ritblitz,AutoIt can certainly draw the simple shapes you are looking for - however I fear that the interface to permit these shapes to be drag, drop and resizeable might be a bit complicated for a first project. But by all means have a go at it - "who dares wins" as the motto goes. You might find this a help in deciding how to start:#include <GuiConstantsEx.au3> #include <WindowsConstants.au3> Global Const $SC_MOVE = 0xF010 $hGUI = GUICreate("Test", 300, 200) $cLabel = GUICtrlCreateLabel("Move me", 100, 50, 60, 20) GUICtrlSetBkColor(-1, 0x00FF00) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $GUI_EVENT_PRIMARYDOWN _ControlMove($cLabel) EndSwitch WEnd Func _ControlMove($cID) Local $aCurPos = GUIGetCursorInfo() If @error Then Return False If $aCurPos[4] = $cID Then GUICtrlSendMsg($cID, $WM_SYSCOMMAND, BitOR($SC_MOVE, $HTCAPTION), 0) EndIf EndFunc ;==>_ControlMoveYou know where we are if you run into difficulties. 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...
Valuater Posted September 25, 2011 Share Posted September 25, 2011 Nice One Melba! 8) Link to comment Share on other sites More sharing options...
water Posted September 25, 2011 Share Posted September 25, 2011 Do you have a program installed that can display flow charts?IIRC there was a user with a similar problem who he wanted to create a mind map. He had MS Visio installed and was able to create an XML file with an Autoit scrip which then could be opened and displayed by Visio.Just my 0.02$ My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki 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