Quantcast
Channel: AutoIt v3 - Developer Chat
Viewing all 750 articles
Browse latest View live

Change password to text

$
0
0

Does anyone know how to change a password to text so I can print out the text in a log file?


Dim deprecated ?

$
0
0

Today I start to clean up my old script, and a saw this message:

 

warning: 'Dim' deprecated as declaration. Prefer to use Local or Global.

Is this officially depracated for now ?

 

AutoIt v3.3.13.5 Beta

$
0
0

File Name: AutoIt v3.3.13.5 Beta

File Submitter: Jon

File Submitted: 17 Jul 2014

File Category: Beta


3.3.13.5 (17th July, 2014) (Beta)
AutoIt:
- Added: (Internal) Built-in functions can now be made that work in a ByRef way. Lots of new possibilities!

- Fixed: Regression with using subscript access on a non-array variable hard crashing.
- Fixed: Accessing a table within an array, or vice versa caused a hard crash.
- Fixed: Static keyword with tables.
- Fixed: Assigning objects to table elements.

UDFs:
- Fixed #2782: Documentation of various constants.


Click here to download this file

build .dll instead of .exe

$
0
0

Anyone know how to build/create/compile AutoIT program into .dll instead of a .exe?

 

I am attempting to use AutoIT for the Screens in my Cobol programs.  I need to pass values between the Cobol program and AutoIT .dll and have values passed back (from the screen).

 

Any thoughts (besides COBOL - WTF??)

 

Thanks

Read User Selection from application message box

$
0
0

Having wasted many hours trying to solve this problem without success, could any one help with the following scenario:

 

Autoit is controlling the user interface of Autoplay to prevent any data entry errors on the completed media diak.

 

When a burn is about to be performed and a media disk is not loaded in the drive, Autoplay generates an internal message (window name is "Insert Media") that shows two buttons  "Load Media" (Button1) or "Cancel" (Button2).

 

Despite all my attempts to read these buttons direct from this window and return the button info into autoit so I can continue to control autoit, do not work (guigetmsg(), guigetmsg(1) for example).

 

I can use controlclick to OK the message then Create a new gui box and run this but doing this creates another issue if the user still does not load the media so I want to act directly on the Autoplay error message box and read whcih button the user has selected.

 

Any help or guidance would be greatly appreciated.

 

AutoIt v3.3.13.6 Beta

$
0
0

File Name: AutoIt v3.3.13.6 Beta

File Submitter: Jon

File Submitted: 18 Jul 2014

File Category: Beta


3.3.13.6 (18th, 2014) (Beta)
AutoIt:
- Changed: Tables now called Maps. IsTable() now IsMap()
- Changed: All Is... functions and UBound() now using internal ByRef optimization.
- Changed: Numerous internal rewrites for Dim, Local, Global, Static. Function param passing. Testing needed!

- Added: Test versions for MapAppend(), MapExists(), MapKeys() - dot notation versions still available for now.

- Fixed: Regression with Dim $var = [1,2] syntax.

UDFs:
- Fixed: Undeclared variable in File.au3 due to internal changes.


Click here to download this file

Bacic pokemon bot! Need help please!!!

$
0
0

Hello, i have downloaded recently the Autoit to create a bot for a online pokemon game. but im very noob at coding so i wanna ask for some help.
I would like to create a script for a bot that only have to kill other wild pokemons. (the character only have to move right and left until it find a wild pokemon and then, press spacebar or left mouse click to kill it) then repeat it again.
I would apreciate some help. Thanks, and sorry for my bad english :)

Getting Events of explorer.exe

$
0
0

Hello all, 

 

Any of you know how to get actions done by an user on explorer.exe . i.e(copy file, rename file etc) 

 

 

PS: Listening to the entire "file activities" via WMI gets too much data (Hence I only want actions done on explorer.exe) and it also it not possible to find file changes in MTP devices . 

 

Thanks


AutoIt v3.3.13.7 Beta

$
0
0

File Name: AutoIt v3.3.13.7 Beta

File Submitter: Jon

File Submitted: 22 Jul 2014

File Category: Beta


3.3.13.7 (22nd July, 2014) (Beta)
AutoIt
- Changed: Internal rewrite of all array handling.
- Changed: Internal rewrite of map object.

- Fixed: Map elements being incorrectly auto-created during function calls to IsMap().
- Fixed: Regression with default COM properties.

UDFs:
- Changed: Reduced duplicate code for finding the maximum and minimum value in an array.
- Changed: _ArrayAdd now uses constants to change addition behaviour and datatype forcing

