Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/11/2013 in all areas

  1. seangriffin

    Chrome UDF

    Chrome support for AutoIT is here! This UDF includes a Chrome Extension (http://developer.chrome.com/extensions/getstarted.html) and Native Messaging Host (http://developer.chrome.com/extensions/messaging.html#native-messaging-host) that integrate with a new Chrome UDF (Chrome.au3) to provide automation support for the Chrome browser. Several steps are required to install the Chrome Extension and Native Messaging Host prior to using the UDF. Please read the INSTALLATION section below. REQUIREMENTS: Windows XP 32-bit, Windows 7 32-bit or Windows 7 64-bit AutoIt3 3.2 or higher Chrome v29 or later (earlier versions are untested) AutoIT for Google Chrome (Chrome extension - see below) AutoIT Chrome Native Messaging Host (see below) INSTALLATION: STEP 1: Install the AutoIT extension into Chrome. Open the following link and download the file named AutoIT for Google Chrome.crx: https://docs.google.com/file/d/0B_6JmwNIIZ06enotRTVFNVdKOXM/edit?usp=sharing Note - you may be prompted to login with a Google account as this file is hosted on Google Drive. In your Chrome browser click on the Chrome menu, then select Tools -> Extensions. Drag the AutoIT for Google Chrome.crx file that you downloaded above, from Windows Explorer, into this page in Chrome. You should now see AutoIT for Google Chrome listed in the Extensions page in Chrome. Ensure that the Enabled checkbox next to AutoIT for Google Chrome is checked. Also make sure the Allow access to file URLs box is checked (very important to make EXAMPLE 2 work below)!! STEP 2: Install the AutoIT Chrome Native Messaging Host. Open the following link and download the file named autoit_chrome_native_messaging_host_install.exe: https://docs.google.com/file/d/0B_6JmwNIIZ06eDgxaVJPNUNxa28/edit?usp=sharing Note - you may be prompted to login with a Google account as this file is hosted on Google Drive. Run this file (autoit_chrome_native_messaging_host_install.exe). An installation window will display. Click the Install button. The window will display "Completed" and you can click the Close button. STEP 3: Install the Chrome UDF into AutoIT. Scroll to the DOWNLOAD section below, and save the Chrome.au3 file into your AutoIT Include folder (C:Program FilesAutoIt3Include). Please close your Chrome browser once you've completed these steps. LIST OF FUNCTIONS: EXAMPLE #1: This following example starts up Chrome and navigates to the URL http://www.december.com/html/demo/form.html. It then automatically completes the HTML form in this page (a series of text, radio, and checkbox input elements and select elements) and clicks the Send this survey button. The script waits for the next page to load, and retrieves the various elements from the page to the AutoIT console. chrome_example.au3 EXAMPLE #2: The following is an example of the automation of an offline HTML page (file URL). First, download the file named chrome_udf_example_2.html to your C: folder: https://docs.google.com/file/d/0B_6JmwNIIZ06SWduMjZGTVViNlU/edit?usp=sharing Then run the following AutoIT script: chrome_example_2.au3 Note that you must have checked the Allow access to file URLs box in the Chrome extension to make this work! DOWNLOAD: Latest Version - v0.5 (29/09/13) Chrome.au3
    1 point
  2. Hi! Today I want to show you my current AutoIt project: The ISN AutoIt Studio. The ISN AutoIt Studio is a complete IDE made with AutoIt, for AutoIt! It includes a GUI designer, a code editor (with syntax highlighting, auto complete & intelisense), a file viewer, a backup system, trophies and a lot more features!! Here are some screenshots: Here some higlights: -> easy to create/manage/public your AutoIt-projects! ->integrated GUI-Editor (ISN Form Studio 2) ->integrated - file & projectmanager ->auto backupfunction for your Projects ->extendable with plugins! ->available in several languages ->trophies ->Syntax highlighting /Autocomplete / Intelisense ->Dynamic Script ->detailed overview of the project (total working hours, total size...) And much more!!! -> -> Click here to download ISN AutoIt Studio <- <- Here is the link to the german autoit forum where I posted ISN AutoIt Studio the first time: http://autoit.de/index.php?page=Thread&threadID=29742&pageNo=1 For more information visit my Homepage: https://www.isnetwork.at So….have fun with ISN AutoIt Studio! PS: Sorry for my bad English! ^^
    1 point
  3. Biatu

    GlyphDesigner v1.00

    Finished up a new software today. It's called GlyphDesigner. It is designed to function as digital graph paper and will be used to create/import glyphs for the BlockArchitecture. GlyphDesigner v1.06 ChangeLog: v1.06 https://www.dropbox.com/s/pj9wgna67phqy2w/GlyphDesigner%20v1.06.exe -Few Optimizations. (Cut MilliSec/Frame in half) -Implemented Image Export (Png, jpg, bmp) -Hide Control Points on circles. Screenshots
    1 point
  4. nhardel, I have been looking for a way to hightlight individual cells in a ListView for a long time and never found anything really satisfactory. This is the best I have ever managed myself based on my GUIListViewEx UDF: Let me know what you think. M23
    1 point
  5. seangriffin

    Chrome UDF

    V0.5 of the UDF is now released. Python has now been replaced with AutoIT as the Native Messaging Host. This brings significant performance improvements over the previous Python solution, and also allows easier maintenance in the future with a complete AutoIT solution. If you already have a previous version of the UDF installated, then you must repeat Steps 1, 2 and 3 from the INSTALLATION section of the top post.
    1 point
  6. jchd

    Two processes sharing a file

    Ok, let's the C part alone for now. Compile these: ; reader #include <SQLite.au3> #include <SQLite.dll.au3> Local $aResult, $iRows, $iColumns, $iRval, $sDbName = @ScriptDir & '\test.db' _SQLite_Startup() If @error Then MsgBox(16, "SQLite Error", "SQLite.dll Can't be Loaded!") Exit -1 EndIf ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF) Local $hDskDb = _SQLite_Open($sDbName) ;this is the path ; Open a permanent disk database If @error Then MsgBox(16, "SQLite Error", "Can't open or create a permanent Database!") Exit -1 EndIf _SQLite_Exec($hDskDb, "pragma journal_mode=WAL;") ; do it once (but doing it more than once doesn't harm) _SQLite_SetTimeout($hDskDb, 1000*60*5) ; 5 minutes timeout! Local $aRow For $i = 1 To 400000 $iRval = _SQLite_QuerySingleRow($hDskDb, "SELECT count(*) FROM TESTTable;", $aRow) If $iRval <> $SQLITE_OK Then MsgBox(16, "SQLite SELECT Error: " & $iRval, _SQLite_ErrMsg()) EndIf Next _SQLite_Close($hDskDb) _SQLite_Shutdown() ; writer #include <SQLite.au3> #include <SQLite.dll.au3> Local $aResult, $iRows, $iColumns, $iRval, $sDbName = @ScriptDir & '\test.db' _SQLite_Startup() If @error Then MsgBox(16, "SQLite Error", "SQLite.dll Can't be Loaded!") Exit -1 EndIf ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF) Local $hDskDb = _SQLite_Open($sDbName) ;this is the path ; Open a permanent disk database If @error Then MsgBox(16, "SQLite Error", "Can't open or create a permanent Database!") Exit -1 EndIf _SQLite_Exec($hDskDb, "pragma journal_mode=WAL;") ; do it once (but doing it more than once doesn't harm) _SQLite_SetTimeout($hDskDb, 1000*60*5) ; 5 minutes timeout! _SQLite_Exec($hDskDb, "create table if not exists testtable (col1 integer not null primary key, col2 text, col3 text, col4 text, col5 text);") For $i = 1 To 4000 _SQLite_Exec($hDskDb, "insert into teSTTable (col2) values (hex(randomblob(16)));") If $iRval <> $SQLITE_OK Then MsgBox(16, "SQLite INSERT Error: " & $iRval, _SQLite_ErrMsg()) EndIf Sleep(Random(10, 100, 1)) Next _SQLite_Close($hDskDb) _SQLite_Shutdown() Launch a writer, and as many readers and writers you want. You don't get any msgbox showing an error.
    1 point
×
×
  • Create New...