User Feedback

Similar Content

Hi All,
Trying to convert a number to binary zeros and ones but I'm getting a result I don't understand and looks more like hex than binary.
Here's my basic code:
$myNum = 11
$myNumBin = Binary($myNum)
MsgBox(0, "Binary result", $myNumBin)
What I want is "1011", what I get is 0x0B000000.
Thanks!

Hello,
I´m using AutoIt for a long time not only to automate applications but to develop complex stand-alone applications. I am particularly annoyed by the fact that the logic in AutoIt is difficult to separate from the presentation and the standard GUI elements are very inflexible. If you want to create something more sophisticated, you have to use GDI and write many lines for simple effects or animations.
With these thoughts in mind, I looked around for alternatives and unfortunately found nothing that corresponded to my ideas. Therefore, I have thought of a different solution. I have created this framework in order to separate the logic from the presentation and to use HTML & CSS in my GUI to the full extent.
Goals of the Framework
MVC development with AutoIt
HTML & CSS GUI in AutoIt
Better and more modern package system(UDF) like npm
CLI support like Laravel Artisan
faster and more structured application development
roma() is strongly inspired by Laravel PHP Framework so Laravel users will notice many similarities.
Support
Unfortunately, I do not have much time for the project at the moment. So I thought to myself, I share it and ask you for support.
Content
The framework primarily serves for the development of stand-alone applications.
All necessary settings are preconfigured. You can start immediately with the logic or the view
All settings are in one place
The logic(controller) and the presentation are clearly separated from each other
Development with MVC structure
You can develop the GUI in realTimer without restarting AutoIt
GUI can be developed in HTML & CSS
Any graphic & video integration is possible (.png, .gif etc.). Also everything that is possible in HTML5 and CSS3
JavaScript & Frameworks are supported
Debug logs are created including console output
It is possible to work with multiple languages
All UDFs are contained in the framework. Reloading is not necessary
The AutoIt UDFs are also included in the Framework. This ensures that it workds correctly for different Versions of AutoIt
The framework also provides functions that are necessary for communication between AutoIt and HTML. For example, evaluation of form data (GET & POST) (documentation for this and examples follow.)
I also developed a template engine. (Similar to Laravel Blade)
The template engine supports if statements (would like to have help to make loops possible). In the Future I will publish a complete documentation of the template engine and examples.
Almost finished is a database package. This makes communication with databases an absolute child's play.
So that was it for once. If something else occurs to me, I will update the list.
Small Example
url: http://localhost:8080/welcome
;application.au3
;----------------------------------------------------------------------------------------------/
; Initial
;----------------------------------------------------------------------------------------------/
#include 'vendor\initial.au3'
func _roma_routes()
;----------------------------------------------------------------------------------------------/
; GET Request
;----------------------------------------------------------------------------------------------/
$route_get('welcome', 'welcome')
endfunc
;roma\controller\welcome.au3
;----------------------------------------------------------------------------------------------/
; Welcome Controller
;----------------------------------------------------------------------------------------------/
func controller_welcome()
Local $name = 'Eduard', $lastname = 'Tschernjaew'
;----------------------------------------------------------------------------------------------/
; passed variable to view (Array are possible)
;----------------------------------------------------------------------------------------------/
$toView('name', $name)
$toView('lastname', $lastname)
;----------------------------------------------------------------------------------------------/
; Return a View
;----------------------------------------------------------------------------------------------/
return $VIEW('welcome')
endfunc
<html>
<head>
<title>roma() - Template Test</title>
</head>
<body>
<h1>Hello {{ $name }} {{ $lastname }}</h1>
</body>
</html>
Download
The framework is under the Open-Source license.
Github: https://github.com/4ern/roma/
git clone https://github.com/4ern/roma.git
or download the ZIP.
Documentaion: https://github.com/4ern/roma/blob/master/README_EN.md
ToDo
[ ] Loop Funktion in Template.au3
[ ] CLI module like Laravel Artisan
[ ] Solution approaches, how the framework can be optimally compiled, so that in the compiled state all files are available.
[ ] Framework Tests & Bugfixes
roma() is still in development. Documentation and application examples will soon be available. I am looking forward to any Contributing.
Thanks for Feedback and Contributing

Hello hello!
As the title suggests, I am fairly new to AutoIt. In fact, I am new to scripting/coding in general! I've done a few Codecademy courses on CSS and HTML and perhaps Java though this was all a few years back. I've recently come across AutoIt and decided to give it a try since I do quite a few repetitive tasks on a daily basis. In the last couple of weeks I've managed to master (or at least get comfortable with) mouse clicks(left/right), window focus, sending key strokes, controls, and pixel search.
Now let's get to the topic.
At this point in time I've tried out a few simple IE scripts but I am having difficulty understanding some things and tying everything together into one tool.
Specifically, I am struggling with this little bit of code I got from DaleHohm in his IE examples thread. Post #3 (The last example.)
#include <IE.au3>
$sImgDir = "c:\foo\"; Please make certain this folder already exists (silent failure if not)
$sWebPage = "http://www.autoitscript.com/forum/index.php?"; webpage with images
$oIE = _IECreate()
_IENavigate($oIE, $sWebPage)
$oIMGs = _IETagNameGetCollection($oIE.document, "img")
; Loop through all IMG tags and save file to local directory using INetGet
For $oIMG in $oIMGs
$sImgUrl = $oIMG.src
$sImgFileName = $oIMG.nameProp
INetGet($sImgUrl, $sImgDir & $sImgFileName)
Next
I have a couple questions about the code above.
1) ".src" ".nameProp" What are these called? I figured out that I can change the .src to something like .href and it gets anything on the webpage with a .href tag but where can I learn more about these? I still haven't been able to figure out what ".nameProp" is for or what it does. Is there any documentation/list of all the different ".PurpleTextAfterAVariable" (Edit: Not sure why it's red in the above example, just checked SciTE and it's purple there) that I can use?
2) I understand that the code above gets every "For $oIMG in $oIMGs" on the page but how can I make it only get the first 5? I've tried doing a "count" and a "for" but I am unsure what to replace the "For...in" statement with to keep the script functional. Is there a way to limit the _IETagNameGetCollection function to only get a specific amount of tags?

Finally, the reason I can't just use the code as is.
The site I am trying to get images from works in this way:
A href= "Link-To-Picture.jpg"
Img src= "Link-To-Picture-thumbnail.jpg"
The script above downloads every single thumbnail from the image gallery which is great, it does what it's supposed to but I need the full resolution image.
After changing the script to get anything with an "A href" tag it does what I need it to do, it gets every single image in full resolution... along with every single one of the 80-100 extra files/links to other sites that are listed under an "A href" tag.

Now I've come up with two solutions but unfortunately, as I mentioned above. I don't know how to put my solution into the code above to make it work.
Solution 1) Only get the first 5 instances of "A href" on the page.
As mentioned above. I don't know how to do this.
Solution 2) Read the entire page, find "-Thumbnail.jpg" replace with ".jpg" and use the script as is.
I understand how to do a replace. All I am missing is how to do a replace within a field in the code of an IE page. I assume that I have to use the HTMLRead functions but how do I use/alter the data read?
I really hope all of this make sense and that someone here will be able to help me figure out a solution to my issue or at least answer one of my questions! I do have plenty more questions and I am sure that I'll have even more by the time I figure this out.
Thank you very much for your time!

This function does not appear to be returning the correct characters for a site, but the code of the page of the site shows the right characters? Can someone show me how to correct this, or is this a bug in the function? Actually I corrected it in my code, but just replacing these characters, but should they even be part of the string?
Here is the two strange characters:
â€œ
.â€.