Jump to content

PGTART

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by PGTART

  1. Yesterday i added code to make sure my script isnt executed twice using the _Singleton method However i notice my scripts still can go wrong if another script is executed before the first one has finished How can i check if another script is still active ?
  2. Yesterday i asked about how to check if a script isnt running twice, and i now use _Singleton for that. But i still notice that it sometimes go wrong, as if i start a script while another script is still active it goes wrong too. So how can i check if another script with name xxxxx is still active and not finished ?
  3. I made a script that does work nice it does do all kind of stuff However it gets into problems, when the script is double clicked and executed twice. I need to make sure only whan script can run at a time, how can i achieve that ?
  4. Thanks, I didnt knew that, for people who get in the same problem this solved it if ControlCommand ($mywindow2,"","[CLASS:Button; INSTANCE:2]","IsChecked", "") = 1 Then beep(6000,500)
  5. Well a program, has a popup screen and in the past i used that to set some checkboxes. However now i need to check if it is still checked. So i took AutoIt v3 Window info tool , and this is what i got for my checkbox : Class => Button Instance => 2 ClassnameNN => Button2 Name => Advanced Mode => [CLASS:Button; INSTANCE:2] ID => 403 Then i used below code to check it, and just for testing my code i use a beep ;this is the moment i wait for the launch the Preference window. $mywindow2 = WinWait("Preferences") ; till above my code works fine as i used the same code to set those checkboxes in the past if GUICtrlRead("[CLASS:Button; INSTANCE:2]",0) = $GUI_CHECKED Then beep(6000,500) I never here the test Beep and the error i get from above code is : if GUICtrlRead("[CLASS:Button; INSTANCE:2]",0) = $GUI_CHECKED Then beep(6000,500) if GUICtrlRead("[CLASS:Button; INSTANCE:2]",0) = ^ ERROR Although people use it a lot $GUI_CHECKED it doesnt work for me ?, neither does simple 1 or 0 or some exotic Bitand function i saw elsewhere What do i wrong ? there are multiple checkboxes on the form, and i need to check several of them
  6. and what should the working dir be ?
  7. My Autoit file runs under system credentials (i believe) , after a windows deployment using setupcomplete.cmd And because of that a program i try to install wont install. What i like to do is create a small autoit3 script that looks like below: $sPassword = "mypassword" RunAsWait("Administrator",@ComputerName,$sPassword,0,"c:Program Files (x86)AutoIt3AutoIt3.exe C:WindowsSetupScriptsConfiguremyapp.au3",$working) So i would like to launch another autoit session running under different credentials, but how to do that ? Since C:program files (x86) contains a space ?. And what about the working dir , what should that be?
  8. I have a script that installs a product, and in the script there are some passwords used. I think of converting the Autoit scripts to executables (aut2exe) Then i would like to make a cmd batch file Where i would execute the 1st autoIt executable to install the software Then after that i would like to launch another autoit executable That should delete the first one. I am new to autoit, so i am not sure how this would execute, and what the best way to this would be. I am woried that the 1st one is still running and that the batchfile wont wait to finish and thus unable to delete the one that contains passwords, any tips on how to do this ?
  9. When installing an application on windows 7, i get a popup from UAC, "user acount control" With the message "Do you want to allow the folowing program to install software on this computer". How to deal with that ?
×
×
  • Create New...