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

What u discus a programming lang or scripting i must learn ?

$
0
0

Hi all

the fist and the only thing i ever coded is using Autoit i like it.

it is simple, easy, powerful, learn able without a teacher

 

now i'm some what good in it, i'm thinking about learning python i heared that it is cross platform (works on all platforms not just windows)

and easy to read and code

 

i tried learning VB and java but they are so complicated i think i need at teacher so i can learn them

 

the question is if u was in my place what u will learn ? please direct me to the right way 

another thing is any 1 know what is the Independence that python needs ?

what i know that Autoit is no Independence is python like it ?

 

thanks in advanced


Autoit anti decompiler

$
0
0

Hi my Friends!

I present Protect IT!

Download Link = http://www.sendspace.com/file/sgkwii (If The Download link is Dead, PM me)

 

This is a very good French software that can obfuscate your program.

 

   -User-friendly

   - Prevents the user to decompile your program.

   - Need the .Net Framework 4 to Use ProtectIT (Already on 70% of Windows PC)

   - Coded in C#

   - Need Winrar to open this .exe

 

Your Original Code

AutoIt         
AutoIt Version: 3.3.6.1  Author:         COB  Script Function:     TEST AUFUSCOB #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here test() test2() Func test()     If (1 = 1) Then         If (0 = 0) Then             Local $Atrue = 'Condition toujour vrai'         Else             $Atrue = "Erreur"         EndIf         MsgBox(0, Default, $Atrue)     EndIf     Local $msg     $msg = "Test"     $msg &= " Msg"     $msg &= "Box"     MsgBox(0, Default, $msg) EndFunc   ;==>test Func test2()     $autrevar = "Autre fonction";     MsgBox(0, "", $autrevar) EndFunc   ;==>test2

Your obfuscated code

AutoIt         
$13470001 = 1363015899 While 1     Switch $13470001         Case 311482959             F30343235363833313939()             ExitLoop         Case 1363015899             F31353334373932303838()             $13470001 = 311482959     EndSwitch WEnd Func F31353334373932303838()     If (1 = 1) Then         If (0 = 0) Then             Local $13470002 = 'Condition toujour vrai'         Else             $13470002 = "Erreur"         EndIf         MsgBox(0, Default, $13470002)     EndIf     $13470000 = 1363015899     While 1         Switch $13470000             Case 311482959                 $13470004 = "Test"                 $13470000 = 1994086612             Case 1330278011                 MsgBox(0, Default, $13470004)                 ExitLoop             Case 1363015899                 Local $13470004                 $13470000 = 311482959             Case 1994086612                 $13470004 &= " Msg"                 $13470000 = 2018228120             Case 2018228120                 $13470004 &= "Box"                 $13470000 = 1330278011         EndSwitch     WEnd EndFunc   ;==>F31353334373932303838 Func F30343235363833313939()     $13470001 = 1363015899     While 1         Switch $13470001             Case 311482959                 MsgBox(0, "", $13470003)                 ExitLoop             Case 1363015899                 $13470003 = "Autre fonction"                 $13470001 = 311482959         EndSwitch     WEnd EndFunc   ;==>F30343235363833313939

Attached Files

AU3Check Feature Request.

$
0
0

Who maintains AU3Check?  If it's you Jos then close this window and return sometime after your vacation.  =P

 

Anyways, I was wondering if we could have an option to not have AU3Check send the entire path to the AU3 to the SciTE console?  I wanted to discuss this here before filing a ticket.

 

So from this:

"D:\My\Quite\Long\Path\To\The\AU3\Which\Has\An\Error\MyScript.au3"(11,68) : warning: $some_variable: possibly used before declaration.

To This:

"MyScript.au3"(11,68) : warning: $some_variable: possibly used before declaration.

Reason being is that I have my console window positioned to the right rather than the bottom.

Need help on Automating Wifi connect and certificate selection

$
0
0

Hi,

 

