Jump to content

Football PlayMaker


Should I use Graphics or Images in this Script?  

2 members have voted

  1. 1. Should I use Graphics or Images in this Script?

    • Graphics
      0
    • Images
      0
    • Both
      0


Recommended Posts

Hello everyone.

I would like to create a Football Play Book Editor (not Soccer). It would entail:

GUI that user can create plays

Ability to Save Plays

Ability to Print Plays

This 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.html

I 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 AM

Adding Script I am working on

Download to View the Package here:

******************************

Edited by litlmike
Link to comment
Share on other sites

Hello everyone.

I would like to create a Football Play Book Editor (not Soccer). It would entail:

GUI that user can create plays

Ability to Save Plays

Ability to Print Plays

This 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.html

I 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

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 :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

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 :S

Yea 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"?

Link to comment
Share on other sites

Hey, this is actually a great idea (even I could use it for my football team :whistle: ). 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

Hey, this is actually a great idea (even I could use it for my football team :whistle: ). 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

That is good info to have. So what is the difference between a graphic or image file?
Link to comment
Share on other sites

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:

#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 by litlmike
Link to comment
Share on other sites

I Believe with the ease of creating pictures and such you can then use http://www.autoitscript.com/forum/index.php?showtopic=31705

To simply allow people to drag pictures across the GUI

I 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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...