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

Not sure if this is and AutoIt issue or a Scite advise plz

$
0
0

One annoyance i have lately since i changed to the latest stable is this, (it didnt seem as bad before)

When i add a line or array elements after a variable it kicks them down onto the next row instead of following to the end the putting the remaining on the next row

Capture.PNG

Like this

 

And it will often leave huge gaps per row if there is several rows and the gaps may not be identical on each row

So basically is there a way to make it run to the end and continue properly on the next row?

 

I understand different length text additions in the layout will trigger the next line sooner but sometimes there is one word then nothing till the next line..

 

And whilst on the subject could it be made like this with an indent or tab spaces allowed to keep the words tidy? (this is made up btw)

Capture.PNG

 

Just some thoughts and i hope i have explained it properly, please ask for clarification if needed


Disambiguation in an Imaginary Language

$
0
0

In an imaginary language.

I declare a variable called CONFLICT.
I later use a function which expects the string parameter CONFLICT.
There is no way to differentiate between the variable and the string parameter.

What should the interpreter do?
1) Prevent the user from declaring the variable CONFLICT
2) Allow the declaration and only throw an error if something actually breaks.

3) Something else - please say what.

AutoIt v.3.3.13.17 Beta

$
0
0

File Name: AutoIt v.3.3.13.17 Beta

File Submitter: Jon

File Submitted: 19 Aug 2014

File Category: Beta


3.3.13.17 (19th August, 2014) (Beta)
AutoIt:
- Changed: Default text file encoding changed to UTF8 without BOM.
- Changed: FileOpen() has new modes for forcing ANSI, UTF16-BE/LE without BOM.

- Fixed #2834: FileOpen() and DirCreate() problem with relative paths when creating directories.

UDFs:
- Changed: _SQLite 3.8.5.0 -> 3.8.6.0.

- Added #2836: _WinAPI_SfcIsKeyProtected() doc example.
- Fixed: Limit bug in _ArraySwap().

Others:
- Changed: Improved highlighting AutoIt code inside the HTML files.


Click here to download this file

Maps (beta)

$
0
0

beta 3.3.13.17 is the first beta I've installed since 3.3.12.0 was released.

 

How do Maps work?

 

Seems from the help file that it's a scripting dictionary object with some methods coded into it already.

 

I'm probably wrong though.

AutoIt v.3.3.13.18 Beta

$
0
0

File Name: AutoIt v.3.3.13.18 Beta

File Submitter: Jon

File Submitted: 20 Aug 2014

File Category: Beta


3.3.13.18 (20th August, 2014) (Beta)
AutoIt:
- Fixed #2639: Unable to Copy/Paste from Embedded IE object.
- Fixed #2839: GUISetAccelerators() with an invalid array can cause a hard crash.

UDFs:
- Changed: _ArrayInsert() now uses constants to change addition behaviour and datatype forcing.


Click here to download this file

Expanding Pragma?

$
0
0

Will the #pragma directives be expanded to allow for custom fields, to replace #AutoIt3Wrapper_Res_Field?

 

The #pragma directives seem to be the only way to set the copyright and program version fields, I am looking to update my scripts to use #pragma instead of #AutoIt3Wrapper directives.  Unfortunately, as soon as I add a #pragma directive, all of the custom fields stop working.

 

From reading in other posts, I understand that this is just how it is right now, but I was wondering if there were plans to expand #pragma going forward.

AutoIt v3.3.13.19 Beta

$
0
0

File Name: AutoIt v3.3.13.19 Beta

File Submitter: Jon

File Submitted: 24 Aug 2014

File Category: Beta


3.3.13.19 (24th August, 2014) (Beta)
AutoIt:
- Fixed: Map setting of property using dot notation was creating duplicates.
- Fixed #2862: Regression in Copy-on-write optimization in arrays.

UDFs:
- Fixed #2853: Bad Run link in Notepad tutorial doc.
- Fixed #2854: Keyword reference doc page.
- Fixed #2861: _WinAPI_ReadDirectoryChanges() example.

Other:
- Fixed #2848: Script breaking changes not being highlighted.
- Fixed: Remarks missing in certain documentation pages.
- Fixed: Syntax highlighting missing in certain documentation pages.


Click here to download this file

Writing a Garbage Collector in C


Xmpp server Java/Php?

$
0
0
For an instant messaging application, a 'java based XMPP server' or 'php based XMPP server' would be the best? Many say its the latter? If so, why is java based superior to Php based?
 
A revert with an expert opinion will be appreciated.

OBJCREATEINTERFACE status experimental

Help with understanding some code please?

$
0
0

Hi,

 

I recently found a frontend for chkdsk which someone created which you can see here http://www.wieldraaijer.nl/

 

I liked how the utility lists connected drives with the various columns and information, so I asked Emile for help and was kind enough to share the piece of code for this function, however I'm having a hard time understanding it to be able to intergrate it into my works, please can anyone help me by providing a working sample script using the code with full comments to help me understand it? Obviously the code doesn't work as-is because its not complete. Emile didn't want to share the full program source which is understandable which is also why I dont want to keep asking him for help. As it's not my code i'm not sure if I should just post it freely, but if anyone can help I can pm you the code.

 

