Sign in to follow this  
Followers 0
kylomas

Possible Win7 Compatibility Issue

8 posts in this topic

Good Evening,

@ProgramFilesDir is pointing to "c:\program files" on my Win7 installation. This folder contains 64 bit mods, in particular the 64 bit version of IE. This caused an issue with an app that is NOT 64 bit compliant.

Can I change what @ProgramFilesDir is pointing at? Do I need to change the IE UDF where it references the load library?

Any suggestions or workarounds?

Thanks,

Kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

IE Experts,

The IE.udf uses the following stmt to create the IE object:

Local $o_object = ObjCreate("InternetExplorer.Application")

How can I tell what module is being used, and, how can I point it at the 32 bit version?

Thanks,

kylomas

Edit: Am running Win7 64 bit

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

@ProgramFilesDir will point to one of the 2 "Program Files" directories depending on what version of AutoIt3 is used.

Try running these and see the difference:

#AutoIt3Wrapper_UseX64=y
Run(@comspec & ' /k Dir "' & @ProgramFilesDir & 'AutoIT*"')

#AutoIt3Wrapper_UseX64=n
Run(@comspec & ' /k Dir "' & @ProgramFilesDir & 'AutoIT*"')

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Jos,

Thank you for your prompt reply.

Autoit resides in the (x86) program files directory, however, I believe that my problem is where iexplore.exe resides or where it is being called from in the IE UDF.

That is what caused me to ask my auestion from posat #2.

Thanks,

kylomas

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

@kylomas

I don't think you "got" Jos message. If you want to create a x86 object, use x86 AutoIt.

#AutoIt3Wrapper_UseX64=n

You will now run the x86 IE.

Edit: And read File System Redirector on why @ProgramFilesDir points to "Program Files" for x64 apps and "Program Files (x86)" for x86 apps.

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

AdmiralAlkex,

Thanks, I read all the doc that I could find at MSDN on redirection and WOW shit.

When I looked through the IE UDF I did not see logic for "if 64 bit then... else..." type processing. This wrapper directive implies that there is either logic to select the correct libraries or two different sets of libs. Is this correct (just trying to understand how this is setup)?

kylomas

Edit: Does this not only apply to complied scripts. I'm running this as .au3

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Windows redirects you, not the application itself.

Edit: Does this not only apply to complied scripts. I'm running this as .au3

You are not making sense. An application is an application whether it's called AutoIt3.exe or MyScript.exe.

Use #AutoIt3Wrapper_UseX64 to set what to compile/run with.

Share this post


Link to post
Share on other sites

AdmiralAlkex,

I know I'm not making any sense. I'm missing a piece to this puzzle. Where do I set #autoit3wrapper?

I appreciate your patience. Comming from the mainframe world sometimes Windows seems bass-ackward to me!!

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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