I am new to AutoIT. I am not sure if this is possible with AutoIT. I have been working on .NET and VB for years. My requirement is to automate the process of connecting to wifi from user laptop. While connecting it would prompt to choose wifi certificate from the available certificates. Currently i am using the below script for connecting to Wifi network. But the issue is automate setting the default certificate from "select certificate dialog". There are many certificates installed on the users machine. User is confused which certificate he should select from the list and the default is not the one he should choose.

 

@Echo off

C:\"Entrust Profile"\%username%.epf
netsh wlan connect ssid=Kalyan name=Kalyan interface="wireless network connection"

 

Can any one please let me know if this is possible with AutoIT. If this is then please help with some script.

 

Your quick response is really appreciated.

 

Regards,

Kalyan

AutoIt v3.3.9.20 Beta

$
0
0

File Name: AutoIt v3.3.9.20 Beta

File Submitter: Jon

File Submitted: 06 Sep 2013

File Category: Beta


3.3.9.20 (6th September, 2013) (Beta)
AutoIt:
- Fixed #2405: Documentation bug for FileGetVersion() and compiled scripts.
- Fixed #2314: Cursor flickers when moving over certain GUI controls.

UDFs:

AutoItX:
- Added: AutoItX3.Assembly.dll - a .NET Assembly wrapper for the DLL.
- Added: AutoItX3.PowerShell.dll and AutoItX3.psd1 - a set of PowerShell CmdLets.
- Added: DLL Import: AU3_WinGetPos.
- Added: DLL Import: AU3_ControlGetPos.
- Added: DLL Import: AU3_MouseGetPos.
- Added: DLL Import: AU3_WinGetClientSize.
- Added: DLL Import: AU3_WinGetCaretPos.
- Removed: DLL Imports: AU3_WinGetPosX, AU3_WinGetPosY, AU3_WinGetPosWidth, AU3_WinGetPosHeight.
- Removed: DLL Imports: AU3_ControlGetPosX, AU3_ControlGetPosY, AU3_ControlGetPosWidth, AU3_ControlGetPosHeight.
- Removed: DLL Imports: AU3_MousePosX, AU3_MouseGetPosY
- Removed: DLL Imports: AU3_WinGetClientSizeWidth, AU3_WinGetClientSizeHeight.
- Removed: DLL Imports: AU3_WinGetCaretPosX, AU3_WinGetCaretPosY.
- Removed: DLL Imports: AU3_CDTray, AU3_BlockInput.
- Removed: COM Methods: CDTray, BlockInput.
- Removed: All registry functions. The support was limited and the host language will certainly have registry functions.
- Removed: All Ini file functions. As per registry functions.


Click here to download this file

AutoIt v3.3.9.21 Beta

$
0
0

File Name: AutoIt v3.3.9.21 Beta

File Submitter: Jon

File Submitted: 11 Sep 2013

File Category: Beta


3.3.9.21 (11th September, 2013) (Beta)
AutoIt:
- Added #2443: Monospaced in Fonts appendix.

- Changed: Documentation for StringRegExp() re-written by jchd.
- Changed: Default newline character for PCRE regexes changed to ANYCRLF.

- Fixed #2066: DllStructSetData() returning int64 instead of int32 in some cases.
- Fixed #2427: ControlTreeView() does not used Option2.
- Fixed #2455: Mouse Cursor not changing on resizable GUIs.
- Fixed #2105: RegRead() and DWORD types incorrectly stored as double.
- Fixed #2299: GUI Button Text Left-Justify for colored button.
- Fixed #1954: ListViewItem returns 0 (failure) even though it populates the ListView.
- Fixed #2152: X^2 Not Working in Hex().
- Fixed #1870: @GUI_DRAGFILE.


Click here to download this file

eMouse and AutoIt Script Generator

$
0
0

