litlmike Posted March 20, 2007 Share Posted March 20, 2007 (edited) Hello everyone.I would like to create a Football Play Book Editor (not Soccer). It would entail:GUI that user can create playsAbility to Save PlaysAbility to Print PlaysThis helps a Football team build a playbook and design offensive, defensive, and special teams plays. If you are unfamiliar, you can see an example of this type of program here: http://www.playmakerpro.com/playmaker.htmlI will have a lot of questions along the way, but I want to start out simple first.First Question:How will the user interact with the GUI? Do I have to create a number of graphics that the user can insert (which limits what the user can create), or is it possible to let them draw freely like in Microsoft Word's drawing tool (infinite possibilities)? If so, how?This is my first attempt at something like this, and I really do not know which direction to take, so ANY help is appreciated.Thanks in Advance****************EDIT**********March 23, 2007 10:30 AMAdding Script I am working onDownload to View the Package here:****************************** Edited March 21, 2007 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
November Posted March 20, 2007 Share Posted March 20, 2007 Hello everyone.I would like to create a Football Play Book Editor (not Soccer). It would entail:GUI that user can create playsAbility to Save PlaysAbility to Print PlaysThis helps a Football team build a playbook and design offensive, defensive, and special teams plays. If you are unfamiliar, you can see an example of this type of program here: http://www.playmakerpro.com/playmaker.htmlI will have a lot of questions along the way, but I want to start out simple first.First Question:How will the user interact with the GUI? Do I have to create a number of graphics that the user can insert (which limits what the user can create), or is it possible to let them draw freely like in Microsoft Word's drawing tool (infinite possibilities)? If so, how?This is my first attempt at something like this, and I really do not know which direction to take, so ANY help is appreciated.Thanks in AdvanceWell... looks kind of hard (very, ultra hard 2 me) to do!Use Scite and the is a Gui Design program.Thou try to create the GUI, ideas would come up with time!I saw the program, and as far i could understand... hard to do...Cheers and good luck!maybe i could help you best with some code already :S Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
litlmike Posted March 20, 2007 Author Share Posted March 20, 2007 Well... looks kind of hard (very, ultra hard 2 me) to do!Use Scite and the is a Gui Design program.Thou try to create the GUI, ideas would come up with time!I saw the program, and as far i could understand... hard to do...Cheers and good luck!maybe i could help you best with some code already :SYea it could be very hard, I have no idea, since I have never tried this in AutoIt before. Here is why I didn't provide code, I don't even know what direction to go with this, meaning would the background be just a GUI with some buttons that toggle graphics? Or is there like a COM object or something that I can insert for the "background"? _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
_Kurt Posted March 20, 2007 Share Posted March 20, 2007 Hey, this is actually a great idea (even I could use it for my football team ). It's definately do-able, except the print function might be a hassle. Use GUICtrlCreateGraphic, GUICtrlSetPos, GUICtrlSetGraphic, Or maybe instead of graphics, use image files. Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
litlmike Posted March 20, 2007 Author Share Posted March 20, 2007 Hey, this is actually a great idea (even I could use it for my football team ). It's definately do-able, except the print function might be a hassle. Use GUICtrlCreateGraphic, GUICtrlSetPos, GUICtrlSetGraphic, Or maybe instead of graphics, use image files.KurtThat is good info to have. So what is the difference between a graphic or image file? _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
jvanegmond Posted March 20, 2007 Share Posted March 20, 2007 (edited) That is good info to have. So what is the difference between a graphic or image file?Graphics are more dynamic, but are slower and harder to make. Image files are fast, but do not offer much flexibility. Edited March 20, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
seandisanti Posted March 20, 2007 Share Posted March 20, 2007 i like this idea, once i get back to my desk computer(i'm on a training computer helping some temps right now) i'll test out a couple of ideas that i have. Link to comment Share on other sites More sharing options...
litlmike Posted March 20, 2007 Author Share Posted March 20, 2007 (edited) Glad to see there is some interest in this, maybe when it is all done I will post for everyone to download. I have been working on this for awhile, and I got a basic version started. The only thing it can do right now, is create circles and squares to represent the offense and defense. Press the button, then click where you want it to go. Maybe someone can tell me why the squares/circles do not get created in the location the mouseclick occurs? It looks like it adds 100 to the x,y coords. ***EDIT*** Forgot to post code: expandcollapse popup#include <GUIConstants.au3> #Include <Misc.au3> GUICreate("Football Play Maker", 800,800,100,100) $Graphic1 = GUICtrlCreateGraphic ( 100, 100, 600, 600 ) GUICtrlSetBkColor ( -1 , 0x7FFF00) $Square = GUICtrlCreateButton ("Square", 50, 100) $Circle = GUICtrlCreateButton ("Circle", 50, 150) GUISetState() Do $msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit Case $Square Mouse_Is_Pressed () $a = GetPos() Draw_Square () Case $Circle Mouse_Is_Pressed () $a = GetPos() Draw_Circle () EndSwitch Until $msg=$GUI_EVENT_CLOSE Func Draw_Square () ;~ MsgBox (0, "", "a[0] = " & $a[0] & @CRLF & "a[1] = " & $a[1], 1) $w = 25 $h = $w GUICtrlSetGraphic ( $Graphic1, $GUI_GR_RECT, $a[0], $a[1], $w, $h) GUICtrlSetGraphic ( $Graphic1, $GUI_GR_REFRESH ) EndFunc Func Draw_Circle () ;~ MsgBox (0, "", "a[0] = " & $a[0] & @CRLF & "a[1] = " & $a[1], 1) $w = 25 $h = $w GUICtrlSetGraphic ( $Graphic1, $GUI_GR_ELLIPSE, $a[0], $a[1], $w, $h) GUICtrlSetGraphic ( $Graphic1, $GUI_GR_REFRESH ) EndFunc Func GetPos() $a=GUIGetCursorInfo() Return $a EndFunc Func Mouse_Is_Pressed () $s_hexKey = 01 Do Sleep (10) Until _IsPressed ( $s_hexKey ) EndFunc Edited March 21, 2007 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted March 20, 2007 Share Posted March 20, 2007 I Believe with the ease of creating pictures and such you can then use http://www.autoitscript.com/forum/index.php?showtopic=31705To simply allow people to drag pictures across the GUI Link to comment Share on other sites More sharing options...
litlmike Posted March 21, 2007 Author Share Posted March 21, 2007 I Believe with the ease of creating pictures and such you can then use http://www.autoitscript.com/forum/index.php?showtopic=31705To simply allow people to drag pictures across the GUII really like what Gary put together there in that post, but I do not know what I need to take away from that script to implement into this script. It looks like I need the DragControls.au3, but what do I need in my script to "activate" the dragging ability?What does everyone think about using graphics versus images in this? _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
litlmike Posted March 21, 2007 Author Share Posted March 21, 2007 Small Breakthrough... Based upon some of your suggestions, and Gary Frost's Gui Control Drag, I created a Simple GUI using graphics. I started with just a simple Offensive Formation (I formation). Give it a try, and give me some feedback please. I will post in the original post. _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
litlmike Posted March 21, 2007 Author Share Posted March 21, 2007 About storing formations for the user to choose from, I am not really even sure what the best way to store the different formations. Should they be in seperate files that are parsed by some function? Should they just be functions themselves? _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
litlmike Posted March 22, 2007 Author Share Posted March 22, 2007 Is this too many questions for one post? lol Should I be breaking down each question into different posts to make it easier to focus on one thing at a time? I just assumed since it was the same script to keep it all in one post. Thanks. _ArrayPermute()_ArrayUnique()Excel.au3 UDF 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