- Fixed #2803: _ArrayMinIndex() and _ArrayMaxIndex() failing with 1-dimensional arrays that had 1 element only.

Others:
- Fixed: Removal of related functions.


Click here to download this file

Get (*filter) only prefs.js and store in array

$
0
0

Hi,

 

I have this code (http://pastebin.com/5fB5KrvK) and I'd like get (*filter) only prefs.js filename with full your path without use _ArrayDisplay function, something like: 

 

$prefs @AppDataDir&"\Mozilla\Firefox\Profiles\e23e2.default\prefs.js"

 

and after make changes in this specific file as: 

 

If FileExists($prefs) Then

 

;make my changes here

 

EndIf

 

 

 

Can you help me, please?

 

Thank in advance!

AutoIt v3.3.13.8 Beta

$
0
0

File Name: AutoIt v3.3.13.8 Beta

File Submitter: Jon

File Submitted: 22 Jul 2014

File Category: Beta


3.3.13.8 (22nd July, 2014) (Beta)
AutoIt:
- Fixed: Regression in With .Method(...).

- Added: MapRemove()


Click here to download this file

Creating a loop on a DataGridView

$
0
0

I'm trying to work on a code base that is pretty chaotic and hard to follow. The code uses an DB2 connector, which I know how to use in autoit, but I really don't know how to use in C#. Can someone point me toward a tutorial or provide some suggestions on what I should be looking at/researching?

 

This is essentially what I need to do:

1) From the DataGrid, loop through each line

2) If the Y/N field is checked, perform different queries

3) Pass the results into another form to validate

4) Push the final results into a separate database (tracking database)

AutoIt v3 Window Info - StatusBar Info

$
0
0

Is it possible to get and use the data in the StatusBar tab.

 

>>>> StatusBar <<<<
1:    For Help, press F1
2:    
3:     1
4:     5

 

 

First column is Property  and second column is Value.

 

Looks like this.

 

Property                    Value

1                                 For Help, Press F1

2

3                                 1

4                                 5

 

 

 

I need to get the value 5 in the property 4.

 

Is there anyway to retrieve this information.

 

Any help would be  greatful! Thanks

Selecting TCP ports numbers

$
0
0

Hi all,

 

I'm currently considering a client/server version of SQLite with some bells and whistles.

I'm going to use TCP and I'd like to select several non-registered ports.

 

For now I've chosen:

Global Const $_TCPports = [0xFACE, 0xFADE, 0xFEED, 0xDEAF, 0xDEAD]    ; try these ports in order
;                            64206,  64222,  65261,  57007,  57005
 

Maybe it's childish to focus on trying words in hex but it seems a good way to remember them.

 

Which advice can admins give on this matter?

 

BTW I stumbled on this really shoking page, where Apple shamelessly claims nothing less than ALL non-registered ports 49152..65535 on both TCP and UDP. These guys do touch themselves at night.

SciTe hotkey for "Toggle All Folds"

$
0
0

Hello, so that's what im wondering, can i set such a key?

Some time ago, i asked for a way to stop the script from a hotkey, and a notorious dev, sugested this code:

user.shortcuts=\ F4|IDM_STOPEXECUTE|

to be placed in the file SciTE.properties, and it worked wonders!

 

So im looking for the same type of thing, but another unused key, like F10 to Toggle all folds in SciTe.

Or a pointer as to where i can find those internal commands like IDM_STOPEXECUTE.

 

Best Regards.

 

EDIT: Found "SciTE menu commands" in SciTe Help file, set to F9. Solved.

user.shortcuts=\ F4|IDM_STOPEXECUTE| user.shortcuts=\ F9|IDM_TOGGLE_FOLDALL|

Got a related question: How do i set this globally on SciTe?

Is there a way for this to work without having the properties file in the same dir as the script?

Tried adding to the files at the windows user directory, both SciTEUser.properties and SciTE.properties,

but has no effect.

 

EDIT2: Adding that to the code in the file: SciTEUser.properties In: C:\Users\USER\AppData\Local\AutoIt v3\SciTE Did the trick.


UDF standards (site outdated) - moved to Wiki

$
0
0

With reference to #2804, I want to start this new topic because I'll have a lot of questions related to the standards in the UDF file.

 

 

First I want to ask about Variables Naming

 

Question: Or, will be added, a new prefix $fu....   ?

 

Other questions will clarify, after analyzing the content of this wiki page.

 

 

 

Best regards

mLipok

 

 

ps.

