Jump to content

Recommended Posts

Posted (edited)

Here's the beginnings of SFML (the Simple and Fast Multimedia Library) for AutoIT. 

This library provides a wealth of features for developing games and multimedia applications.  You can read up more about SFML here -> http://www.sfml-dev.org.  It uses OpenGL as the renderer for 2D graphics such as sprites, so it's performance is quite good.

Currently my interest is in 2D sprite engines, so my focus is on the sprite and window APIs.  This is the precursor to another separate UDF I'm working on and will release soon.  If there's any interest I'll flesh out more of this API for the community.

CSFML is the "C" binding / API for SFML, and it's this API that I'm building this UDF against.

REQUIREMENTS:

  • AutoIt3 3.2 or higher

LIST OF FUNCTIONS (so far):

  • _CSFML_Startup
  • _CSFML_Shutdown
  • _CSFML_sfClock_create
  • _CSFML_sfClock_getElapsedTime
  • _CSFML_sfClock_restart
  • _CSFML_sfVector2f_Constructor
  • _CSFML_sfVector2f_Update
  • _CSFML_sfVector2f_Move
  • _CSFML_sfColor_Constructor
  • _CSFML_sfColor_fromRGB
  • _CSFML_sfSizeEvent_Constructor
  • _CSFML_sfEvent_Constructor
  • _CSFML_sfVideoMode_Constructor
  • _CSFML_sfRenderWindow_create
  • _CSFML_sfRenderWindow_setVerticalSyncEnabled
  • _CSFML_sfRenderWindow_isOpen
  • _CSFML_sfRenderWindow_pollEvent
  • _CSFML_sfRenderWindow_clear
  • _CSFML_sfRenderWindow_drawText
  • _CSFML_sfRenderWindow_drawSprite
  • _CSFML_sfRenderWindow_display
  • _CSFML_sfRenderWindow_close
  • _CSFML_sfTexture_createFromFile
  • _CSFML_sfSprite_create
  • _CSFML_sfSprite_destroy
  • _CSFML_sfSprite_setTexture
  • _CSFML_sfSprite_setPosition
  • _CSFML_sfSprite_setRotation
  • _CSFML_sfSprite_rotate
  • _CSFML_sfSprite_setOrigin
  • _CSFML_sfFont_createFromFile
  • _CSFML_sfText_create
  • _CSFML_sfText_setString
  • _CSFML_sfText_setFont
  • _CSFML_sfText_setCharacterSize
  • _CSFML_sfText_setFillColor

EXAMPLE:

Currently I only have one example, which is the "Short example" described in the CSFML API documentation, plus some extra features.  Essentially a window (GUI) allowing you to move a sprite around with the keyboard (including rotation).

DOWNLOAD:

You can download this UDF, including the example and associated files, from the following GitHub page:

https://github.com/seanhaydongriffin/CSFML-UDF

Cheers,

Sean.

Edited by seangriffin

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted

Nice to see you again on line :)

Good work.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Thanks mLipok.  I took a long break from posting in the forums due to some disagreements I had with moderators, after which I got super busy at work.  I still love AutoIT and am still a heavy user of it in my professional line of work.  But wish I had more time on my hands to develop more fun UDFs.  I have a couple of fun UDFs to publish though.  Stay tuned :-)

Edited by seangriffin

Cheers, Sean.

See my other UDFs:

  Reveal hidden contents
Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

  Reveal hidden contents
Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Posted

@seangriffin long time ago I asked you about GoogleAPI . Yesterday I   PM to you again this question .
Could you check if your messanger works correctly ? Maybe you have turned them off ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
×
×
  • Create New...