Jump to content

Pac Man Matrix


xan
 Share

Recommended Posts

https://www.dropbox.com/s/x3qlqwvhzk06kmn/Pac-man.rar

#include <misc.au3>
#include <Sound.au3>
Dim $map[18][27] =[["x","X","X","X","X","X","X","X","X","X","x","X","X","n","X","X","x","X","X","X","X","X","X","X","X","X","x"], _
                   ["x","n"," "," "," "," "," "," ","n","n","x"," "," "," "," ","n","x","n","n"," "," "," "," "," "," ","n","x"], _
                   ["x","o","X","X","n","x","n","X","X","n","X","n","X","X","X","n","X","n","X","X","n","x","n","X","X","o","x"], _
                   ["x","n"," "," "," ","x","n"," "," "," "," ","n"," ","n"," ","n"," "," "," "," ","n","x"," "," "," ","n","x"], _
                   ["x","X","X","n","X","X","n","X","X","X","x","n","X","X","X","n","x","X","X","X","n","X","X","n","X","X","x"], _
                   ["x","n"," "," "," "," "," "," "," ","n","x","n","x","n","x","n","x","n"," "," "," "," "," "," "," ","n","x"], _
                   ["x","n","X","X","n","x","n","X","X","n","X","n","X","X","X","n","X","n","X","X","n","x","n","X","X","n","x"], _
                   ["x","n"," "," "," ","x","n"," "," "," "," ","n"," ","n"," ","n"," "," "," "," ","n","x"," "," "," ","n","x"], _
                   ["x","X","X","n","X","X","n","X","X","X","x","n","X","X","X","n","x","X","X","X","n","X","X","n","X","X","x"], _
                   ["x","n"," "," "," "," "," "," "," ","n","x","n"," "," "," ","n","x","n"," "," "," "," "," "," "," ","n","x"], _
                   ["x","n","X","X","n","x","n","X","X","n","X","n","X","X","X","n","X","n","X","X","n","x","n","X","X","n","x"], _
                   ["x","n"," "," "," ","x","n"," "," "," "," ","n"," ","n"," ","n"," "," "," "," ","n","x"," "," "," ","n","x"], _
                   ["x","X","X","n","X","X","n","X","X","X","x","n","X","X","X","n","x","X","X","X","n","X","X","n","X","X","x"], _
                   ["x","n"," "," "," "," "," "," "," ","n","x"," "," ","n"," ","n","x","n"," "," "," "," "," "," "," ","n","x"], _
                   ["x","o","X","X","n","x","n","X","X","n","X","n","X","X","X","n","X","n","X","X","n","x","n","X","X","o","x"], _
                   ["x","n"," "," "," ","x","n"," "," "," "," ","n"," ","n"," ","n"," "," "," "," ","n","x"," "," "," ","n","x"], _
                   ["X","X","X","X","X","X","X","X","X","X","X","X","X","n","X","X","X","X","X","X","X","X","X","X","X","X","X"]]

    Local $vida = 2, $dir = 3, $posx = 390, $posy = 390, $pilu[18][27], $ponto[18][27], $dirAnterior, $pontos, $return[4], $fan[16], _
           $fx[4], $fy[4], $rand[4], $fanDir[4], $trinta[4], $mem[4], $Tanima, $sort[4], $morto, $gameOver, $color, $Tpower, $Tcaixa, _
           $cx = 390, $cy = 210, $form = GUICreate("Pac Man", 799, 590, 107, 18), $dll = DllOpen("user32.dll"), $B[3]

    LerMapa()
    $map[5][14]="n"
           GUISetBkColor(0x5a4ade)
    $B0 =  GUICtrlCreateButton("", -2, 500, 805, 18)
           GUICtrlSetBkColor(-1, 0x1A1A1A)
           GUICtrlSetState(-1, 128)
    $B2 =  GUICtrlCreateLabel("0", -2, 517, 803, 29,1)
           GUICtrlSetBkColor(-1, 0x008000)
           GUICtrlSetFont(-1, 24, 800, 20, "Atari Small")
    $B1=   GUICtrlCreateButton("", -2, 544, 803, 50)
           GUICtrlSetBkColor(-1, 0x1A1A1A)
           GUICtrlSetState(-1, 128)

    $caixa=GUICtrlCreatePic("Imagens/caixa.bmp",  385, -200, 40, 33)
    For $i = 0 To 3 Step 1
        if $i < 3 Then $B[$i] = GUICtrlCreateButton("", 40 * $i + 40, 560, 22, 24, 131072)
        GUICtrlSetBkColor(-1, 0x008000)
        GUICtrlSetState(-1, 128)
        $Fan[$i] = GUICtrlCreatePic("Imagens/fan" & $i & "0.bmp", 390, 135, 30, 43)
    Next
    $pac = GUICtrlCreatePic("Imagens/pac2.bmp",  390, 376, 30, 43)
           GUISetState()
    Sleep(1000)
    SoundPlay("Sounds/inicia.mp3",1)
    Restart()
    HotKeySet("{esc}", "Sair")
    AnimaPac(2)

    While 1
        $color  += 1
        $Tcaixa += 1
        $Tanima += 1
        If $Tpower       Then $Tpower -= 1
        If $color > 51   Then $color   = 0
        If $Tcaixa > 100 Then
            $Tcaixa = 0
            $cy = -210
            GUICtrlSetPos($caixa, 385, -200)
        EndIf
        If $gameOver Then
            GUICtrlDelete($pac)
            $posx = 390
            If $color > 50 Then GUISetBkColor(0x00441*$fx[0])
        EndIf
        For $i = 0 To 3 Step 1
            If Not $trinta[$i]  Then
                $return[$i] = 1
                While $return[$i]
                    $return[$i] = 0
                    Switch $rand[$i]
                        Case 0
                            If $map[$fy[$i]/30][$fx[$i]/30+1] <> "X" Then
                                $fanDir[$i] = 0    ;>
                            Else
                                $return[$i] = 1
                            EndIf
                        Case 1
                            If $map[$fy[$i]/30][$fx[$i]/30-1] <> "X" Then
                                $fanDir[$i] = 1   ;<
                            Else
                                $return[$i] = 1
                            EndIf
                        Case 2
                            If $map[$fy[$i]/30+1][$fx[$i]/30] <> "X" Then
                                $fanDir[$i] = 2    ;V
                            Else
                                $return[$i] = 1
                            EndIf
                        Case 3
                                If $fy[$i] <=  0 Then $fy[$i] = 510
                                If $map[$fy[$i]/30-1][$fx[$i]/30] <> "X" Then
                                    $fanDir[$i] = 3    ;^
                                Else
                                    $return[$i] = 1
                                EndIf
                    EndSwitch
                    If $return[$i] Then Sort($i)
                WEnd
            Else
                $mem[$i] = $fanDir[$i]
            EndIf
            If $fanDir[$i] = 0 Then
                $fx[$i]     += 15
                $trinta[$i] += 15
            EndIf
            If $fanDir[$i] = 1 Then
                $fx[$i]      -=15
                $trinta[$i]  +=15
            EndIf
            If $fanDir[$i] = 2 Then
                $fy[$i]      +=15
                $trinta[$i]  +=15
            EndIf
            If $fanDir[$i] = 3 Then
                $fy[$i]      -=15
                $trinta[$i]  +=15
            EndIf
            If $fy[$i] > 508 And $fanDir[$i] = 2 Then $fy[$i] =   0
            If $fy[$i] <=  0 And $fanDir[$i] = 1 Then $fy[$i] = 510
            If Not $morto Then GUICtrlSetPos($fan[$i], $fx[$i], $fy[$i]-15)
            If  $trinta[$i] > 20 Then
                $fanDir[$i] = 4
                $trinta[$i] = 0
            EndIf
            Sort($i)
            if $fx[$i] + 30 >= $posx And $fx[$i] <= $posx + 30 And $fy[$i] + 30 >= $posy And $fy[$i] <= $posy + 30 And Not $gameOver Then
                If $Tpower  Then
                    SoundPlay("Sounds/fantdie.mp3")
                Else
                        $morto = 1
                EndIf
            EndIf
        Next
        If $morto Then
            Restart()
        Else
            If   $Tanima > 4 Then $Tanima = 0
                If $posy > 508 And $dir = 3 Then $posy = -30
                if $posy <=  0 And $dir = 1 Then $posy = 540
                $pt  = $pontos
                if $dir = 0 Or $dir = 2 Then $dirAnterior = $dir
                If  GUIGetMsg(          )                                =-3   Then Exit
                If Not $gameOver Then
                    If _IsPressed("25", $dll) And $map[$posy/30  ][$posx/30-1] <> "x" Then $dir = 0 ; <
                    If _IsPressed("26", $dll) Then
                        if $posy > 0 Then
                            If $map[$posy/30-1][$posx/30  ] <> "x" Then $dir = 1 ; ^
                        EndIf
                    EndIf
                    If _IsPressed("27", $dll) And $map[$posy/30  ][$posx/30+1] <> "x" Then $dir = 2 ; >
                    If _IsPressed("28", $dll) And $map[$posy/30+1][$posx/30  ] <> "x" Then $dir = 3 ; v
                EndIf
                If $dir == 1 Then
                    if $posy > 0 Then
                        If $map[$posy/30-1][$posx/30  ] == "o" Then
                            $map[$posy/30-1][$posx/30] = "n"
                            GUICtrlDelete($pilu[$posy/30-1][$posx/30])
                            $pontos +=5
                            $Tpower = 50
                            _SoundPlay("Sounds/pilula.mp3")
                        ElseIf $map[$posy/30-1][$posx/30] == " " Then
                            GUICtrlDelete($ponto[$posy/30-1][$posx/30])
                            $map[$posy/30-1][$posx/30] = "n"
                            $pontos +=1
                            SoundPlay("Sounds/ponto.mp3")
                        EndIf
                    EndIf
                EndIf
                If $dir == 3 Then
                    If $map[$posy/30+1][$posx/30] == "o" Then
                        $map[$posy/30+1][$posx/30] = "n"
                        GUICtrlDelete($pilu[$posy/30+1][$posx/30])
                        $pontos +=5
                        $Tpower = 50
                        _SoundPlay("Sounds/pilula.mp3")
                    ElseIf $map[$posy/30+1][$posx/30] == " " Then
                        GUICtrlDelete($ponto[$posy/30+1][$posx/30])
                        $map[$posy/30+1][$posx/30] = "n"
                        $pontos +=1
                        SoundPlay("Sounds/ponto.mp3")
                    EndIf
                EndIf
                If $dir == 0 Then
                    If $map[$posy/30][$posx/30-1] == " " Then
                        $map[$posy/30][$posx/30-1] = "n"
                        GUICtrlDelete($ponto[$posy/30][$posx/30-1])
                        $pontos +=1
                        SoundPlay("Sounds/ponto.mp3")
                    ElseIf $posx + 30 >= $cx And $posx <= $cx + 30 And $posy = $cy Then
                        $cy = -200
                        $pontos += 100
                        _SoundPlay("Sounds/caixa.mp3")
                        GUICtrlSetPos($caixa, $cx, $cy+10)
                        $Tcaixa = 0
                    EndIf
                EndIf
                If $dir == 2 Then
                    If $map[$posy/30][$posx/30+1] == " " Then
                        $map[$posy/30][$posx/30+1] = "n"
                        GUICtrlDelete($ponto[$posy/30][$posx/30+1])
                        $pontos +=1
                        SoundPlay("Sounds/ponto.mp3")
                    ElseIf $posx + 30 >= $cx And $posx <= $cx + 30 And $posy = $cy Then
                        $cy = -200
                        $pontos += 100
                        _SoundPlay("Sounds/caixa.mp3")
                        GUICtrlSetPos($caixa, $cx, $cy+10)
                        $Tcaixa = 0
                    EndIf
                EndIf
                If $Tcaixa > 50 Then
                    $cy = 210
                    GUICtrlSetPos($caixa,$cx-5, $cy-10)
                EndIf
                If $dir = 0 And $map[$posy/30  ][$posx/30-1] <> "x" Then $posx -= 30
                If $dir = 1 Then
                    If $posy > 0 And $map[$posy/30-1][$posx/30  ] <> "x" Then
                        $posy -= 30
                    ElseIf $posy <=0 Then
                        $posy -= 30
                    EndIf
                EndIf
                If $dir = 2 And $map[$posy/30  ][$posx/30+1] <> "x" Then $posx += 30
                If $dir = 3 And $map[$posy/30+1][$posx/30  ] <> "x" Then $posy += 30
                If Not $morto Then GUICtrlSetPos($pac,$posx,$posy-14)
                If $pontos > $pt Then GUICtrlSetData($B2,$pontos)
                If $dir = 0 Or $dir = 2 And $mem <> $fanDir then
                    AnimaPac($dir)
                ElseIf $mem <> $fanDir then
                    AnimaPac($dirAnterior)
                EndIf
                If $i > 2 Then $map[5][14]="x"
        EndIf
    WEnd

    Func Restart()
        if $morto Then
            $vida -=1
            SoundPlay("Sounds/morre.mp3")
        EndIf
        GUICtrlSetImage($pac,"Imagens/pac5.bmp")
        For $i = 0 To 3 Step 1
            $fy[$i]     = 150
            $fx[$i]     = 390
            $return[$i] =   0
            $trinta[$i] =   0
            $mem[$i]    =   0
            $rand[$i]   =   0
            $sort[$i]   =   1
            if $morto Then
                Sleep(400)
                GUICtrlSetImage($pac,"Imagens/pac" & $i+6 & ".bmp")
            EndIf
        Next
        If $vida < 0 Then
            GUICtrlDelete($pac)
            $gameOver = 1
            GUICtrlDelete($B[0])
            GUICtrlSetData($B1, "                                                                      Autoit")
            GUICtrlSetFont($B1, 24)
        EndIf
        For $i = 0 To 3 Step 1
            GUICtrlSetPos($Fan[$i],390, 135)
        Next
        Sleep(300)
        if Not $gameOver Then GUICtrlSetImage($pac,"Imagens/pac0.bmp")
        $posx = 390
        $posy = 390
        GUICtrlSetPos($pac,$posx,$posy-14)
        $dir = 0
        $map[5][14]="n"
        if $morto Then
            if $vida = 1 Then GUICtrlDelete($B[2])
            If $vida = 0 Then GUICtrlDelete($B[1])
            Sleep(1000)
            If Not $gameOver Then SoundPlay("Sounds/inicia.mp3",1)
        EndIf
        $morto = 0
    EndFunc

    Func AnimaPac($face)
        If $Tanima = 0 Then
            For $i=0 To 3 Step 1
                If Not $Tpower Then GUICtrlSetImage($Fan[$i],"Imagens/fan" & $i & "0.bmp")
            Next
        EndIf
        If $Tanima = 1 Then
            if $face = 0 Then
                GUICtrlSetImage($pac,"Imagens/pac4.bmp")
            ElseIf $face = 2 Then
                GUICtrlSetImage($pac,"Imagens/pac5.bmp")
            EndIf
            GUICtrlSetImage($pilu[2][1],"Imagens/zero.bmp")
            GUICtrlSetImage($pilu[2][25],"Imagens/zero.bmp")
            GUICtrlSetImage($pilu[14][25],"Imagens/zero.bmp")
            GUICtrlSetImage($pilu[14][1],"Imagens/zero.bmp")
            For $i=0 To 3 Step 1
                If $Tpower < 25 Then GUICtrlSetImage($Fan[$i],"Imagens/fan" & $i & "1.bmp")
            Next
        EndIf
        If $Tanima = 2 Then
            For $i=0 To 3 Step 1
                If Not $Tpower Then GUICtrlSetImage($Fan[$i],"Imagens/fan" & $i & "2.bmp")
                If     $Tpower Then GUICtrlSetImage($Fan[$i],"Imagens/fan.bmp")
            Next
        EndIf
        If $Tanima = 3 Then
            For $i=0 To 3 Step 1
                If $Tpower < 10 Then GUICtrlSetImage($Fan[$i],"Imagens/fan" & $i & "3.bmp")
            Next
            GUICtrlSetImage($pilu[2][1]  ,"Imagens/pilula.bmp")
            GUICtrlSetImage($pilu[2][25] ,"Imagens/pilula.bmp")
            GUICtrlSetImage($pilu[14][25],"Imagens/pilula.bmp")
            GUICtrlSetImage($pilu[14][1] ,"Imagens/pilula.bmp")
            if $face = 0 Then
                GUICtrlSetImage($pac,"Imagens/pac0.bmp")
            ElseIf $face = 2 Then
                GUICtrlSetImage($pac,"Imagens/pac2.bmp")
            EndIf
        EndIf
        Sleep(130)
    EndFunc

    Func LerMapa()
        $gameOver = 0
        For $i=0 To 26 Step 1
            For $j=0 To 17 Step 1
                If $map[$j][$i] == "X" Then
                    GUICtrlCreatePic("Imagens/tijolo.bmp",$i*30,$j*30,30,15)
                ElseIf $map[$j][$i] = "x" Then
                    If $j < 6 And $j > 4 And $i < 15 And $i > 13 Then
                        GUICtrlCreatePic("Imagens/tijolo.bmp",$i*30+10,$j*30-15,20,60)
                    ElseIf $j < 6 And $j > 4 And $i < 13 And $i > 11 Then
                        GUICtrlCreatePic("Imagens/tijolo.bmp",$i*30,$j*30-15,20,60)
                    Else
                        GUICtrlCreatePic("Imagens/tijolo.bmp",$i*30,$j*30,30,30)
                    EndIf
                ElseIf $map[$j][$i] = "o" Then
                    $pilu[$j][$i] = GUICtrlCreatePic("Imagens/pilula.bmp",$i*30+4,$j*30-3,20,20)
                ElseIf $map[$j][$i] = " " Then
                    $ponto[$j][$i]= GUICtrlCreatePic("Imagens/ponto.bmp",$i*32-20,$j*30+5,20,8)
                EndIf
            Next
        Next
    EndFunc

    Func Sair()
        DllClose($dll)
        Exit
    EndFunc

    Func Sort($si)
        Dim $aux[4]
        $aux[$si] = 1
        While $aux[$si]
            $aux[$si]  = 0
            $rand[$si]  = Random(0,3,1)
            If $mem[$si]  = 0 Then
                if $rand[$si] = 1 Then $aux[$si]  = 1
            ElseIf $mem[$si]  = 1 Then
                if $rand[$si] = 0 Then $aux[$si]  = 1
            ElseIf $mem[$si]  = 2 Then
                if $rand[$si] = 3 Then $aux[$si]  = 1
            ElseIf $mem[$si]  = 3 Then
                if $rand[$si] = 2 Then $aux[$si]  = 1
            EndIf
        WEnd
    EndFunc
Link to comment
Share on other sites

Can you attach additional files like:

"Imagens/pac5.bmp"

"Sounds/morre.mp3"

....

...

..

.

??

EDIT:

sorry. I see DrobpBox...

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

Its really funny game.

One suggestion:

You can add a sort of menu.

start

Play Again

Continue

EXIT

Because now when somebody use the ESC key, the game going to exit immediately, and it should display the menu.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...