Jump to content

Help with my code again. Language detection


Recommended Posts

Hi guys, its me again.

Yesterday BrewManNH posted This on my thread

#include <IE.au3>

Local $oIE = _IE_Example("basic")

ConsoleWrite(_IEPropertyGet($oIE, "browserlanguage") & @LF)

The problem is that i need to use another handler on _IEPropertyGet function.

This is what i`ve done so far.

Func FileMenuTests($window)
Local $oIE = _IE_Example("basic")

Local $IELanguage = _IEPropertyGet($oIE , "browserlanguage")    - my handler actually is $ie9handle  but the only way i get to use porperty get.. is this way.
ConsoleWrite("Language: " & $IELanguage)
Select
Case not StringInStr ( $IELanguage, "en-us") = 0
If @OSArch = "X86" Then
if @OSVersion = "WIN_7" Then
FileMenuTestsx32($window)
EndIf
ElseIf @OSArch = "X64" Then
if @OSversion = "WIN_7" Then
FileMenuTestsx64($window)
EndIf
EndIf
Case Not StringInStr ( $IELanguage, "") = 0
EndSelect
EndFunc

is it because $oIE handler refers to #include <IE.au3>?

how can i make this work for me ?

Link to comment
Share on other sites

  • Moderators

Hi, LucasM. Why would you create another thread for the same issue? You have the one going on this topic already, and people are trying to assist you. Creating this forces someone to go back and read that thread before understanding your issue fully. Make it easy for us to assist you by sticking to one topic, please. :)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

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