Jump to content

ty2d

Members
  • Posts

    7
  • Joined

  • Last visited

ty2d's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Now I got (understood) it, thank you all for your help. Seems that I was left out in the dark yesterday
  2. Hi, thank you for your response. Maybe I wasn't clear enough. I would asume that the result for @ProgramFilesDir should be in both cases C:\Program Files or C:\Program Files (x86) but not depending on compiled (C:\Program Files (x86) or not compiled (C:\Program Files). I hope I could clarify what I'm meaning.
  3. I have a problem with the macro @ProgramFilesDir and would like to know if this is some sort of known problem or if I'm doing something wrong. When I use the macro @ProgramFilesDir under Windows 7 x64 uncompiled the result is C:\Program Files, after compiling this the result is C:\Program Files (x86). I get the same result when trying this from a network share. Can anybody explain this to me?
  4. Take a look into this thread: http://www.autoitscript.com/forum/index.ph...;hl=join+domain - from there i got my code to join a computer to the domain - did not need the gui stuff. Only problem i didn't solve until now is what to do when a machine account already exists
  5. ah, ok, got it by myself. thx for the help
  6. hm, could you give me an example how to do that?
  7. Hello, i'm a newbie to autoit and right now i'm trying to make a admin tool which will help our helpdesk fullfilling their service to our customer. because we've got several settlements here in the german region (the emea hq and the german hq) i want to make the gui multilingual (english and german) so if a user works on a english machine he'll get the english gui and on german machines the german gui. my code for this looks like: $strOsLanguage = @OSLang $strLGerman = "0407" If $strOsLanguage = $strLGerman Then #include <german.au3> Else #include <english.au3> EndIf $mNetwork = GUICtrlCreateMenu ($_network_) $msPing = GUICtrlCreateMenuitem ($_ping_, $mNetwork) $msNetPerf = GUICtrlCreateMenuitem ($_netperf_, $mNetwork) $mSystem = GUICtrlCreateMenu ($_system_) $msCmdPrompt = GUICtrlCreateMenuitem ($_cmd_, $mSystem) $msComputer = GUICtrlCreateMenuitem ($_manage_, $mSystem) The vars $_xxx_ are the language variables who are defined in the files german.au3 and english.au3 as Global Const. The If Else works, but the compiler gives me the following error message: ERROR: $_network_ previously declared as a 'Const' Global Const $_network_ = "Network" $_ping_ previously declared as a 'Const' Global Const $_ping_ = "Ping" and so on any hints for me? or is my approach wrong? rgds ty2d
×
×
  • Create New...