Jump to content

Braese

Active Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Braese

  1. Works like a charm, many thanks u2
  2. Thank you! A small problem. [server] port = 10000 dyndns = xyz.abc.com username = root but it can be happen that it looks like: [server] port = 10000 dyndns = xyz.abc.com username = root password = root or [server] port = 10000 dyndns = xyz.abc.com password = root username = root and so on, it can have more variables and so the array trick with "go back 1 line" and so on dont work or?
  3. Yes, always the same with name [server] but the key = values within are not identical! IniRead and so on doesnt work because of the same Names and because of key = vaue isnt the right format or? Thanks Melba!
  4. Hi there, have a problem. A text file with: [server] port = 10000 dyndns = xyz.abc.com username = root [server] port = 20000 dyndns = abc.xyz.com username = root and so on. It can be 1 [server] section or 10 or anything else. How can i do that, that i if i only change entries of one section, in example: if dyndns is xyz.abc.com so change username and change port but not modifiy the other entries and write all to a new file. Thanks
  5. I coded some FTP thing, update files on different ftp servers. All is working but from today on, nothing is working anymore, not my script, not the simplest script lol, especially if i compile it. Simple: ; ftp connect $Open = _FTP_Open('Konverter') If @error Then MsgBox(16, $programname, "Konnte keine FTP Verbindung öffnen, bitte erneut starten. Eventuell auch mal Receiver zuerst neu starten und nochmal probieren.") Exit EndIf $Conn = _FTP_Connect($Open, $getip, $getuser, $getpwd, 1, 22) If @error Then MsgBox(16, $programname, "Konnte keine FTP Verbindung öffnen, bitte erneut starten. Eventuell auch mal Receiver zuerst neu starten und nochmal probieren.") Exit EndIf ; /etc/tuxbox/config verzeichnis erstellen falls nicht vorhanden ; /usr/script erstellen falls nicht vorhanden _FTP_DirCreate($Conn, "/etc/tuxbox/config") _FTP_DirCreate($Conn, "/usr/script") There is a gui before, but really nothing special, only a input box for password and ip and a button to start it. I restarted Windows several times but none... Any Help? Any Hints?
  6. I coded some FTP thing, update files on different ftp servers. All is working but from today on, nothing is working anymore, not my script, not the simplest script lol, especially if i compile it. Simple: ; ftp connect $Open = _FTP_Open('Konverter') If @error Then MsgBox(16, "", "Konnte keine FTP Verbindung öffnen, bitte erneut starten. Eventuell auch mal Receiver zuerst neu starten und nochmal probieren.") Exit EndIf $Conn = _FTP_Connect($Open, $getip, $getuser, $getpwd, 1, 22) If @error Then MsgBox(16, "", "Konnte keine FTP Verbindung öffnen, bitte erneut starten. Eventuell auch mal Receiver zuerst neu starten und nochmal probieren.") Exit EndIf _FTP_DirCreate($Conn, "/etc/tuxbox/config") _FTP_DirCreate($Conn, "/usr/script") There is a gui before, but really nothing special, only a input box for password and ip and a button to start it. I restarted Windows several times but none... Any Help? Any Hints?
  7. Hi, perhaps somebody can help me. I wanna update a file on a ftp server but sometimes pathsare various. $where = "/etc/" $filename = "test.prio" Local $h_Handle _FTP_DirSetCurrent( $Conn, $where ) $test = _FTP_FindFileFirst( $Conn, $filename, $h_Handle ) If @error Then MsgBox(0,"","error") Else MsgBox(0,"",$test[10] & "found") EndIf $FindClose = _FTP_FindFileClose($h_Handle) So that works. But it can be happen that this file is under another path and not in /etc, so in example in /var/hello/ . Maximum i have 3 or 4 path to search. How can i loop through this and use the path where the file is found? Make a loop and search in /etc and if found use /etc. If not found go further and look at /var/hello and if found use path /var/hello. If not found go furhter and look in /var/test and if found use /var/test. And so on. Any help? Greets
  8. Hi, i wrote sometimes ago a Google Chrome Updater in AutoIt. It works like a charm but doesnt work anymore. I changed some code here and there but i get nothing back from the XML Request. I know that the XML Request is correct, i analyzed it with Wireshark and the original Chrome Updater included in Google Chrome. Here is my Code so far: #include <HTTP.au3> $host='tools.google.com' $port=80 $page='/service/update2' _HTTPSetUserAgent("Google Update", "1.2.183.13") $socket = _HTTPConnect($host, $port) $data='<?xml version="1.0" encoding="UTF-8"?><o:gupdate xmlns:o="http://www.google.com/update2/response" protocol="2.0" version="1.2.183.13" ismachine="0" machineid="{11111111-1111-1111-1111-111111111111}" userid="{11111111-1111-1111-1111-111111111111}" requestid="{11111111-1111-1111-1111-111111111111}"><o:os platform="win" version="5.1" sp="Service Pack 3"/><o:app appid="{8A69D345-D564-463C-AFF1-A69D9E530F96}" version="" lang="de" brand="" client="" iid="{11111111-1111-1111-1111-111111111111}"><o:updatecheck tag="2.0-dev"/></o:app></o:gupdate>' _HTTPPost( $host, $page, $socket, $data ) $body = _HTTPRead( $socket, 0 ) MsgBox(0,"",$body) $position = StringInStr( $body,"codebase=" ) $urltmp = StringMid( $body,$position+10,Stringlen($body)-$position-10 ) $url = StringSplit( $urltmp,'"' ) MsgBox(0,"",$url) exit Any suggestions? When i look at $body i get a "<?" back, nothing more.
  9. Dont work either, that is not the Problem. Firefox starts, but with Message Firefox is already running. This is when Firefox is running or not find the path to profile. If i start firefox with admin rights it works or with the Batch.
  10. Hi, my System is Win7 x64, i copied a test program to c:\program files (x86)\test. My Testscript: ShellExecute( "browser\firefox.exe", '-no-remote -profile "'&@ScriptDir&'\browser\profile"', @ScriptDir ) Dont work, because Firefox doesnt find the profile, because it is in C:\Program Files (x86) and so Firefox doesnt start. It works when i put the script in D:\test or something. It works too, when i create a Batch file: set __COMPAT_LAYER=RunAsInvoker start test.exe But that is no alternative! Is there anything that i do wrong? What can i do? I already compiled the script with the Flag asInvoker but it dont work. Help Please, thank you.
  11. Hi, is it possible to have more then one #AutoIt3Wrapper Definitions in one au3 File? I test it with an simple IF Statement, but when i compile, it uses the last Variables, in the example always "c". Perhaps someone can help with it if possible. If $a Then #Region #AutoIt3Wrapper_icon=icons\a.ico #AutoIt3Wrapper_outfile=a.exe #EndRegion Elseif $b Then #Region #AutoIt3Wrapper_icon=b.ico #AutoIt3Wrapper_outfile=b.exe #EndRegion Else #Region #AutoIt3Wrapper_icon=c.ico #AutoIt3Wrapper_outfile=c.exe #EndRegion EndIf
  12. Hi, in example i have 6000 files in one folder, i will every 50 files make a new folder called 1 or folder one or whatever and copy first 50 files in this new folder. Then make next folder called two and copy next 50 files in it. This is theory. Possible with AutoIt i think, im not sure how can i get all files and then cut every 50 or a X Number of it into a new folder, perhaps any help? Thank you!
  13. This is what i have now, working. But, Script is using 50% CPU! What can i do here? Something forgotten i think in the while code. #Include <misc.au3> Run("iw3mp.exe +set fs_game Mods\promod") While 1 If _Ispressed("77") and WinActive("Call of Duty 4","") Then Send("{^}") Send("{BS}{BS}{BS}connect ip{Enter}") Send("{^}") Endif Wend
  14. Hi, i wrote a little Hotkey Script for a Game, (Call of Duty 4) in Example. How can i set Script to Pause, when Window is minimized and lost focus. I do some little things with WinWaitActive and WinGetState, but nothing really worked. Perhaps i have a little Blackout at the Moment...
  15. The Executable is Digsby.exe, a Instant Messenger. It doesnt accept any commandline arguments. Normally it saves Logs, Settings and so in %userprofile%\appdata, %userprofile%\mydocuments and so on. I manipulated the Environment Variable %userprofile% so Digsby thinks, %userprofile% is in Folder ( in example Profile ) and i created all the neccesary Folders ( My Documents, Application Data etc) in it. Digsby now saves all Settings in the manipulated Path. But if you get an Message with an Link for example and click on it, Digsby starts a Child Process with your Standard Browser ( in example Firefox ). But now Firefox ( if it doesnt run!) takes the manipulated %userprofile% Path now too, because it is a child process of Digsby.exe and want to make a new Profile, because nothing from firefox is found in the new %userprofile% Path. Thats the same for all Child Processes that Digsby starts if you click on something within Digsby that take Infos from %userprofile% .That is normally i know. But perhaps, i can say to every new Child Process that comes from Digsby.exe, that they must use the normal %userprofile% Variable instead. That is my Question.
  16. The other way. The Parent Process (Run(my.exe)) should use my manipulated Environment Variable and if the Parent Process spawns a child process the child process should use the System Environment Variables.
  17. Hi, i manipulate a Programm to write there Settings not to normal %userprofile%. I did this with EnvSet("USERPROFILE", @ScriptDir & "\" & $profil) and after that a Run(prog.exe). It works, but when i start, for example firefox from within this Process, firefox will create a new user profile while firefox takes the manipulated %userprofile%. How can i tell Child Processes that they take the normal Environment Variable? Any Help? Thank You.
  18. Hi, i will open a File with my Autoit Script, example, will doubleclick a File and this File i will open with with the Script. But how can i read wich file i have opened? I searched and searched but didn´t find a solution. pls help.
  19. Hi, perhaps anyone can help me. I wrote a simple Script to minimize and maximize a Game. Worked so far. But how can i do something like this: Windows has 1280*1024 Resolution, the Game has 1024*768 , when i minimized the game i will get the windows resoltuin back and not the 1024*768 game resolution. Is this possible?
×
×
  • Create New...