Jump to content

Suppish

Members
  • Posts

    7
  • Joined

  • Last visited

Suppish's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Here's the problem I am having, let's say I have a computer connected on the network and I am trying to find the OS version and architecture of that computer given a computer name/directory. What is the best way to locate the OS version and architecture? I am currently using a crude script to check if certain OS files exist, and deducing which OS the target computer is running. I am wondering if there are better ways such as @OSArch and @OSVersion expect displaying information about the target computer as opposed to the current computer. Thanks for the help.
  2. Thanks, I see what I've been doing wrong now. It seems that when everything returned false, it just instantly cranked $CurrentInstall to overflow.
  3. Been fumbling around with arrays and this error has popped up. However, the array behaves rather strangely as I will describe later. Currently working on an automated installer, so users basically pick from a list of programs via checklist and select what they want to install. The array is defined as follows local $App[25] $App[0] = "" $App[1] = GUICtrlCreateCheckbox($AppName[1], 20, 40, 270, 25) $App[2] = GUICtrlCreateCheckbox($AppName[2], 20, 65, 270, 25) GUICtrlSetState($App[02], $GUI_DISABLE) .... $App[24] = GUICtrlCreateCheckbox($AppName[2], 20, 65, 270, 25) GUICtrlSetState($App[24], $GUI_DISABLE) And it goes on to fill the array. The error I've been getting occurs in this line of code: $CurrentInstall = $CurrentInstall + 1 if GUICtrlRead($App[$CurrentInstall]) == $GUI_CHECKED Then ;Do something endif However, this error seems to be behaving rather strangely. The error only occurs whenever the checkboxes are unchecked. When the checkboxes are checked, they go on to do whatever they are suppose to do and install the respective highlighted programs. Thanks for any help I can get on the matter.
  4. Aha, but you see; that would be the smart thing to do.
  5. Wait what? That worked. But I am confused. Sure there was only a single instance of &Install, but according to the AutoIt Window Info thingy it said the install button was Instance 2...
  6. Still attempting to automate program installation, ran into another problem. Currently, I am unable to get ControlClick to work. There must be something I am doing wrong here and I would like to have some advice on how to go about making the button click. Here is the current code I have. Run(@ScriptDir & "7-Zip 9.2.exe") Local $7Zip = WinWaitActive ("7-Zip 9.20 Setup ","") MsgBox ( $MB_OK, "Testing", "Going to click Install") ;ControlClick("7-Zip 9.20 Setup ", "", "[CLASS:Button; TEXT:&Install; INSTANCE:2]") ControlClick( $7Zip, "", "[CLASS:Button; TEXT:&Install; INSTANCE:2]") MsgBox ( $MB_OK, "Testing", "Hello") When I run the code, it just skips over ControlClick without clicking anything.
  7. Newbie here, so please forgive me if this is the wrong place to post this. I am attempting to automate installation of a list of programs, starting with 7-Zip. Currently working in WinXP. When I start up 7-Zip, a security warning box pops out asking me to click Run or Cancel. I cannot for the life of me figure out how to find the &Run button and press/click it. Here is my current code progress, the commented out code reflects previous attempts at getting things to work: ShellExecute(@ScriptDir & "7-Zip 9.2.exe") ;ShellExecuteWait(@ScriptDir & "7-Zip 9.2.exe") ;_WinWaitActivate("[CLASS:#32770]","") _WinWaitActivate("Open File - Security Warning","") ControlClick("Open File - Security Warning","","[CLASSNN:Button1;]") ;ControlClick("Open File - Security Warning","","[CLASS:Button; TEXT:&Run;]") ;ControlClick("Open File - Security Warning","&Run","") Thanks for taking the time to read this.
×
×
  • Create New...