Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/23/2015 in all areas

  1. Melba23

    New MVPs

    Hi, Some good news today: LarsJ, mikell and mLipok have accepted the invitation to become MVPs. I am sure you will all join me in congratulating them on their new status. M23
    5 points
  2. Here is a complete example of combining Autoit with PHP and MySQL was written by me. Include: Sign in, sign out.Create, read, update and delete data between client (AutoIt) and server (PHP/MySQL).Only allow user to log into a client at the same time. Video demo: https://www.youtube.com/watch?v=gQyfXLO0pls Screenshot (Main GUI) Usage If you want to test on your computer, you will need to create a localhost. I recommend to use WAMP or XAMPP. First, create a new database by importing from SETUP.sql file (see video for more info). Then, edit your path to SERVER in AutoIt-PHP-MySQL.au3: Global Const $SERVER = 'http://localhost/AutoIt/index.php?act='Make sure you have copied all files in the folder "PHP + MySQL" into a folder named AutoIt in your Localhost (www or htdocs directory). Yeah, now you can open the file "AutoIt-PHP-MySQL.au3" and try it yourself! Default username and password is: admin Download: Tutorial-AutoIt-PHP-MySQL-v1.0.rar[Tutorial] AutoIt - PHP - MySQL v2.0.zip (Thank @JohnOne for having suggested using zip format)Changelog ----- Hope you enjoyed it!
    1 point
  3. sisio, I have had enough of this. You seem incapable of asking a sensible question and I am becoming unhappier each time I look at that website and investigate the sort of thing it supports. This thread is now closed - please do NOT start another. M23
    1 point
  4. sisio, Delighted I could help - although I am not too sure just how I did! M23
    1 point
  5. I am glad that helped.
    1 point
  6. sisio, Are you happy now or do you still have a question? M23
    1 point
  7. Sisio, AutoIt3 itself is the stub (AutoIt3.exe) and SciTe and/or Aut2exe is the builder. SciTe and/or Aut2exe is the application a user operates and inputs his info which is used by AutoIt3. AutoIt3.exe is the application which should NOT even be touched by the User. SciTe and/or Aut2exe uses AutoIt3.exe to give an Output, a new application is commonly known as a "Script" but can also have the AutoIt3 stub combined with it and compiled into an EXE. The Script (or the stub/script combined as an EXE) is the final output. Ready to spread. --- My apologies to all of the developers and contributors to AutoIt for the overly simplified description. ---
    1 point
  8. sisio, What exactly are you trying to do? <snip> already seems to have what you want, so what are you asking for now? M23
    1 point
  9. All I can find on stub and builder has to do with injecting code into another application. Is this what you want to do?
    1 point
  10. sisio, Fine. I suggest you take JohnOne's advice in post #8 above and look in depth at the code of ISN AutoIt Studio. But beware, this is no simple task and if you want to do it all in AutoIt you are going to have to devote a huge amount of time and effort into learning the language - I feel I would be remiss if I did not suggest to you that a simpler project might be a more suitable place to start.. Good luck in any event. M23
    1 point
  11. Did you just copy and paste that from here https://www.sinister.ly/Thread-Tutorial-VB-Net-Making-a-Builder-and-Stub-Program
    1 point
  12. iamtheky

    Hosts file

    I would guess anything that DNS can resolve is fair game
    1 point
  13. JohnOne

    Convert Files to hex

    $sometext = FileRead("somepathtofile") ;Process text FileWrite("somepathtofile", $sometext")Sorry but I'm not writing such a simple script for someone who has been around for 3 years. If you cannot do this by now, you might as well train as a PE teacher.
    1 point
  14. Jon

    Hosts file

    By the way, I only said your example 1 was invalid because of "0,0,0,0" rather than "0.0.0.0".
    1 point
  15. Jon

    Hosts file

    Yes it's valid. www.autoitscript.com and autoitscript.com could have two different addresses.
    1 point
  16. iamtheky

    Hosts file

    so IPv6 and its shorthand are also options I guess that would be forced upon you rather than elective. ::1 localhost
    1 point
  17. Jon

    Hosts file

    I think 2-7 are all valid. The format is pretty much only hinted at on various MSDN pages though. https://support.microsoft.com/en-us/kb/105997 Its protocol neutral, so you'd never have a http:// in there. It's just a DNS lookup for A records.
    1 point
  18. peggy, I cannot help with the Excel bit, but here is some logic to help you with the scheduling part: #include <Array.au3> Global $aArray[8][7] ; Arrays of group and choices Global $aMaryChoice[] = ["Mary", "Apple", "Banana", "Tomato", "Watermelon", "Strawberry"] Global $aSamChoice[] = ["Sam", "Apple", "Tomato", "Strawberry"] ; Fill array with choices and group For $i = 0 To UBound($aMaryChoice) - 2 $aArray[$i][0] = $aMaryChoice[$i + 1] $aArray[$i][1] = $aMaryChoice[0] Next For $j = $i To $i + UBound($aSamChoice) - 2 $aArray[$j][0] = $aSamChoice[$j - $i + 1] $aArray[$j][1] = $aSamChoice[0] Next ; And here it is _ArrayDisplay($aArray, "Initial fill", Default, 8, Default, "Fruit|Name|1|2|3|4|5") ; Make choices for next 5 turns For $i = 1 To 5 ; Mary chooses randomly Do $iMarySelection = Random(1, UBound($aMaryChoice) - 1, 1) ; Check that choice has not already been made - choice is empty if already chosen Until $aMaryChoice[$iMarySelection] <> "" ; Get choice content $sMarySelection = $aMaryChoice[$iMarySelection] ; Clear choice to p[revent repeat $aMaryChoice[$iMarySelection] = "" ; Mark choice $aArray[$iMarySelection - 1][$i + 1] = "M" ; if Sam still has a choice If $i <= UBound($aSamChoice) - 1 Then ; Sam chooses randomly Do $iSamSelection = Random(1, UBound($aSamChoice) - 1, 1) ; Check selection is still available AND that is not the same as Mary Until $aSamChoice[$iSamSelection] <> "" And $aSamChoice[$iSamSelection] <> $sMarySelection ; Clear choice to prevent repeat $aSamChoice[$iSamSelection] = "" ; Mark choice $aArray[$iSamSelection - 1 + UBound($aMaryChoice) - 1][$i + 1] = "S" EndIf ; Here is what was chosen in this round _ArrayDisplay($aArray, "Choice " & $i, Default, 8, Default, "Fruit|Name|1|2|3|4|5") NextI hope it helps. M23
    1 point
  19. Introduction The recently introduced feature of passing function pointers as arguments makes it possible, with the help of this UDF to create abriatary events with arguments. Here is a very simple example of a single-execution event: #include "GlobalEvents.au3" _GlobalEvents_Create("@SEC = 30", Test1) While Sleep(30) WEnd Func Test1() MsgBox(0, "Test", "@SEC equals 30!") EndFuncThis event will be triggered once, when @SEC is 30 and then die. Features Create how many events you want.An event can be created on every possible single-line AutoIt expression.You can pass an array of arguments to the event handler.There are two types of events: Single-execution (those are triggered once, then die - though you can reset them) and Looping, where the event triggers every time it evaluates true.You can pause and restart the evaluation of all events.You can set the delay between evaluations (standard is 333ms).You can destroy events. (The global event pool has an initial size of 1024 to prevent ReDim-ing. Destroying old events further prevents ReDim-ing.)It doesn't matter if your script operates in OnEvent or Message mode. You can use everything as usual (yes, even OnEvents and Adlib). Examples 1. Single-Execution (+ with arguments) 2. Looping execution (+ custom delay) Download See attachments. Example.au3 Example_Continious.au3 Example_Minimal.au3 GlobalEvents.au3
    1 point
×
×
  • Create New...