Jump to content

MachinistProgrammer

Active Members
  • Posts

    108
  • Joined

  • Last visited

About MachinistProgrammer

  • Birthday 11/13/1997

Recent Profile Visitors

285 profile views

MachinistProgrammer's Achievements

Adventurer

Adventurer (3/7)

7

Reputation

  1. I think it would be better to have both @CmdLine and @CmdLineRaw. A macro better expresses the behavior of $cmdline and by keeping both. But this would also make breaking changes for little gain.
  2. ​a reasonably easy solution would be ;BEGIN UPLOADER For $i = 1 To $arrayLength - 1 WinActivate(" File & Image Uploader 7.1.3 = Freeware =","") sleep (300) Controlclick(" File & Image Uploader 7.1.3 = Freeware =","","[CLASS:SysHeader32; INSTANCE:1]","left", 1, 483, 9) ;set the listing by alphabetical order Controlclick(" File & Image Uploader 7.1.3 = Freeware =","","[CLASS:TPanel; INSTANCE:1]","left", 1, 14, 23) ;click on the select file input sleep (500) ControlSend ("Open","","[CLASSNN:Edit1]", $array[$i]) sleep (400) Controlclick("Open","","[CLASSNN:Button2]") sleep (400) ;this lines actually say what file to upload starting from the first file in the array list Do sleep (100) ClipPut("") ;clipoard empty sleep (100) Controlclick(" File & Image Uploader 7.1.3 = Freeware =","","[CLASSNN:TTntListView.UnicodeClass1]") ;click to the output area of uptool to get either error code or down link Send("{HOME}") Send("{SHIFTDOWN}{END}{SHIFTUP} ") Send("{DEL}") Local $LINKZ = ClipGet() Select Case $LINKZ = "Error: Download link not found!" ContinueLoop Case $LINKZ <>"Error: Download link not found!" AND $LINKZ <> "" ExitLoop Until $LINKZ <> ""
  3. I seem to remember hearing that au3check used yacc or bison or something so dose anyone know where I can get a copy of the AutoIt grammar?
  4. has anyone come across a way to take a regex and generate a random string that matches like $my_random_string = randregex("[0-9_a-zA-z]+") msgbox(0,'',StringRegExp($my_random_string,"[0-9_a-zA-z]+"))
  5. This UDF divides the gui into halves. Is it possible to divide it into thirds like ISN AutoIt studio does?
  6. I don't think I've made the issue clear enough. I'll give an example. A couple of weeks ago I was writing a program to open a file on an external HDD, write some data then delete it every 5 minuets (it was to stop the problem with windows 8 turning of the HDD after 5 minuets when watching videos on external HDD's) I used to >Safely Eject a USB Drive check if a drive was an external HDD, And I used >_NTService to start the script as a service. Safely Eject a USB Drive includes winapi which includes securityconstants. _NTService had some of the same constants as securityconstants (probably was written before they were added) so securityconstants constants conflicted with _NTService constants
  7. A common problem I have is trying to use new and old autoit code, where the new code relies on newer UDF's and the UDF's have constants which are identical to constants declared in the the older code. I have come up with 3 potential solutions 1. access modifyers for #include (e.g. private #include "somefile.au3") 2. The autoit not raising an error if a constant or function was redeclared if it is identical to their original decleration 3. making global variables not used in the main script invisible to other #includes I hope the autoit team takes one of these ideas onboard as re-writing old autoit code to work with new autoit code is quite anoying.
  8. C is primarily procedural but if you look around there are various examples of OOP in C. anyway I wasn't saying autoit is going OOP just that Hash Tables will make doing OOP in autoit easier. its like lua it "dosen't" have OOP but it can be implemented. (it was already possable via autoitObject)
  9. I have been away from Autoit for a while (Learning Digital Mars D) and I just had a poke around and noticed Autoit has associative arrays or hash tables as they are also known (like lua tables or D's associative array) and I noticed you cannot get dot access for calling functions but you can still use funcname name. I presume that it must be a bug. I also noticed that Manadar said that at 100k keys plus that there is a speed drop off. I think that would be because Autoit would have to check for duplications before assigning toe next key. Finally I am very happy with the implementation of Maps because it means a proper OOP future for Autoit is now in sight local $class[] Func somefunc($str) MsgBox(0,'',$str) EndFunc $class.afunc = somefunc somefunc(FuncName($class.afunc)) $class.afunc("s")
  10. how dose autoitObject create new com classes dynamically? i thought that com objects were static
  11. i ave writen the following in VB.Net <ComClass(core.ClassId, core.InterfaceId, core.EventsId)> Public Class core Public Const ClassId As String = "790D4506-D57D-4E2D-935A-1CC02C4B7CB4" Public Const InterfaceId As String = "0568FCF5-248C-4853-AFC6-309A838EA978" Public Const EventsId As String = "E81585D3-D5C3-4344-A830-D18A54F6A64E" Public Sub New() MyBase.New() End Sub Public Event AnEvent(test As String) Public Sub newevent(yourstring As String) RaiseEvent AnEvent(yourstring) End Sub End Class it works fine. however when i use objevent in autoit to hook AnEvent objevent sets @error to 1. where have i err'd should it be called with Called with <dllname>.core <dllname>.core.AnEvent or <dllname>.AnEvent or have i written the VB.Net Event Wrong
  12. what happens if you pass an autoit function to a com object can you manipulate the function in any way? (eg call it or somthing)
  13. for some reason the dialog is not returning a proper hexdecemel
  14. i had a brife look and I think that this may be very usefull thanks for sharing
  15. What really I looked at the script and couldn't Find the bit that creates the button EDIT: Stupid Autocomplete
×
×
  • Create New...