Attached a previous version UDF_Standards.htm

Attached Files

Function Binding

$
0
0
Let's assume that there is a function that expects another function as an argument.
Func GetSortedListOfVillains (ByRef $hero, Const ByRef $sortingAlgorithmOfEvil)     ; That will take a while, so fight with swords while riding on chairs (xkcd.com/303/).     Local $villains = [$evilOverlord] ; should be global     _ArrayConcatenate ($villains, VisitGhibliHills ($hero))     _ArrayConcatenate ($villains, VisitForestOfInconvenience ($hero))     _ArrayConcatenate ($villains, VisitHillsOfModerateEvil ($hero))     _ArrayConcatenate ($villains, VisitMountDoom ($hero))     $sortingAlgorithmOfEvil ($villains)     Return $villains EndFunc
One way to use that:
Global $Sort_Arguments ; ... $Sort_Arguments = ["evilsort", $SORT_IGNORECASE] ; Let's assume that you're using a compiler which translates this into valid AutoIt. GetSortedListOfVillains ($theHero, Sort) ; ... Func Sort (ByRef $array)     If Not IsArray ($Sort_Arguments) Then Return SetError (...)     ; I changed this function yesterday. Use the specified sorting algorithm and silently ignore any other arguments.     ; Bonus points for silently changing the meaning of an argument. EndFunc
Another way:
GetSortedListOfVillains ($theHero, SpecialEvilSortUsingAUniqueVillainIdList) ; ... Func SpecialEvilSortUsingAUniqueVillainListId (ByRef $array)     ; this is the id of the list v     Return Sort ("evilsort", 16372, $array)     ; That's a magical number, but I can't pass it as an argument.     ; And I need to create a separate function for every used combination of id and sorting algorithm. EndFunc
The desired way with the hypothetical function "BindFunction":
GetSortedListOfVillains ($theHero, BindFunction (Sort, "evilsort")) ; ... Func Sort (Const ByRef $sortingAlgorithm, ByRef $array)     ; sort it     ; Time complexity of EvilSort: O((n^2)!) EndFunc
(The example code should highlight specific aspects of these approaches. That's the reason for the different signatures of the sort function.)

Is something like that possible? Do you think that it would be useful?

AutoIt v3.3.13.9 Beta

$
0
0

File Name: AutoIt v3.3.13.9 Beta

File Submitter: Jon

File Submitted: 25 Jul 2014

File Category: Beta


3.3.13.9 (25th, 2014) (Beta)
AutoIt:
- Added: MapAppend() returns the index of the element added.

- Fixed: Regression with Call() and CallArgArray.
- Fixed: Regression with speed of arrays.
- Fixed: Was silently failing when passing unsupported parameters ByRef - now shows an error message.
- Fixed: Map/Object properties starting with ".E3" were incorrectly classed as a number rather than property.


Click here to download this file

AutoIt v3.3.13.10 Beta

$
0
0

File Name: AutoIt v3.3.13.10 Beta

File Submitter: Jon

File Submitted: 26 Jul 2014

File Category: Beta


3.3.13.10 (26th July, 2014) (Beta)
AutoIt:
- Added #2686: Random() to return max value when min equals max.

- Fixed: Regression in empty array handling.
- Fixed #2538: GuiSetAccelerators() was still firing events on disabled button controls.
- Fixed #2671: StringSplit() was splitting incorrectly with regards to case sensitivity.


Click here to download this file

Suggested Map UDF

$
0
0
Hi all,

Here is a suggested Map UDF which contains the following functions:
_MapConcatenate _MapDisplay _MapFindAll _MapMaxKey _MapMaxValue _MapMinKey _MapMinValue _MapRenameKey _MapSearch _MapToArray _MapToClip _MapToString Plus: _FileReadToMap _FileWriteFromMap
This zip contains the .au3 example files, the Map UDF and the revised File & Array UDFs required for some of the examples: Attached File  Map UDF and Examples.zip   33.93KB   8 downloads

And this one the Help file pages explaining how to use the various functions: Attached File  Map UDF Help file pages.zip   8.59KB   9 downloads

Obviously you need the latest Beta to run these scripts. ;)

As usual I am open to comment on the present content - and by all means suggest other functions to add. But if you do that, please provide some justification for inclusion and some code - I am not going to do all the work. :D

Be advised that as I am not going to be around as much over the next few weeks, so do not worry if I do not respond as quickly as I usually manage - I'll get back to you as soon as I can. ;)

M23
Viewing all 750 articles
Browse latest View live