Hello. I recently released a simple record/play automation program named eMouse (it's freeware).

I decided to add a tool to it which generates a script in AutoIt code of any recording made with this program.  This tool is in the 1.2.2beta version, which i host on my site software.eskadia.com.

 

Here's a direct link to the 1.2.2b setup: http://software.eskadia.com/bin/eMouse-1.2.2b-setup.exe

 

As of now, it generates code that should mimic the original recording.  It will delay until a click or key has been pressed, and uses movement before clicks.  Maybe this will be of use to someone here.

 

Here's a screenshot of if:

em122b.jpg

Forcing UTF8+BOM encoding for every file in SciTE?

$
0
0

I can't remember how to do that and where it should be.

Is it at all possible to do so that it survives installation of new versions of SciTE4AutoIt3?

 

TIA


Fast Base64 Routines

will be officially announced to the type of Table?

#Tidy_Parameters=/sort_funcs - issue

$
0
0
Today I had a problem with TIDY
cause my script turns off TIIDY.
 
After analyzing the problem solved here is the summary:
 
 

This is a reproduction script.

#Tidy_Parameters=/sort_funcs Func _test()     Select         Case 1                 if $test = True                     $string = ""                 Then         EndSelect EndFunc

i know there is a issue

                if $test = True                     $string = ""                 Then

it must be that

#Tidy_Parameters=/sort_funcs Func _test()     Select         Case 1                 if $test = True then                     $string = ""                 Endif         EndSelect EndFunc

but please try to TIDY this one:

#Tidy_Parameters=/sort_funcs Func _test()     Select         Case 1                 if $test = True                     $string = ""                 Then         EndSelect EndFunc

now comment TIDY sorting and run TIDY again

;~ #Tidy_Parameters=/sort_funcs Func _test()     Select         Case 1                 if $test = True                     $string = ""                 Then         EndSelect EndFunc

EDIT:

I know this is not nearly as important as TIDY correctly points out errors through appropriate messages on the console.
But however you may be interested.

Asp.Net

$
0
0

Can anyone is willing to give me complete tutorials of Asp.Net. I had used C# and windows form. Now i want to move one step next.

Question about Excel and Formulas

$
0
0

Hi.  I'm trying to create a spreadsheet which calculates the price of grocery items per ounce amongst other calculations.  I would like to have one formula be applied to an entire column.  I want this so that if I change the formula then I only have to change it once and the update is applied to the entire column.  Is this possible?

DriveGetDrive API error for proper type - why?

$
0
0

Sorry for the terse topic title, I'll happy to edit it so it sounds less confrontational if anyone has any suggestions. :)

 

I'm wondering if it might be better if DriveGetDrive behaved a bit differently.  On my computer, the code below fails at "REMOVABLE", since I don't have any removable drives.  My question is not, how do I keep it from failing.  My question is why does asking for something legitimate - that I just happen to not have - considered an error?  Wouldn't it make more sense to simply return the equivalent of

$array[1] = [0] - and reserve the error for something truly wrong?  Like DriveGetDrive("A_Totally_BOGUS_VALUE")?

PrintDrive("ALL") PrintDrive("CDROM") PrintDrive("REMOVABLE") PrintDrive("FIXED") PrintDrive("NETWORK") PrintDrive("RAMDISK") PrintDrive("UNKNOWN") Func PrintDrivesForName($drive)     ConsoleWrite($drive & " : ")     Local $drives = DriveGetDrive($drive)     For $i = 1 To $drives[0]         ConsoleWrite($drives[$i] & @TAB)     Next     ConsoleWrite(@LF) EndFunc

The problem is that it greatly complicates handling the case of "you don't have one of those" - which is distinct from "you asked for something totally incorrect".

 

 

Please note once again, my question is not how do I keep the code from failing - I can figure out how to add an error check. 

 

My quesiton is: what use-case makes the current behavior desirable over simply returning an array with zero as the first and only element?  (Except in the case where the code genuinely asks for something bogus of course)

Autoit and DPI awareness

$
0
0

I'm finding users adjusting the default screen DPI setting far more often in Windows 7 than I ever experienced with Windows XP.

Perhaps the setting is now more prominently displayed or easily found than when is was in the advanced section of the settings tab of the display options window.

 

Most commercial applications seem to adapt to the DPI value without a glitch, but Autoit only partially conforms to this system-wide setting.

The fonts within controls are affected, yet the overall control dimensions are not.  The result are labels, buttons, etc, with txt that is truncated or unreadable. Some special controls or API functions in Autoit, like calendar, are also affected by the DPI setting.  

 

I've overridden non-default DPI settings by calling this at the top of programs:

Func GetDPI_Ratio()     Local $hWnd = 0     Local $hDC = DllCall("user32.dll", "long", "GetDC", "long", $hWnd)     Local $aRet = DllCall("gdi32.dll", "long", "GetDeviceCaps", "long", $hDC[0], "long", 90)     $hDC = DllCall("user32.dll", "long", "ReleaseDC", "long", $hWnd, "long", $hDC)     If $aRet[0] = 0 Then $aRet[0] = 96     Return $aRet[0] / 96 EndFunc

It returns an $iDPI_Ratio global such as 1 or 1.25. I then replace all calls to GUISetFont() and GUICtrlSetFont() with calls to user functions like GUISetFont_DPI() and GUICtrlSetFont_DPI() which apply the $iDPI_Ratio variable as a divisor to the font size parameter like this:

Func GUISetFont_DPI($isize, $iweight = "", $iattribute = "", $sfontname = "")     GUISetFont($isize / $iDPI_Ratio, $iweight, $iattribute, $sfontname) EndFunc

I'm still left with a few uncorrected issues like calendar controls.  I considered a bugtracker to request an extra parm for GUISetFont() and GUICtrlSetFont(), that would act as a DPI divisor and default to 1.  That would greatly simplify programatically suppressing a non-standard DPI setting. Then I wonder if perhaps the goal should be to move in the opposite direction... that of making Autoit fully DPI-aware?

 

It appears the available values for the DPI setting are:

.75

1.00 (default)

1.25

1.50

2.00

 


A3X on 64 bit systems ???

$
0
0

G'day All

 

I'm changing over to using A3X instead of EXE to avoid the false positive issue with Anti Virus products.

 

One future concern is what if a script should be run with the 64bit interpreter for technical reasons but is compiled to A3X instead of EXE.

 

Does it run under the 32Bit interpreter or the 64Bit interpreter?

 

If not... could something be added to the A3X files so that they are tagged as 64bit or 32bit then at least a switcher app could be created to decide on which interpreter to use.

This will enable seamless running of A3X files as we have with EXE.

 

Thanks guys and keep up the great work!

John

 

I originally posted this under general help but we haven't got a good solution to the situation.

http://www.autoitscript.com/forum/topic/155094-a3x-on-64-bit-systems

So I thought I'd ask the guys that have all the answers. :)

 

 

AutoIt Compiled Scripts and Side-by-Side ActiveX Controls

$
0
0

Hi. I'm trying unsuccessfully to get a compiled AutoIt script to work with a side-by-side (SxS) ActiveX control. I removed the auto-generated manifest from the autoit-compiled exe and placed a suitable manifest file and the ActiveX .dll co-located with the exe. The exe still can't use the SxS control.

 

This process works with other languages (I have tried successfully with VB6, C++ and Delphi) - is there a restriction in the way AutoIt's ObjCreate() function is implemented that prevents SxS from working? If so, is there any workaround?

[Beta bug?] _FileWriteToLine damages the file (3.3.9.20+)

$
0
0

Hello, I just discovered bad thing. If I used _FileWriteToLine function in AutoIt3 beta since 3.3.9.20 and newer, after launching the file it's partially damaged itself. Older versions work correctly and there is no file damaging.
Look at the example and test on different versions - older and newer.
 
(Added): I think the problem is in Include\File.au3
v.3.3.9.20, line 677:

Local $aArray = StringRegExp(@CRLF & $sFileRead & @CRLF, "(*BSR_ANYCRLF)([^\R]*)(?:\R)(?:\R$)?", 3)

v.3.3.9.19, line 683:

Local $aArray = StringRegExp(@CRLF & $sFileRead & @CRLF, "([^\r\n]*)(?:\r\n|\n|\r)(?:[\r\n]$)?", 3)

Maybe the pipe "|" I used is the reason?

#AutoIt3Wrapper_Res_Field=Release date|18.10.2013

partypooper, MrCreatoR?
 
P.S. Excuse me for strange characters in line number 5.
It's an online artifact, there is no such characters in my code.
 

AutoIt         
#region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Comment=http://monter.FM #AutoIt3Wrapper_Res_Description=Example file showing beta bug since AutoIt3.3.9.20. ://////=__=.. #AutoIt3Wrapper_Res_LegalCopyright=monter.FM #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <Date.au3> #include <File.au3> Global $msg, $flg, $sec $title = 'AutoIt3 - version ' & @AutoItVersion FileChangeDir(@ScriptDir) If StringReplace(@AutoItVersion, '.', '') > 33919 Then     VerBug() Else     VerOK() EndIf FileInfo() MsgBox($flg, $title, $msg, $sec) If $flg = 48 Then Run('notepad.exe ' & @ScriptName) Func VerBug()     $msg = 'This version has just damaged this file.' & @CRLF & 'Fortunately I made the *.bak copy :)' & @CRLF & 'Look at this damaged script now.'     $flg = 48     $sec = 6     FileCopy(@ScriptName, @ScriptName & '.bak') EndFunc   ;==>VerBug Func VerOK()     $msg = "This version works fine and shouldn't damage this file."     $flg = 64     $sec = 3 EndFunc   ;==>VerOK Func FileInfo()     Opt('TrayIconDebug', 1)     $strRes = '#AutoIt3Wrapper_'     For $ln = 1 To 10         $srchRes = StringInStr(FileReadLine(@ScriptFullPath, $ln), $strRes)         If $srchRes > 0 Then             $lr = $ln             ExitLoop         EndIf     Next     $strRes = '#AutoIt3Wrapper_Res_Field=Release date|'     For $ln = $lr To $lr + 16         $srchRes = StringInStr(FileReadLine(@ScriptFullPath, $ln), $strRes)         If $srchRes > 0 Then             $lnRes = $ln             ExitLoop         EndIf     Next     $rd = FileGetTime(@ScriptFullPath, 0, 0)     _FileWriteToLine(@ScriptFullPath, $lnRes, '#AutoIt3Wrapper_Res_Field=Release date|' & $rd[2] & '.' & $rd[1] & '.' & $rd[0], 1)     Global $dateRlse = $rd[2] & '.' & $rd[1] & '.' & $rd[0]     FileSetTime(@ScriptFullPath, $rd[0] & $rd[1] & $rd[2] & $rd[3] & $rd[4] & $rd[5], 0) EndFunc   ;==>FileInfo

Attached Files

_StringBetween issue - RegEx again

$
0
0
I'm seeing a behavior change between the latest beta (3.3.9.21) and the last release (3.3.8.1).
#include <String.au3> #include <Array.au3> Local $nResult, $aResult Local $cStr = '<A>testing</A>' $aResult = _StringBetween($cStr, '<a>', '</a>') If @error Then     ConsoleWrite('@error = ' & @error & @CRLF) Else     _ArrayDisplay($aResult, 'Default Search') EndIf
When I run this with the beta version, the _StringBetween function sets @error = 1. On the release version, the string is found and the array is displayed.
 
The same thing occurs if I pass 'Default' as the optional 4th parameter. According to the beta help file, Default is supposed to be case-insensitive.

Request to developers add a ControlListView of DirectUIHWND like SysListView.

$
0
0

Request to developers add a ControlListView of control function CLASS;DirectUIHWND like SysListView.

Becuse in windows 7 vista and many other latest windows control are replaced  ListView32 to DirectUIHWND. Only XP has ListView32.

Viewing all 750 articles
Browse latest View live