Sign in to follow this  
Followers 0
bigbangnet

Output arch question

3 posts in this topic

#1 ·  Posted (edited)

When i compile my script i have the option of using x86 AND x64 at the same time. What happens if i use both ? Any negative impact on certain architectures ?

I'm asking cause i'm following a tutorial and in it I saw some script on display system information so I decided to make a new one for myself and I personalized it for my system (ipaddress, username, blah blah blah). Even if its simple information i wanted to know the effect on choosing x86 and x64 arch option in "Autoit3Wrapper GUI to Compile AutoIt3 Script.

here is my script if you guys are interested to know

#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.0
Author:      Stéphane Vaillancourt
Script version: 0.9
Script Function:
Vous affiche les informations de l'ordinateur comme l'addresse IP, le nom du pc, le nom du domaine
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
Local $heure
Local $OS = @OSVersion
Local $sp = @OSServicePack
Local $arch = @CPUArch
Local $lang = @OSLang
Local $mui = @MUILang
Local $domain = @LogonDomain
Local $nompc = @ComputerName
Local $username = @UserName
Local $ip = @IPAddress1
Local $deskheight = @DesktopHeight
Local $deskwidth = @DesktopWidth
Switch @HOUR ; A switch statement. We are going to make value returned by @HOUR more readable.
Case 7 to 11
  $heure = "Bonjour"
Case 12 to 17
  $heure = "Bonne après-midi"
Case 18 to 24
  $heure = "T'es encore ici ?"
EndSwitch
Switch $OS ; A switch statement. We are going to make value returned by @OSVERSION more readable.
Case "WIN_2008"
  $OS = "Windows Server 2008"
Case "WIN_8"
  $OS = "Windows 8"
Case "WIN_7"
  $OS = "Windows 7"
Case "WIN_VISTA"
  $OS = "Windows Vista"
Case "WIN_2003"
  $OS = "Windows Server 2003"
Case "WIN_XP"
  $OS = "Windows XP"
Case "WIN_2000"
  $OS = "Windows 2000"
Case "WIN_NT4"
  $OS = "Windows NT 4.0"
Case "WIN_ME"
  $OS = "Windows ME"
Case "WIN_98"
  $OS = "Windows 98"
Case "WIN_95"
  $OS = "Windows 95"
Case Else
  $OS = "Unknown!"
EndSwitch
Switch $arch
Case "X86"
  $arch = " - 32 bit"
Case "X64"
  $arch = " - 64 bit"
EndSwitch
Func Language()
Select
  Case StringInStr("0409 0809 0c09 1009 1409 1809 1c09 2009 2409 2809 2c09 3009 3409", @OSLang)
   Return "Englais"
  Case StringInStr("040c 080c 0c0c 100c 140c 180c", @OSLang)
   Return "Français"
  Case Else
   Return "Autre(Ne peut pas déterminer le language avec @OSLand directement)"
    EndSelect
EndFunc
Func LanguageMUI()
Select
  Case StringInStr("0409 0809 0c09 1009 1409 1809 1c09 2009 2409 2809 2c09 3009 3409", @MUILang)
   Return "Englais"
  Case StringInStr("040c 080c 0c0c 100c 140c 180c", @MUILang)
   Return "Français"
  Case Else
   Return "Autre(Ne peut pas déterminer le language avec @OSLand directement)"
    EndSelect
EndFunc
$text = $heure & @CRLF & @CRLF
$text &= "Nom du pc : " & $nompc & @CRLF
$text &= "Nom de l'utilisateur : " & $username & @CRLF
$text &= "Domaine : " & $domain & @CRLF
$text &= "Addresse IP : " & $ip & @CRLF & @CRLF
$text &= "Version du Windows : " & $OS & @CRLF
$text &= "Service pack : " & $sp & @CRLF & @CRLF
$text &= "Language de Windows : " & Language() & @CRLF
$text &= "MUI : " & LanguageMUI() & @CRLF & @CRLF
$text &= "Resolution : " & $deskwidth & " X " &$deskheight
MsgBox(0, "Information du PC version 0.9", $text)

PS: yup, text is in french... :)

Edited by bigbangnet

** Warning **Noobie ahead. handle with caution

Share this post


Link to post
Share on other sites



If you use the line #AutoIt3Wrapper_Compile_Both=y it will create 2 different exe files, one x86 and one x64.


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

When i compile my script i have the option of using x86 AND x64 at the same time. What happens if i use both ? Any negative impact on certain architectures ?

You are overthinking it. It just compiles twice. You get one file called Scriptname.exe and the other Scriptname_x64.exe

The it originated from.

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