Jump to content

Search the Community

Showing results for tags 'make'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 2 results

  1. Hi folks! I bring this little executable file and an AutoIt wrapper for it to generate documents (bills and incomes) by sending variables (strings, numbers or even arrays) to a PHP script you wrote. This is the syntax: themecli.exe <input> <output> <vars> input: The input PHP file (the extension does not need to be .php, it can be anything, like .html, .txt, .bin, .wtf...), relative to @ScriptDiroutput: The output HTML file to save, relative to @ScriptDirvars: A base64-encoded JSON with all the variables (hard? Don't worry! See below:)Looks confusing? Well, don't worry. That's why we have a wrapper! Example, if we have this file "page.php": Hello, <?=$user?>! How are you?And do this with AutoIt (using my JSONgen UDF [ http://www.autoitscript.com/forum/index.php?showtopic=173797 ] which is already included in AutoPHP): #include 'inc\autophp.au3' $ojson = New_JSON() JSON_AddElement($ojson, 'user', 'John Doe') $json = JSON_GetJSON($ojson) AutoPHP('page.php', 'hello.txt', $json)Note that you don't need to base64-encode it. After running it, we will see a file named "hello.txt", and the content is: Hello, John Doe! How are you?On the PHP file you can also use loops and everything else supported in PHP4 (since it uses Bambalam PHP Compiler, it does not support PHP5 yet). On the zip file there is an example of how to use it with loops. License: same Bambalam PHP Compiler license: Tip: If you use wkhtmltox, you'll be able to convert the generated HTML file into PDF with just a few lines! See here: https://www.autoitscript.com/forum/topic/173611-wkhtmltox-autoit-objectclass-to-convert-html-filespages-into-pdf-and-images/ Download: AutoPHP.zip full script, dependencies and examples (everything you need to start using AutoPHP) phpthemecli-src.zip Themecli binary and source (Themecli is the tool that AutoPHP uses to run PHP code - since it's already included on AutoPHP UDF, you don't need to download it, unless you want to use it with another programming language)
  2. Hello readers of this post I'm planning to make a sort of script engine via autoit. It will read text files as 'scripts' with my self made scripting language. (but i'm going to make my own extension for the 'scripts') i'm thinking about " nameOfFile.GeekScript " or something... how it works: files with the extension ".geekscript" will be opened with my "script-engine.exe" made in autoit. -script-engine.exe reads the script and breaks it apart in sentences by @CRLF. -every sentence will be spitted up to 'words' (or commands) that will be recognized by my script-engine. -the engine recognizes if you want to make a variable when it reads a word followed by '=' and after that a string or number (or calculations). and here i'm stuck, if the script engine reads this for example: ----------------------------------------------------------------------------- ABC = 456 DEF = "this is a test" & ABC + 123 ----------------------------------------------------------------------------- for the variable "DEF", it must calculate the result for that variable and store that in a dictionary object or something. i tough of using autoit's "execute" or "eval" function to see what the output would be but unfortunately if by coincidence the variable exists in the 'script-engine source code' eval or execute will use that variable... this is what i mean: ----------------------------------------------------------------------------- Func = 456 ----------------------------------------------------------------------------- if i use eval or execute for this string: eval("func = 456") then it would give an error or it won't work. same for variables that exist in the 'script-engine autoit code'... does anybody know if there is a way for calculating strings like eval does, but don't use the variables made in the autoit script?
×
×
  • Create New...