ludics Posted April 10, 2009 Posted April 10, 2009 I am part of this code. "Cmd" and I would like, if someone could help me pass it to AutoIt, the truth and I have little idea if you can not do all this code in AutoIt or would make a mixture. @echo off if NOT %1a == a goto recurse color F0 reg query HKCU\Software\Valve\Steam\Users > users.tmp echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º To copy text rightclick the title bar, º echo º Edit ¯ Mark ¯ highlight the area to copy º echo º with your mouse and press Enter. º echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo º for /f "skip=1 delims=\ tokens=6" %%i in (users.tmp) do call %0 %%i del users.tmp echo º echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º Press a key to quit º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ pause>nul goto end :recurse reg query HKCU\Software\Valve\Steam\Users\%1\friends /v PersonaName > name.tmp for /f "skip=2 tokens=3 delims= " %%i in (name.tmp) do set NAME=%%i del name.tmp set SID=%1 set /A SID=SID/2 set /A SID1=SID*2 set STEAMBIT=0 if NOT %SID1% == %1 set STEAMBIT=1 if %NAME%a == a ( echo º Can't find name for SteamID STEAM_0:%STEAMBIT%:%SID% ) else ( echo º "%NAME%" uses SteamID STEAM_0:%STEAMBIT%:%SID% ) :end I do not know if it is possible to get all the code in AutoIt, help me much.
ludics Posted April 11, 2009 Author Posted April 11, 2009 (edited) someone help me please.... Edited April 11, 2009 by ludics
jvanegmond Posted April 11, 2009 Posted April 11, 2009 I can't think of any legit reason for this. Apart from that, if you can't even convert a batch script into AutoIt you're an idiot. github.com/jvanegmond
ludics Posted April 11, 2009 Author Posted April 11, 2009 (edited) Thank you for your very kind words, the difference between you and me is that I live life, and you live in a cave to go well ... life ... Edited April 11, 2009 by ludics
isolation Posted April 11, 2009 Posted April 11, 2009 (edited) ludics, you should read the help file read about -consolewrite -consoleread -and std* funcs -...and variable $cmdline Edited April 11, 2009 by isolation
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 (edited) Thank you for your very kind words, the difference between you and me is that I live life, and you live in a cave to go well ... life ...Care to explain the relation between living life and your above posted batch file and its legitimacy ? Edited April 11, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ludics Posted April 11, 2009 Author Posted April 11, 2009 No, but neither has a tale to tell whether I am stupid, I just would like me to pass this batch AutoIt to do a program together other roles ... and the question is not how to read the record and I am a subfolder ( "RegRead") and is not as round a number with decimal places, more than anything ... I would like to help me, not insult me ...
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 No, but neither has a tale to tell whether I am stupid, I just would like me to pass this batch AutoIt to do a program together other roles ... and the question is not how to read the record and I am a subfolder ( "RegRead") and is not as round a number with decimal places, more than anything ... I would like to help me, not insult me ...When that is the case its better to respond why it is legit and to state you are not here to be insulted in stead of resorting to do the same thing.I have no idea why Manandar wrote what he did and am sure he will come back to explain himself. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jvanegmond Posted April 11, 2009 Posted April 11, 2009 Because there's an obvious lack of effort into writing the AutoIt code. Would you be happy if I just told you you can write it in AutoIt? No, you want someone else to write the code for you.Here's some examples:http://www.autoitscript.com/forum/index.ph...mp;#entry667986http://www.autoitscript.com/forum/index.ph...mp;#entry667626 github.com/jvanegmond
ludics Posted April 11, 2009 Author Posted April 11, 2009 nice example ...xD I have the code but does not work as you see: $VALUE = "123456789" $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not $SID1 == $VALUE then $STEAMBIT=1 MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&$SID) The solution would be: STEAM_0: 1:61728394 Any way to remove the decimal and to function well?
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 $VALUE = 123456789 $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&$SID) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ludics Posted April 11, 2009 Author Posted April 11, 2009 (edited) Okay, there is any way to remove the "xxxxx.5" is the tenth... round without ... Otherwise the "RegRead" subfolders if I have not read to me there is any way to draw: HKCU \ Software \ Valve \ Steam \ Users HKCU \ Software \ Valve \ Steam \ Users \ 521313132 HKCU \ Software \ Valve \ Steam \ Users \ 545646123 Edited April 11, 2009 by ludics
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 Okay, there is any way to remove the "xxxxx.5" is the tenth... round without ...Otherwise the "RegRead" subfolders if I have not read to me there is any way to draw:HKCU \ Software \ Valve \ Steam \ UsersHKCU \ Software \ Valve \ Steam \ Users \ 521313132HKCU \ Software \ Valve \ Steam \ Users \ 545646123Have you looked in the helpfile for this? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ludics Posted April 11, 2009 Author Posted April 11, 2009 Okay, I got it from subfolders not find the command, but the decimal part of "xxxx.5" I can not find the solution, the state looking and looking and not remove it ... For $i = 1 to 100 $VALUE = RegEnumKey("HKCU\Software\Valve\Steam\Users", $i) if @error <> 0 Then ExitLoop $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&$SID) next
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 As you said "round without ..". Look in the helpfile for Round() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ludics Posted April 11, 2009 Author Posted April 11, 2009 (edited) No se algo hago mal por que no me lo arredondea, sigue saliéndome xxxx.5 For $i = 1 to 100 $VALUE = RegEnumKey("HKCU\Software\Valve\Steam\Users", $i) if @error <> 0 Then ExitLoop $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 Sleep(250) MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&Round($SID, 1)) next Edited April 11, 2009 by ludics
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 My Spanish is not that good. anyway why are you using 1 as second parameter as that defines the number of decimal place. If you want 0 decimals you need to use: Round($SID, 0) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ludics Posted April 11, 2009 Author Posted April 11, 2009 But the problem is that arredondeo is on the rise, ie given a number, then if it goes xxx1.5 not be XXX2 if XXX1 not know if I understand ...
Developers Jos Posted April 11, 2009 Developers Posted April 11, 2009 But the problem is that arredondeo is on the rise, ie given a number, then if it goes xxx1.5 not be XXX2 if XXX1 not know if I understand ...Not sure I understand but these are your options:Int(1.5) = 1Round(1.5) = 2Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ludics Posted April 11, 2009 Author Posted April 11, 2009 (edited) you see no result $VALUE = "123456789" $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 Sleep(250) MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&Round($SID, 1)) STEAM_0:1:61728394 Edited April 11, 2009 by ludics
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