
oren
Active Members-
Posts
144 -
Joined
-
Last visited
oren's Achievements

Adventurer (3/7)
0
Reputation
-
This is the script While 1 Sleep(300) if $r = 0 Then $t= _Timer_GetIdleTime() if $t> $idle Then _PathSplit($pro,$a,$b,$c,$d) $path = $a & $b $q = run($pro&$argN ,$path,$inv) Sleep(1000) if $inv=@SW_HIDE Then $iconInd = _SysTrayIconIndex($q,2,$WinV) _SysTrayIconRemove($iconInd,$WinV) EndIf $r =1 EndIf EndIf if $r = 1 Then $t= _Timer_GetIdleTime() if $t < $idle Then Run(@ComSpec & " /c taskkill /F /PID " & $q & " /T", @SystemDir, @SW_HIDE) $r=0 EndIf EndIf WEnd And the man say it does not start is application.. I just gave him the script I think he run the script but just double clicking it Plus he say that my script work on his desktop but it does not work in the windows servers 2003 and 2008
-
Is there a known problem using run( in windows 2003 servers and in windows 2008 servers??? Becuase I made a script that use run( after X sec of Idle time , and someone downloaded it and said the the script does not start his program Is there a known problem in those version of windows?? Thank you
-
Hello I need to see some non english chars in the scite output language that I use with consolewrite.. How do I chagne the font of the scite output editor? Thank you
-
-
Its seemss like the function send the data not in the right order.. I'm using tcp spy. and I'm trying to copy a http request... http://registration.orange.co.il/copa/pages/protected/protectedredirect.aspx?original=http%3a%2f%2fwww.orange.co.il%2fhe-il%2fcellular%2f GET /copa/pages/protected/protectedredirect.aspx?original=http%3a%2f%2fwww.orange.co.il%2fhe-il%2fcellular%2f HTTP/1.1 Host: registration.orange.co.il User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive But its seems that the data isnt sent in the right order... GET /copa/pages/protected/protectedredirect.aspx?original=http%3a%2f%2fwww.orange.co.il%2fhe-il%2fcellular%2f HTTP/1.1 Connection: Keep-Alive Keep-Alive: 115 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip,deflate Accept-Language: en-us,en;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 Host: registration.orange.co.il My code is $A=_WinHttpOpen() $B = _WinHttpConnect($A,"registration.orange.co.il") $C = _WinHttpOpenRequest($B,"GET","/copa/pages/protected/protectedredirect.aspx?original=http%3a%2f%2fwww.orange.co.il%2fhe-il%2fcellular%2f") _WinHttpAddRequestHeaders($C,"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17") _WinHttpAddRequestHeaders($C,"Connection: keep-alive") _WinHttpAddRequestHeaders($C,"Keep-Alive: 115") _WinHttpAddRequestHeaders($C,"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7") _WinHttpAddRequestHeaders($C,"Accept-Encoding: gzip,deflate") _WinHttpAddRequestHeaders($C,"Accept-Language: en-us,en;q=0.5") _WinHttpAddRequestHeaders($C,"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") _WinHttpSendRequest($C) _WinHttpReceiveResponse($C) $t=_WinHttpQueryHeaders($C) ConsoleWrite($t) $AB = _WinHttpReadData($C) ConsoleWrite($AB) Exit and its not working anyway.. I'm trying to make a program that will automatically send me a e-mail when I get a error... Soo I'm trying to log in... But its not working.
-
Run a program in startup before anyone log in
oren replied to oren's topic in AutoIt General Help and Support
Thank you but I need that my exe script will install itself.. So that it will go up before log ing, In startup. I need to make it soo that when I give the exe to someone he will have the option that the script will run on startup before log-in (He will also have to option to remove it ) I want to make a checkbox Run with startup, So the user will be able to control it/// Is it possiable ? Thank you. -
Run a program in startup before anyone log in
oren posted a topic in AutoIt General Help and Support
How do I make my exe run at startup before anyone log in.. While still in the welcome screen. Second. This exe will need to run a different exe also ??? So I need the option that the exe that run before log in will be able to run other exe's still before log in... Thank you very. EDIT : I want that when runing the exe it will have a a option to make it that the exe will run in startup before log in... I dont want to manually make it so the exe will run before startup.. I want it to be controlled by the exe itself -
As you said line 22 I dont have puase key in my pc... (laptop) But I think you should change line 22 to If $i < $Loop Then P.S you should check For...To...Step...Next
-
Question about _SysTrayIconRemove ... I have a program I made that run other program invisiable (exp.. It run 1.exe) and its working great with the use of _SysTrayIconRemove I can remove 1.exe trayIcon But after I exit the program and I want to start 1.exe manually and do see its trayicon its not possible and if I do want to see is try icon again I need to restart my computer... Is there anyway to fix it? Maybe running a systrayiconunremove of something:? Thank you P.S I tried sysiconhide.. And it working but the problem is that I use this Run(@ComSpec & " /c taskkill /F /PID " & $q & " /T", @SystemDir, @SW_HIDE) To kill 1.exe and then when I use it , It does not exit 1.exe systray and I end with 10 invisible systray Icons ... Thank you
-
Hello.. I've build something that automatically start a process when I dont use my PC.. And it kill's it when I move he mouse.. Now I start my process with $Pid = run(@scriptdir & "1.exe" ...) And I end it with processclose($Pid) My problem is that sometimes 1.exe start other processes and I need my program to end those process also when I move my mouse. Is there a wway to know what processes started by 1.exe , I mean with the processs $Pid Am I understood? I think there is no way right?>
-
yes so it will run on x86 system... not only on 64bit
-
I've tried.. #requireAdmin _Singleton("SWIsetup",0) MsgBox(1,1,RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ProcessSwi", "REG_SZ", @scriptdir & "\ProcessSwi.exe") & @crlf & @error) I get in the massagebox 1 0 But still I dont find the registry in regedit in this location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run I did a search and I find it in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run What is it?