kylomas Posted December 9, 2011 Posted December 9, 2011 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
kylomas Posted December 13, 2011 Author Posted December 13, 2011 (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 December 13, 2011 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
Developers Jos Posted December 13, 2011 Developers Posted December 13, 2011 @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*"') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
kylomas Posted December 13, 2011 Author Posted December 13, 2011 (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 December 13, 2011 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
AdmiralAlkex Posted December 14, 2011 Posted December 14, 2011 (edited) @kylomasI don't think you "got" Jos message. If you want to create a x86 object, use x86 AutoIt.#AutoIt3Wrapper_UseX64=nYou 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 December 14, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
kylomas Posted December 14, 2011 Author Posted December 14, 2011 (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 December 14, 2011 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
AdmiralAlkex Posted December 14, 2011 Posted December 14, 2011 Windows redirects you, not the application itself.Edit: Does this not only apply to complied scripts. I'm running this as .au3You 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
kylomas Posted December 14, 2011 Author Posted December 14, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now