Thanks

Need help at a program

$
0
0

hey guys i need help at a program it seems to be encrypted and i need to decrypt it can anybody help me?

c# help

$
0
0

hi guys,

 

i am working on a project atm and i currently have a sql server 2012 database containing data.

 

What im needing to do is create 2 applications, 1 for internal (able to change and insert data into the database) and 1 for external (view only) 

 

I am 100% new to C# and im not sure how i can connect my current database to a c# application, i know how to create one within the c# application but not have them linked as such. 

 

In addition to this i need the external (view only) to be accessible at all times even when the server is offline so some sort of way of doing this.

 

doesnt have to be fancy or pretty i just need it to be functional - im not asking anyone to do anything for me im simply asking for help with what steps i need to take e.g you need to look into this this this and this as im trying to search but its very hard to find what your looking for when you dont know the correct question you should be asking! :(

 

Anyhelp would be greatly appreciated!

Will there be in AutoIT explicit assignment operator?

$
0
0

I would like to see in the language explicit assignment operator

 

Maybe if language there was an obvious assignment operator, for example :=

then it will be possible to do the following things:

Global $a[3] Test() := 3 Func Test()     Return $a[1] EndFunc

I think a lot of the scripts would be easier if existed this statement.

 

Of course, I expect that now will speak defenders of the existing syntax, who will argue that the = operator is sufficient for all cases. But still, Developers and programmers, do not you faced a situation where you would need to explicitly execute the assignment, in contrast to the comparison?

Any way to link a pre-process into compile sequence?

$
0
0

I use a small script to gather some "stats" about a script once I feel the script is completed ... like an inventory of the standard variables that it uses.

 

SciTE has options for the two common utilities:

#AutoIt3Wrapper_Run_Tidy=y
#AutoIt3Wrapper_Run_Au3Stripper=y

Does anyone know how I might link my pre-process script into the sequence?  I'm not talking about an SciTE tab panel or anything formal ... just a way to automatically execute it.

 

Thanks in advance for any advice.

 


Hadoop

$
0
0

I have been asked to potentially take on a network admin contract. As part of this, I will need at least a baseline knowledge of Hadoop for some data analytics POCs they're entertaining. Just thought I would throw it out there to see if anyone uses this on a day to day basis, and if so what the learning curve is.

Variable check

$
0
0

Hi. I got doubt if this result is correct.

Local $vaint="False" Local $varstring=0 MsgBox(0,"I got False. this is correct.",$vaint==$varstring) MsgBox(0,"I got True. ¿Is this Correct?",$vaint=$varstring)

Saludos

Can Au3Stripper results be further optimized?

$
0
0

I’ve been using the Au3Stripper with great success. But as I bring individual scripts to completion, I’ve noticed what appears to be some excess baggage on board the produced sources. For example:

Global Const $__WINVER = __WINVER() Func __WINVER() Local $tOSVI = DllStructCreate($tagOSVERSIONINFO) DllStructSetData($tOSVI, 1, DllStructGetSize($tOSVI)) Local $aRet = DllCall('kernel32.dll', 'bool', 'GetVersionExW', 'struct*', $tOSVI) If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) Return BitOR(BitShift(DllStructGetData($tOSVI, 2), -8), DllStructGetData($tOSVI, 3)) EndFunc

.

An SciTE search of the resulting stripped source shows that $__WINVER isn’t referenced. And I’ve found several other constants that also aren’t referenced. For my finished “production” scripts, I’d like to remove every unused element.

 

So my question is this:

 

Is my best approach to just take the stripped version as a "pre-compile candidate”, then manually tweak it to the minimum—and then save it as my production source before a final compile?

 

Or, is there an easier way to reach the minimum code?

 

BTW, I intend to eventually replace constants with their literal values. But that step needs to be taken carefully ... and I don’t want to do it too soon.  That leaves UDFs and and Au3Stripper-determined "defaults" as the elements to focus on.

 

Thanks in advance for any help.

 

 

Attached Thumbnails

  • Strip Results.png

C# Graphics +1

$
0
0
System.Drawing.Graphics
 
Creating a simple screen capture class, and getting an error I've not seen before.
Wondering if any of you folks now anything about it.
 
The error is this.. 

win32exception the specified program requires a newer version of windows

The weird thing is it runs in the IDE (VS2010) and I'm running win 7.
But the production exe produces the error.
The Documentation does not say it needs win 8 or higher, and a remark suggests it is good for win XP.
 
Here is the offending code.
hGfx = Graphics.FromImage(hBmp); hGfx.CopyFromScreen(      x,      y,      0,      0,      size);
Cannot find a close enough match for the full error in web search.

EDIT:
Sorry it is the CopyFromScreen method that causes it, not FromImage.

EDIT2: (+1)
Also, if anyone knows, how expensive are Thread safe delegate calls to get a property from form?

My thread employs a tight loop and it needs to know when a property of the form changes, so might need to check the property each iteration, unless I can find a way for a form event handler to run in my worker thread.

Microsoft OCR Library for Windows Runtime

Viewing all 750 articles
Browse latest View live