sanni Posted April 17, 2008 Share Posted April 17, 2008 (edited) Hi , ive made a autoit script which starts regedit and connects it to a remote computer. The Adress have to be entered with an inputbox. $return = InputBox("Regedit","PC Name:","") if @error = 0 Then run("regedit.exe",@SystemDir) WinWaitActive("Registrierungs-Editor") send("!d") send("{m}") WinWaitActive("Computer wählen","Geben Sie die zu verwendenden") send($return) send("{enter}") WinActivate("Registrierungs-Editor") ;regedit offen und auf pc verbunden Elseif @error = 1 Then EndIfoÝ÷ ØÒr$Äà¢+wØ¢»azÇ"¦Ü(®KºØÊ&¦)^Ûhjw±yËi¹^¶¢nZ¦®Æ§v'âz{^§(z¹Úæ§uÉbrJ$¶¬r*mël¥«¬yÖ§jz-êânZ¦®Ä¨Â«z+-竮ȧ^jz-êìr¸©µú+E騵àÞ²Kh§Ø^±©>ºéºÚ"µÍÌÍÜ]H[]Þ ][ÝÔ[[ÝHÚÝÜÛÛÛÛI][ÝË ][ÝÔÈ[YN][ÝÊBYÜH[[ ][ÝÛÝØË^HØÛÛÛÛI][ÝËÞÝ[QBÚ[ØZ]XÝ]J ][ÝÔ[[ÝYÚÝÜ[[É][ÝÊBÙ[ ÌÍÜ]BÙ[ ][ÝÞÙ[I][ÝÊB[ÙZYÜHH[[Y Has anyone a similar problem or a solution? Edited April 17, 2008 by sanni Link to comment Share on other sites More sharing options...
d4rk Posted April 17, 2008 Share Posted April 17, 2008 (edited) do $return = InputBox("Remote Desktop Console","PC Name:") until $return<>"" if @error = 0 Then run("mstsc.exe /console",@SystemDir) WinWaitActive("Remotedesktopverbindung") send($return) send("{enter}") Elseif @error = 1 Then exit EndIf Edited April 17, 2008 by d4rk [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
sanni Posted April 22, 2008 Author Share Posted April 22, 2008 (edited) do $return = InputBox("Remote Desktop Console","PC Name:") until $return<>"" if @error = 0 Then run("mstsc.exe /console",@SystemDir) WinWaitActive("Remotedesktopverbindung") send($return) send("{enter}") Elseif @error = 1 Then exit EndIf i tried it but it didn't work. ive still the problem that the script works in the editor and as soon as it is compiled it fails. i have tested the exe file on several PCs but the Problem is the same. Edited April 22, 2008 by sanni Link to comment Share on other sites More sharing options...
spudw2k Posted April 22, 2008 Share Posted April 22, 2008 (edited) Not sure, but why don't you just use /v to connect right to the pc instead of "send()"-ing? do $return = InputBox("Remote Desktop Console","PC Name:") until $return<>"" if @error = 0 And $return <> "" Then run("mstsc.exe /console /v:" & $return,@SystemDir) Else exit EndIf Edited April 22, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
sanni Posted April 23, 2008 Author Share Posted April 23, 2008 Not sure, but why don't you just use /v to connect right to the pc instead of "send()"-ing? do $return = InputBox("Remote Desktop Console","PC Name:") until $return<>"" if @error = 0 And $return <> "" Then run("mstsc.exe /console /v:" & $return,@SystemDir) Else exit EndIf yes this also works. But i got the Problem. If i create the au3 file on mapped network drive and compile it, it don't works. Even if i copy the au3 file to my desktop. But ich i copy just the content of the script and create a new one on my desktop, paste the content and compile it, it works. thanks for your help mfg sanni Link to comment Share on other sites More sharing options...
sanni Posted April 24, 2008 Author Share Posted April 24, 2008 yes this also works.But i got the Problem. If i create the au3 file on mapped network drive and compile it, it don't works. Even if i copy the au3 file to my desktop. But ich i copy just the content of the scriptand create a new one on my desktop, paste the content and compile it, it works.thanks for your helpmfgsanniOK that was not the problem, it is much more simple. I named the script mstsc.au3 and in the script i run mstsc.exe, and when it is compiled there is another mstsc.exe in that directory.So this file will be executed, and thats why there is a loop Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now