Jump to content

Recommended Posts

Posted

Also the "guy" who probably will add this, is the one who posted the original question.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 2/5/2013 at 2:02 PM, 'JLogan3o13 said:

Yeah, I hear that "guy" is usually on the ball :)

It's me I was talking about. -_0

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • 2 weeks later...
  • 3 weeks later...
Posted

Q: Why is an incorrect PID being returned from the Run method?

A1: The application you are executing is extracting the files somewhere else, probably %temp%, and executing the actual payload after extraction.

The PID you're getting will be of the extractor. A perfect example would be an SFX archive.

A2: For several reasons, the application may relaunch itself and generate a new PID in the process.

A perfect example would be TeamViewer [Quick Connect]. If TeamViewer is launched without administrative privileges, it will relaunch with Admin privileges therefore spawning a new process and PID.

Ex:

Resolve A1: Use an application like Universal Extractor [Powered by AutoIt] to extract the payload and implement it into a FileInstall() procedure.

Resolve A2: Processes will spawn with the parent execution level. So if an application requires to be ran as Admin, but your script doesn't have admin privileges, then the application may relaunch automatically [ultimately causing an issue in the PID return]. Simply add #RequireAdmin or modify the requested execution level of your script to resolve this issue.

SIGNATURE_0X800007D NOT FOUND

  • 5 months later...
Posted

Q: I find a bug / issue . Where I can report this ?

A: [Please add the appropriate response.]

Ex: none

 

Q: I have a Feature Reqest . Where I can report this ?

A: [Please add the appropriate response.]

Ex: none

 
 

Q: I find a HelpFile issue. Where I can report this ?

A: [Please add the appropriate response.]

Ex: none

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:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

mlipok
A: Try to study without spending personal time of the experienced professional. All they would say is they have said in the help file.
A: Be ready that the professional will find one million mistakes in it and most likely he should teach you to write this function.  Learn what already exists.
A: Don't set to itself this purpose.

Edited by AZJIO
Posted

I think that for beginners, some questions they may have would be:

Q1: I need my script to perform two tasks simultaneously. Can that be done?

A1: AutoIt runs commands in sequence, so one task must complete for the script to move on.

E1: None

Q2: How many cores can AutoIt use from my PC? Can I specify that in my script?

A2: AutoIt does not utilize multithread capabilities. You cannot specify how many it uses. (or at least I think this is correct).

E2: None

Q3: What are the advantages of compiling as 64 bit vs 32 bit?

A3: (I am not sure)

E3: None

I don't know if this is the kind of questions Guinness had in mind, but those three came to immediately when I came across this thread. Perhaps you could categorize the FAQs as general, scripting, best practices, etc.

  • 5 months later...
Posted

Not sure if this is the right place to report this - looked in the Bug Tracker, but that seems to be more oriented on the program itself.

I run across various 'help file' bugs (as I'm still learning and reading/testing a lot of the examples) and didn't know where to report them, then I found this thread and, today, ran across a new doc bug.  

https://www.autoitscript.com/autoit3/docs/functions/GUICtrlSetState.htm

the line 

Local $iOK = GUICtrlCreateButton("OK", 310, 370, 85, 25) 

sets the button outside the viewable area, which was set with 

GUICreate("Example", 420, 200, -1, -1, -1, $WS_EX_ACCEPTFILES) 

(only 200 wide, but the button is set at 370)

Let me know if there is a better place to report such things.

Posted

In Trac please.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • 5 months later...
Posted

This may not be relevant to all but does crop up often for me

Possible addition for the helpfile
At the top of each page just above Parameters can we have a similar type section that has a header of Includes ie

  Quote

Includes or Needed Includes

#include <AutoItConstants.au3>

 

Case in point 

This was just posted

when you run it it gives an error

: warning: $STDOUT_CHILD: possibly used before declaration.

Ok so i hauled ass to the helpfile to Run page and i have no indication which include to use as nothing is mentioned??

The only way i could find it was to search for $STDOUT_CHILD in the helpfile

and go through the topics one at a time to find one that mentioned the include

 

#include <AutoItConstants.au3>

which i found a mention to in the StdoutRead

 AutoIts helpfile is damn good and a lot of work goes into it, and im not throwing rocks here but a small change to add the includes would be ever so helpfull for the lesser mortals like myself

Even if you didn't want a new header for it add it to the [optional] sections that it requires #include <AutoItConstants.au3> for optional components to work

This crops up quite a lot for me where i have to go digging because i have no idea what include/s are necessary

Many thanks for listening

Posted

Check the beta version and you will see Run() clearly states the include required. No bug.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

Chimaera,

From the 3.3.13.13 Help file for Run:

opt_flag

[optional] Controls various options related to how the parent and child process interact.
    $STDIN_CHILD (0x1) = Provide a handle to the child's STDIN stream
    $STDOUT_CHILD (0x2) = Provide a handle to the child's STDOUT stream
    $STDERR_CHILD (0x4) = Provide a handle to the child's STDERR stream
    $STDERR_MERGED (0x8) = Provides the same handle for STDOUT and STDERR. Implies both $STDOUT_CHILD and $STDERR_CHILD.
    $STDIO_INHERIT_PARENT (0x10) = Provide the child with the parent's STDIO streams. This flag can not be combined with any other STDIO flag. This flag is only useful when the parent is compiled as a Console application.
    $RUN_CREATE_NEW_CONSOLE (0x10000) = The child console process should be created with it's own window instead of using the parent's window. This flag is only useful when the parent is compiled as a Console application.
Constants are defined in AutoItConstants.au3
Look at the last line. ;)

M23

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

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • 2 months later...
Posted

Q: Can I post just the portion of code that I'm having trouble with and leave off any reference to the game?

A: Now that we know that your code is intended to automate a game, forum members can't help.  We have to follow the rules too.

X: None

Meds.  They're not just for breakfast anymore. :'(

Posted (edited)

Q: is there any support for directed branching or calling procedures at all? Inserting tons of flags to control flow is wasteful and tedious

A: NO. The developers heard, way back in CS101 that goto was evil and took it to heart. They have gone to extraordinary lengths to prevent directed branching. Since procedures could be used for this, that too was placed on the scrap file.

Edited by everseeker

Everseeker

  • Moderators
Posted

everseeker,

No-one is forcing you to use AutoIt. If you really miss GoTo that much, please feel free to move to another language. ;)

M23

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

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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