
attactician
Members-
Posts
15 -
Joined
-
Last visited
Everything posted by attactician
-
Read registry key - write custom.ini
attactician replied to attactician's topic in AutoIt General Help and Support
That did it, with a little modification because iniwrite doesn't seem to support adding sections or anything extra, I used FileWrite in addition. $reg=RegRead ( "HKLM\System\Setup", "OEMDuplicatorString" ) IniWrite ( "custom.ini", "START_CIM_OBJECT", "OEMDuplicatorString", $reg ) FileWrite ("custom.ini" , "[END_CIM_OBJECT]") -
Read registry key - write custom.ini
attactician replied to attactician's topic in AutoIt General Help and Support
I will give this a try, thank you! -
Hello, I need to create an application that simply reads the value of a specific registry key, and then writes that value to a custom.ini file in the following format: [sTART_CIM_OBJECT] OEMDuplicatorString = laptopimage2010 [END_CIM_OBJECT] The 'OEMDuplicatorString' is the name of the key I would be reading, and the value is to the right of the = sign. If someone could start me in the right direction, I would take it from there, I just don't know how to start the code. Thank you
-
Hello, I have some excellent code from another poster (MattyD I believe) that works well for automatically configuring wireless on XP workstations: #include "Native_Wifi_Func_V2_2.au3" $XMLProfile = FileRead("profile.xml") $hClientHandle = _Wlan_OpenHandle() $Enum = _Wlan_EnumInterfaces($hClientHandle) $pGUID = $Enum[0][0] $a_iCall = DllCall($WLANAPIDLL, "dword", "WlanSetProfile", "hwnd", $hClientHandle, "ptr", $pGUID, "dword", 0, "wstr", $XMLProfile, "ptr", 0, "int", 1, "ptr", 0, "dword*", 0) ConsoleWrite("Call Error: " & @error & @LF) ConsoleWrite(_Wlan_GetErrorMessage($a_iCall[0])) I would like to expand on this code, and integrate it into a gui that will allow the user to select from several ssid's (drop down list maybe?) then chose that one and have it automatically configure the wireless settings. I will have several preconfigured xml files, a separate xml profile for each ssid. I would also like to include the xml files into the build if possible, I don't want to have separate files, all just one exe. Any suggestions would be greatly appreciated. Thanks
-
Unfortunately, we do not have a domain controller, but run a Novell network. I think I've gotten much closer to what I need, the following code worked once (I tried it a second time to demo it to a colleague, and, of course, it didn't work!): CODE$netuser = "net user " $username = InputBox("Username","Username:","","") $password = InputBox("Password","Password:","","*") RunWait("psexec \\axis -u administrator -p somepass" & "NET USER" & $username & $password) Any improvements? Suggestions? Thank you
-
Hello, I have an idea for a script, but I don't know how to proceed. Here is the basic logic that I would like to replicate in a simple autoit script: I posted this in the gui section because I would like a gui interface with buttons to represent the different scripts. Get IP address of local machine (from any of my two network adapters, Ethernet or wireless adapter) IF IP = 10.*.*.* (in other words, if the ip matches the first octet of my work's DHCP range) Then Execute script1 Else = Execute script2 EndIf Exit Simple huh? Not for a newb like me! Any suggestions would be greatly appreciated!
-
Hello, I have an idea for a script, but I don't know how to proceed. Here is the basic logic that I would like to replicate in a simple autoit script: Get IP address of local machine (from any of my two network adapters, Ethernet or wireless adapter) IF IP = 10.*.*.* (in other words, if the ip matches the first octet of my work's DHCP range) Then Execute script1 Else = Execute script2 EndIf Exit Simple huh? Not for a newb like me! Any suggestions would be greatly appreciated!
-
New project-help requested
attactician replied to attactician's topic in AutoIt GUI Help and Support
Would that include images of chess peices? I would be interested in checking those out. Do you have a collection I could browse through? -
New project-help requested
attactician replied to attactician's topic in AutoIt GUI Help and Support
Wow! I guess this chess idea is far from a new one, and it appears to have piqued some interest. Thanks to all those replying to my original inquiry, you have definitely given me a great starting point! I'll keep the forum updated with my progress. I have a interesting chess project in mind, and it may take a while to come to fruition. -
Could someone point me in the right direction, I want to create a chess board with peices that can be added or removed, any thoughts? I don't need a chess engine or anything, this should be within the realm of autoit scripting capabilities.
-
Multiple app installer trouble
attactician replied to attactician's topic in AutoIt GUI Help and Support
Thanks! That did the trick. -
Need help coding multiple app installer
attactician replied to attactician's topic in AutoIt GUI Help and Support
Thanks! One question however, I have a mixture of msi and exe programs, and so far every code I try wants to install all of the programs simultaneously, rather than one after another. Do you know if this is an easy problem to fix? What do I need to add to my code so apps install sequentially? Thanks again for your help. -
Hello, I'm attempting to install a selection of apps sequentially with code found at this posting:Multi-app installer , but when I run the code, they all install at the same time. What can I add to this code to achieve that goal? Func Install() For $x = 0 to _GUICtrlListBox_GetCount($ListBox2) - 1 Switch _GUICtrlListBox_GetText($ListBox2, $x) Case "Novell Client Public." Run("CEC_NC4914_PUB.7z.exe") WinWaitActive("CEC Public Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") Case "Novell Client Non-public." Run("CEC_NC4914_NON_PUB.7z.exe") WinWaitActive("CEC NON PUBLIC Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") Case "Novell Client IT Build." Run("CEC_NC4914_ITADM.7z.exe") WinWaitActive("CEC IT Admin Novell Client 4.91 SP4 + POST PATCHES (3/31/08) JJR") Send("!y") Case "Zen Agent." RunWait(@COMSPEC & " /c Start ZfDAgent.msi")
-
Need help coding multiple app installer
attactician replied to attactician's topic in AutoIt GUI Help and Support
Thanks, I'll give that a try! -
Hello, I'm new to Autoit, but ran through the various tutorials and understand the basics of creating a GUI and installing one application, but I would like to create a GUI with the option to select from a series of buttons, or maybe a list of some kind, then install that particular application. I found tons of custom scripts to install single applications, but not multiple. Can anyone point me in the right direction?