Sign in to follow this  
Followers 0
Levisaxos

Windows blocking my compiled autoit script

8 posts in this topic

Greetings,

I'm quite new to autoit.. and mostly use it for really basic stuff such as keyboard / mouse control and tooltip information.

A friend of mine asked me to create a small script for her that does some actions, so I started out to make a script for her and see if she can run it without having AutoIt installed on her computer.

She noticed windows wont allowed her to run the compiled script.

I created a small script which only showed a random text in a while loop.

Like:

While(1)
 
    Tooltip("Hey")
Wend

When she tried to open it windows gave her the message (Attempting to translate from dutch):

Windows has detected that this file might be dangerous.

To protect your computer better access to this file has been blocked.

Am I doing anything wrong or can a computer not run AutoIt Compiled scripts unless it has AutoIt installed ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Levisaxos,

You do not need AutoIt installed to run a compiled script. :rip:

I would imagine it is some form of AntiVirus reacting to the executable. Did you compress the executable with upx? If so, try compiling it without using compression and see if that helps. :D

M23

P.S. Welcome to the AutoIt forum, by the way! :oops:

Edited by Melba23

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

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

That is suspiciously like the message from Windows defender. What version of AutoIt did you compile with? The release version or the Beta?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Levisaxos,

You do not need AutoIt installed to run a compiled script. :rip:

I would imagine it is some form of AntiVirus reacting to the executable. Did you compress the executable with upx? If so, try compiling it without using compression and see if that helps. :D

M23

P.S. Welcome to the AutoIt forum, by the way! :oops:

I'm not sure if I compressed the executable. I just right clicked my script (<Name>.au3) and clicked "Compile Script (x86) since the directed computer is not 64 bit (as far as I know)

That is suspiciously like the message from Windows defender. What version of AutoIt did you compile with? The release version or the Beta?

Version 3.3.6.1. I'm not sure wether it's a beta or full release.

As far as I know the only anti virus stuff my friend has on her computer is AVG. However when at home again, I'll ask her to check wether windows defender is active and if so if she would like to disable it.

Share this post


Link to post
Share on other sites

Levisaxos,

AVG disables Windows Defender automatically as they do not get on well together. If she has managed to get Defender turned back on, I would suggest turning it back off again - that might well solve your problem as I run AutoIt executables under AVG with no problem at all. :oops:

To get an uncompressed executable, open the script in SciTE and then press Ctrl-F7 or select <Tools - Compile> from the menu. When the dialog opens, uncheck the "Use upx" checkbox. :D

M23


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

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

If you right click the file and go to Properties, is there an option to "Unblock" the file. Sometimes if you've downloaded a file from another computer Windows will block access to it until you tell it that it's safe to run it.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

It's definitly not a virus (unless you wrote it as one) but I'm kind of leaning towards DEP or possibly UAC. You could try disableing those one at a time to see if it helps on that system. I suggest you re-enable them after testing if that's what they are used to.

3.3.6.1 is the release version and it's digitally signed so that's not the problem.

Also google that message you are getting and after much reading you will find out how to allow that program to run. I forget the exact steps off the top of my head.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
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
Sign in to follow this  
Followers 0