Sign in to follow this  
Followers 0
ColinRH

I need to expand an AutoIt macro to see how it works

5 posts in this topic

I have searched everywhere I can think of and can't find the answer. Also I can't find the source for any macros in my AutoIt folders.

Basically we have a compiled AutoIt script being used as an installer. It makes a decision about the operating system based on $OSVersion. On some PCs it seems to be getting the return value from this macro "wrong" but only when installing from a CD. It isn't happening on all PCs and it doesn't happen on the test PC when the compiled script is copied to HDD frm the CD and run from there (as a read only file exactly as it would be on the CD).

We believe we have eliminated the possibility of any interference from AV software. I would really like to see what $OSVersion does "beneath the surface".

A test script with debug message boxes, based on the script that's giving problems, works OK. I and my co-workers are completely baffled by this problem.

A snippet of the script is below:

Switch @OSVersion

Case "WIN_2008R2", "WIN_7", "WIN_2008", "WIN_VISTA"

$OS=1

Case Else

$OS=0

EndSwitch

The script, later on, is behaving as though $OS = 0 - the PC in question is "WIN_7"

Share this post


Link to post
Share on other sites



ColinRH,

The AutoIt source is closed and has been for many years so only a Dev could give you the answer as to what goes on "under the hood" for that macro. But you are not the first to find that it is not totally reliable for the later OSs - ususally because some form of "compatability mode" has been activated. :(

Perhaps this UDF might offer more reliable results? :huh:

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

Hi M23,

Thanks for the concise answer - I can stop searching for something that's not findable. I'll look at the UDF and see if we can use that and if it solves the problem. I'd have liked to mark your post as "like this" but it won't let me :mad: - maybe I'm too new a user!

Share this post


Link to post
Share on other sites

ColinRH,

I have changed your member group so there is no longer a 5 post limit for the first 24 hours - I get the feeling that it might have come into play. ;)

And although I do not particularly seek "Like"s, see if that works now too!. :D

M23

1 person likes this

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

M23

Thanks for that. I think a good sensible reply to a post deserves proper recognition!

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