Jump to content

Boss007

Active Members
  • Posts

    26
  • Joined

  • Last visited

Boss007's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thank you very much for taking the time out it worked! thanks very much for the explanation it worked!
  2. I am a novice at scripting and would like some one to point me in the right direction for the code below $ilocation = "c:" MsgBox(0, "", $ilocation) ;how do I run a program using the content of the variable assigned above? ;the line below which i have tried many variations of does not work ;Run $ilocation ("\temp\myprogram.exe") ; the line below is what im trying to achieve using $ilocation in place of the "c:" so that if I change" $ilocation" the install path ; changes ;run ("c:\temp\myprogram.exe") any help would be appriciated thanks!
  3. getdetails7b.au3 I am a complete beginner with very getdetails7b.au3limited coding skills. I cannot seem to get the coding correct to install a program to the home drive and a folder to the folder drive , from within a case routine in this script. eg: run ("$iHomeDrive\temp\myxp32bitprogram") FileMove("$iHomeDrive\temp\myfolder", "$iFolderDrive\myfolder") My problem is manipulating the contents of the array, I need to get the drive letters that the arrays point to. and install to those drive letters. the value of the two variables only point to the location of the contents in the array not the value of the actual content itself.any pointers would be very much appriciated. ps; how do I paste the script in here and get it to scroll instead of attaching? thanks
  4. . I have been removing malware manualy for quite some time.I always kill all local and network events of svchost.exe and then kill all non critical system events of svchost, which is normally but not always identifiable by size there is only 1 critical system event of svchost.exe instance that should not be killed, the one with the largest memory usage.This svchost normally identifies first allocation of services which always goes to microsoft o/s. svchost services are triggered by processes that are running on the host machine. it does not reveal which process has triggered it off.There are many viruses that use svchost as a mask.svchost is only a generic name for many services that run from the dll libraries and it is common to have many instances of it running ,hence the elimination process.. If any one writes a script specifically to deal with svchost I'd love to have a copy!!
  5. Thanks very much your a genius! made me realise how out of my depth I was. I don't even know how to post properly,but I'm taking it all in slowly,I have looked at your implementation and abandoned mine instantly. I understood yours and It made sence straight away ,much more streamline and manageable.I am going back to school to look up courses in this subject ,once again many thanks! if I ever make it I won't forget you!!!
  6. Hi all,I'm trying to write a script with routine's that need to 1.work out o/s version 2.work out the o/s architecture 3. calculates free hard drive space for all connected hard drives , 4. deliver software to the home drive, 5. deliver folders to the first available hard drive with enougth space that does not contain the operating system,if there is no other hard drive connected the routine must deliver folders to the homedrive's user area instead. I am a novice and I know this code dosen't have to be so long and cumbersome if the main body could some how be incorporated in the very first routine to find hard drives connected it would be great! I have marked the areas with problems by making comments just before the problem area as you go down the script. I know my scripting is awful but any help would be appreciated. many thanks freespacecalculator.au3
  7. Hi this script displays amessage box asking a user to choose their gender. once they have done this I need to give the user a second chance incase they clicked on the wrong gender. a msg box is displayed asking to confirm. I'm stuck on how to create the loop from this messagebox,and how to reposition the msg box so that it appears on top and in line with the main window.any pointers would be apprieciated thanks! #include <buttonconstants.au3> #include <guiconstantsex.au3> #include <windowsconstants.au3> #Region ### START Koda GUI section ### Form=gender select.kxf $Form2 = GUICreate("Select Gender", 279, 213, 361, 262) GUISetBkColor(0xA0A0A4) $GroupBox1 = GUICtrlCreateGroup("", 24, 1, 233, 193) GUICtrlSetBkColor(-1, 0xA0A0A4) $label2 = GUICtrlCreateLabel("or", 135, 168, 15, 17) GUICtrlSetBkColor(-1, 0xA0A0A4) $Label1 = GUICtrlCreateLabel("Click on the Gender of the New User", 48, 136, 177, 18) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("Male", 30, 163, 75, 25, $BS_PUSHLIKE) GUICtrlSetBkColor(-1, 0x0054E3) $Button2 = GUICtrlCreateButton("Female", 173, 163, 75, 25, $BS_PUSHLIKE) GUICtrlSetBkColor(-1, 0xFF00FF) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ;insert code here MsgBox(4, "", "Are you sure ? This will Install the Default settings") ;I would like to install from here or go back to the beging dependent on the response to ;the yes or no buttons displayed by the msgbox4 function. yes =instal and exit no = go back to the begining ;of selection routine. ;I need the msgbox to be displayed in line with and on top of the main window Exit Case $Button1 _maleFunction() Case $Button2 _femaleFunction() EndSwitch WEnd Func _maleFunction() ;insert code here MsgBox(4, "", "Are you sure about Installing settings for a Male ?") ;I would like to install from here or go back to the beging dependent on the response to ; the yes or no buttons displayed by the msgbox4 function. yes =install and exit,no = go back to the begining ;I need the msgbox to be displayed in line with and on top of the main window ;I need to store the response into a variable for later use Exit EndFunc Func _femaleFunction() ;insert code here MsgBox(4, "", "Are you sure about Installing Female settings?") ;I would like to install from here or go back to the beging dependent on the response to ; the yes or no buttons displayed by the msgbox4 function. yes =install and exit, no = go back to the begining Exit EndFuncvxpgs3b.au3
  8. Thanks your absolutly correct I have adjusted the coding to reflect this.when I first used koda I had no idea of what I was doing,and used the coding generated by koda.Thanks for the selection routine.and the links aswell your a diamond!
  9. Hi I am A total novice. I need to preform an action based on gender. I used koda to draw a box displaying a choose gender window with three buttons, select gender,Male,Female. I now want to run one of two actions dependant on the gender chosen... " if button 1 is selected then do this, if button 2 is selected then viper gender select.au3do that" here is my coding imported into Au3. I'm Lost any help would be appriciated thanks! #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=gender select.kxf $Form2 = GUICreate("Select your Gender", 279, 213, 468, 254) $GroupBox1 = GUICtrlCreateGroup("", 48, 33, 185, 129) GUICtrlSetBkColor(-1, 0x008080) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("Male", 54, 107, 75, 25) GUICtrlSetBkColor(-1, 0x0054E3) $Button2 = GUICtrlCreateButton("Female", 149, 108, 75, 25) GUICtrlSetBkColor(-1, 0xFF00FF) $Button3 = GUICtrlCreateButton("Select Your Gender", 85, 52, 115, 25) GUICtrlSetBkColor(-1, 0x00FF00) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
  10. Hi all, I am trying to write a simple script to install Vuze on multiple machines and to uncheck the random options to install three pieces of baggage that I do not want instaled. eg: Vuze toolbar,Bing search homepage hijacker, and robo form installation. I am a newbie and my problem is that vuze which is written in java does not display window information because the installation windows are the [CLASS:SunAwtFrame; INSTANCE: ] type. I can only get absolute screen positions for the buttons I want to uncheck and clickthis is no good. . Winwait activates on window info don't work, Control clicks on class info dosen't work ,Mouse clicks on the absolute screen positions only works randomly due to the varying times it takes the different windows to open. is there a silent switch or way of installing vuze unattended without the baggage?, below is the code that gets partial way. Run("D:\software\Vuze_Installer.exe") ; the next line works because it a windows o/s security warning screen with window info available ControlClick("Open File - Security Warning", "", "&Run") ; I dont think the next line works but the send space line after it does _WinWaitActivate("Setup - Vuze 4.6","") Send("{SPACE}") ;the next two lines only work because of the delay entered without both of them the decline vuze toolbar mouse click line fails _WinWaitActivate("Setup - Vuze 4.6","", 5000) WinWait("[CLASS:SunAwtFrame]", "", 5000) ;decline vuze toolbar MouseClick("left",422,490,1) ;the next 2 lines which click the same button to continue the install do not work ControlClick("Setup - Vuze 4.6", "", "[CLASS:SunAwtFrame; INSTANCE: ]", "left", 1, 444, 377) ControlClick("Setup - Vuze 4.6", "", "&Next") any pointers would be greatly appreciated
  11. Hi I have a problem with a script to silenly install revo uninstaller. I need to click the ok button on the revo installer language screen I have tried all sortst of commands with the given screen info and nothing works except for the mouseclick command which is not ideal. Below is the window info I have been trying to click the ok button on. Position: 493, 305 Size: 294, 160 Handle: 0x001704E8 PID: 4084 Path: D:\software\revosetup.exe Control ======= Class: Static Instance: 1 [CLASS:Static; INSTANCE:1] ID: 1007 [CLASS:Static; ID:1007] Style: 0x50020000 WS_CHILD, WS_GROUP, WS_VISIBLE ExStyle: 0x00000004 WS_EX_NOPARENTNOTIFY Position: 68, 16 Size: 210, 44 Handle: 0x001F0432 Text: Please select a language. Visible Text ============ English OK Cancel Please select a language.: Can any one give me a pointer into getting round this and how to silently insatlling revo uninstaller? Thanks!
×
×
  • Create New...