
RyanOlson
Active Members-
Posts
34 -
Joined
-
Last visited
Everything posted by RyanOlson
-
Man I'm retarded thanks it worked the first time may have worked for me before except I was not in the directory with the .com hahahaha
-
yah done that did not work the way I wanted.
-
I want to pass along a connection link for winscp.com I was going to use batch files bt not working well so I was wondering if I could run cmd and pass said link like this along. winscp.com /command "option batch on" "open ftp://ftp.ftp -passive" "get said file.exe"
-
I had a script working to install avast for us then move a copy of our ini file to the avast config folder but it would seem in one of the updates microsoft changed something with pending file rename so it cut's it off now tried on multiple vm machines and inhouse box's here is the code RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager", "PendingFileRenameOperations", "REG_MULTI_SZ", "\??\\PC Repair Centers\temp\avast5.ini" & @LF & "!\??\\documents and settings\all users\Application Data\Alwil Software\Avast5\avast5.ini") Well this worked fine for xp for awhile not on vista so we had to edit settings by hand. Well now I am thinking of using sysinternals movefile option for vista 7 and xp but can not find any examples of someone getting it to work and Iwas wondering if any one has used it to move files throguh auto it if so can you get me started on how you got it to work.
-
I want it to continue say if the disclaimer window dosent show up but the warning window does I want it to continue on from there and so on
-
I don't really care about the time outs the main issue is if the one window does not come up it never moves on to the next part of the code so if the disclaimer window does not come up for some reason it stops there unless I set a time out.
-
I am trying to write a simple installer for combo fix this is where I get stuck I dont want to have to wait for hours on end for it to come up MsgBox(0, "Downloading Files", "Downloading files now. This may take several minutes to complete.") DirCreate(EnvGet("homedir") & "\blah\") DirCreate(EnvGet("homedir") & "\blah\temp\") InetGet("http://download.bleepingcomputer.com/sUBs/ComboFix.exe", @HomeDrive & "\PC Repair Centers\temp\CF101abc234.exe") MsgBox(0, "Downloading Files", "All files have been downloaded successfully.") Run(@HomeDrive & "\blah\temp\CF101abc234.exe") if WinWaitActive("DISCLAIMER OF WARRANTY ON SOFTWARE." , "&Yes",6000000000000000)Then send("!y") elseif WinWaitActive("Warning !!", "OK", 600000000000000000 ) Then Send("{space}") WinWaitActive("Warning !!", "OK" , 6000000000000) Send("{space}") else If WinWaitActive("Microsoft Windows Recovery Console", "&yes", 600000000000000000 ) Then Send("!y") WinWaitActive("Installing the Recovery Console", "OK", 60000000000000000000 ) Send("{space}") WinWaitActive("Windows XP Professional SP2 CD Boot Floppies" , "&Yes" , 600000000000000000000 ) Send("!y") WinWaitActive("Info" , "&Yes" , 60000000000000000000000) Send("!y") Else if WinWaitActive("rootkit", "OK", 600000000) then Send("{space}") Else WinExists(".","") EndIf
-
Thanks guys I decided just to run another exe file once they have the password in it just cleans things up and simplifys it. Thanks for the help once again.
-
I know it is a mess it's all test just trying to get it working.
-
Ok I have 2 working guis one for a eula and password and one for the program. My problem how do I get the eula to launch the program gui in the same script if possible so I dont have 2 separate program. and just one long script. #include <GUIConstants.au3> $picpath = @WindowsDir & "\dir\eula.jpg" FileInstall("C:\Autoit files\Power settings\eula.jpg", @WindowsDir & "\dir\") $Form1 = GUICreate("User Agreement", 486, 311, 193, 125) ;~ GUICtrlSetState(-1, $GUI_SHOW) $Pic = GUICtrlCreatePic($picpath, 0, 0, 481, 241) ;~ GUICtrlSetState(-1, $GUI_DISABLE) ;~ $picpath = @WindowsDir & "\GreenPcTech\greenpc.jpg" ;~ FileInstall("C:\Autoit files\Power settings\greenpc.jpg", @WindowsDir & "\dir\") ;~ GUICtrlSetState(-1, $GUI_SHOW) ;~ $Form1 = GUICreate("User Agreement", 486, 311, 193, 125) ;~ $Pic = GUICtrlCreatePic($picpath, 0, 0, 481, 241) ;~ GUICtrlSetState(-1, $GUI_DISABLE) $enterkey = GUICtrlCreateInput("Enter your key here.", 8, 248, 105, 21) $Ok = GUICtrlCreateButton("Ok", 8, 280, 75, 25, 0) $Cancel = GUICtrlCreateButton("Cancel", 88, 280, 75, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Select Case $nMsg = $GUI_EVENT_CLOSE ExitLoop Case $nMsg = $Ok If $enterkey = "green" Then $Form1_1 Else MsgBox(0, "Invalid", "Password Invalid. Try Again.") Exit EndIf EndSelect Select Case $nMsg = $GUI_EVENT_CLOSE ExitLoop Case $nMsg = $Cancel Exit EndSelect DirCreate(EnvGet("windir") & "\dir\") $win = @OSVersion $picpath = @WindowsDir & "\dir\greenpc.jpg" FileInstall("C:\Autoit files\Power settings\greenpc.jpg", @WindowsDir & "\dir\") $Form1_1 = GUICreate("", 632, 550, 193, 122) GUICtrlSetState(-1, $GUI_SHOW) $Pic = GUICtrlCreatePic($picpath, 0, 0, 633, 465) GUICtrlSetState(-1, $GUI_DISABLE) EndSwitch WEnd getting these errors C:\Autoit files\Power settings\eula.au3(38,15) : ERROR: syntax error $Form1_1 ~~~~~~~~^ C:\Autoit files\Power settings\eula.au3(40,6) : ERROR: missing EndSelect. Else ^ C:\Autoit files\Power settings\eula.au3(37,33) : REF: missing EndSelect. If $enterkey = "green" Then ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Autoit files\Power settings\eula.au3(40,6) : ERROR: missing EndSwitch. Else ^ C:\Autoit files\Power settings\eula.au3(33,10) : REF: missing EndSwitch. Select ~~~~~~^ C:\Autoit files\Power settings\eula.au3(40,6) : ERROR: missing Wend. Else ^ C:\Autoit files\Power settings\eula.au3(30,14) : REF: missing Wend. Switch $nMsg ~~~~~~~~~~~~^ C:\Autoit files\Power settings\eula.au3 - 4 error(s), 0 warning(s) Any help is very much appreciated since I am still learning this too.
-
$Pic2 = GUICtrlCreatePic(EnvGet("windir") & "\test\test.jpg", 188, 49, 193, 137, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $Pic2 = GUICtrlCreatePic(@WindowsDir & "\test\test.jpg", 188, 49, 193, 137, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) I've used those 2 lines and neither works. If someone could tell me how to get the file to load from the windows dir to show our companies logo.
-
I go it had to many nmsg messages and that was I guessing causing my script to go crazy checking each one. silly me.
-
I havent made really any changes but now my gui requires a double or triple click before it goes this just started. can you see why #Region ### START Koda GUI section ### Form=c:\program files\autoit3\koda_1.7.0.1\forms\tuneupcentral.kxf $Form1_1 = GUICreate("Tune Up Pros", 367, 216, 192, 122) $Tab1 = GUICtrlCreateTab(0, 0, 369, 233) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Tab1 = GUICtrlCreateTab(0, 0, 369, 233) $TabSheet1 = GUICtrlCreateTabItem("Tune up") $TuneButton1 = GUICtrlCreateButton("Download Files", 4, 41, 219, 25) $TuneButton2 = GUICtrlCreateButton("Xp Tune", 4, 73, 107, 25) $TuneButton3 = GUICtrlCreateButton("Vista Tune", 116, 73, 107, 25) $TuneButton4 = GUICtrlCreateButton("Finish Tune Up", 4, 122, 219, 25) $TuneButton5 = GUICtrlCreateButton("Shortcut", 4, 156, 219, 25) $TuneCheckbox1 = GUICtrlCreateCheckbox("C", 12, 97, 27, 25) $TuneCheckbox2 = GUICtrlCreateCheckbox("D", 44, 97, 27, 25) $TuneCheckbox3 = GUICtrlCreateCheckbox("E", 76, 97, 35, 25) $TabSheet2 = GUICtrlCreateTabItem("Infection Removal") $TabSheet3 = GUICtrlCreateTabItem("Ultimate Tune Up") $TabSheet4 = GUICtrlCreateTabItem("Unlimited information") $Input1 = GUICtrlCreateInput("Joined On: x/x/xxxx", 15, 41, 219, 22) $Button1 = GUICtrlCreateButton("Write Information", 15, 72, 219, 25) $Button2 = GUICtrlCreateButton("Read information", 15, 106, 219, 25) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ;unlimited stuff Select Case $nMsg = $GUI_EVENT_CLOSE ExitLoop Case $nMsg = $Button1 $var = GUICtrlRead($Input1) ;Write unlimited info RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Tune-up pros\", "Unlimited computer", "REG_SZ", "Unlimited member ") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Tune-up pros\", "Date", "REG_SZ", $var) EndSelect ;~ Read Unlimited Information Select Case $nMsg = $GUI_EVENT_CLOSE ExitLoop Case $nMsg = $Button2 $var3 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Tune-up pros\", "Unlimited computer") $var4 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Tune-up pros\", "Date") MsgBox(4096, "Member since:", $var3 & $var4) EndSelect this is just a snippet of code.
-
Never mind you can close this I got it just had to use the time out function which I have never used before
-
Ok bringing this back up to see if this is a bug some how or I need something else. I was bored so I started looking at the issue again and found out what is happening. here is the code Run ( "temp\tune.exe" , "" ) If WinExists("TuneUp Utilities 2008 Setup") Then Sleep(5000) Send ("!n") EndIf IF I run it that way it does not work now if I add a long enough pause say like this Run ( "temp\tune.exe" , "" ) sleep(10000) If WinExists("TuneUp Utilities 2008 Setup") Then Sleep(5000) Send ("!n") EndIf Then it will send the alt n to move to the next option. I am on winexitst right now because this is when I discovered the issue it works with winwaitactive and everything with the pause the issue is if I set it to win wait active shouldn't it wait till the window is up before killing the script. What I mean is if it looks like this Run ( "temp\tune.exe" , "" ) If WinWaitActive("TuneUp Utilities 2008 Setup") Then Sleep(5000) Send ("!n") EndIf Shouldn't it wait till there is focus on the tune up window
-
Salty your the man once again still new at this and from the example I did not see that I need to check if the return was checked but that works thanks.
-
This is very very annoying I have 3 check box's which correspond or should to regwrite statements when a button is pushed here is what that looks like Case $nMsg = $GUI_EVENT_CLOSE ExitLoop Case $nMsg = $Button2 $varcb1 = GUICtrlRead($Checkbox1) $varcb2 = GUICtrlRead($Checkbox2) $varcb3 = GUICtrlRead($Checkbox3) If $varcb1 Then RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles", "REG_SZ", "C:\pagefile.sys 0 0") If $varcb2 Then RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles", "REG_SZ", "D:\pagefile.sys 0 0") If $varcb3 Then RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles", "REG_SZ", "E:\pagefile.sys 0 0") Ok it works but whateever check box is checked for some reason it keeps running E or cb3 I had it like this and it did the same thing If GUICtrlRead($Checkbox1) RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", "PagingFiles", "REG_SZ", "C:\pagefile.sys 0 0") that was how all 3 looked with the corresponding input please help oh with the variable to now i have to hit the button 2 times it seems to get it to go.
-
Help here with input boxs (noob)
RyanOlson replied to RyanOlson's topic in AutoIt General Help and Support
woohoo thanks that works great man thanks -
ok here is my script well this will be part of a larger part when it is done testing. But we offer contracts for unlimited support for one year. we are trying ot put a tag in that we can only read because the gui will be password protected. I am trying to find out how to use a gui input box and read the date entered and put it in our reg key this is what i have but it will not put the date in. #Region ### START Koda GUI section ### Form=C:\Autoit files\Forms\User information.kxf $Form1 = GUICreate("Form1", 633, 447, 193, 125) $Group1 = GUICtrlCreateGroup("User account information", 72, 32, 369, 161) $Input1 = GUICtrlCreateInput("Joined On", 160, 48, 177, 21) $Button1 = GUICtrlCreateButton("Write Information", 192, 72, 99, 25, 0) $Button2 = GUICtrlCreateButton("Read information", 192, 104, 99, 25, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;Write unlimited info Select Case $nMsg = $GUI_EVENT_CLOSE Case $nMsg = $Button1 $var = $Input1 RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Tune-up pros\", "Unlimited computer", "REG_SZ", "Unlimited member") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Tune-up pros\", "Date", "REG_SZ", $var) EndSelect
-
yah tried a 30 second sleep. no bueno hahaha
-
Thanks k3v I did try that that's when i thought hey maybe the handle now I think i am just up a creek and those tricky developers must have somoe anti script thing working against me.
-
>>>> Window <<<< Title: TuneUp Utilities 2008 Setup Class: MsiDialogCloseClass Position: 259, 220 Size: 506, 392 Style: 0x14CA0000 ExStyle: 0x00040100 Handle: 0x002C091C >>>> Control <<<< Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x00180754 >>>> Mouse <<<< Position: 754, 226 Cursor ID: 2 Color: 0xFF6250 >>>> StatusBar <<<< >>>> Visible Text <<<< &Next > < &Back Cancel Welcome to the TuneUp Utilities 2008 Installation Wizard side16 WARNING: This program is protected by copyright law and international treaties. Click Cancel to quit the setup program, then close any programs you have running. Click Next to continue the installation. It is strongly recommended that you exit all Windows programs before running this setup program. Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under law. >>>> Hidden Text <<<<
-
Still no go it is like the window does not exist but does exist.
-
The problem is I don't think anything is working to find the window I first used plain old winwaitactive and it would not work .
-
IM looking for the second window the first window is a stupid windows security run window that opens then that get's closed the issue then is the next program window when it comes up.