Jump to content
Sign in to follow this  
ritblitz

Flow charting

Recommended Posts

ritblitz

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.

Share this post


Link to post
Share on other sites
Ramzes

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]

Share this post


Link to post
Share on other sites
Melba23

Ramzes,

I would not start quoting trancexx if I were you - you never know where it might end up. :graduated:

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   ;==>_ControlMove

You know where we are if you run into difficulties. :)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Valuater

Nice One Melba!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
water

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 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×