Sign in to follow this  
Followers 0
ludics

Get SteamID's

22 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

someone help me please....

Edited by ludics

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by ludics

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

ludics, you should read the help file

read about

-consolewrite

-consoleread

-and std* funcs

-...and variable $cmdline

Edited by isolation

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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;#entry667986

http://www.autoitscript.com/forum/index.ph...mp;#entry667626

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

$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)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#12 ·  Posted (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 by ludics

Share this post


Link to post
Share on other sites

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

Have you looked in the helpfile for this?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#16 ·  Posted (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 by ludics

Share this post


Link to post
Share on other sites

My Spanish is not that good. :D

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)


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 ...

Share this post


Link to post
Share on other sites

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) = 1

Round(1.5) = 2

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#20 ·  Posted (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 by ludics

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0