Jump to content











Photo
* * - - - 1 votes

Information Box


  • Please log in to reply
4 replies to this topic

#1 Max_Real Qnx

Max_Real Qnx

    Gold Member

  • Patrician
  • 1382 posts
  • Location:Istanbul
  • Interests:To be or not to be that is the question.
  •  
    Turkey

Posted 03 February 2013 - 02:35 PM

Hi my friends ;)

 

Message,"test text " \\

"for message box",INFORMATION

 

 

How able to get the output text in the same way with information box of the WinBuilder ? Thank you in advance for your answer and your help. Best regards :hi:

 

 

 

Autoit Code: (@CRLF)

 

MsgBox (0, " Test", "test text " & @CRLF & "for message box")

 

 

Output gui: 

 

3-2-2013 16-21-18.png



#2 Max_Real Qnx

Max_Real Qnx

    Gold Member

  • Patrician
  • 1382 posts
  • Location:Istanbul
  • Interests:To be or not to be that is the question.
  •  
    Turkey

Posted 03 February 2013 - 04:19 PM

How To Find a User's Security Identifier (SID) in Windows ?

 

http://pcsupport.abo...-identifier.htm

 

 

 

AutoIt Code:

#include <Security.au3>

Local $sAccount = @UserName
Local $tSID = _Security__GetAccountSid($sAccount)
Local $sStringSID = _Security__SidToStringSid($tSID)
MsgBox(0, "SID", "User = " & $sAccount & @CRLF & "SID = " & $sStringSID)

 

 

I can get this information with AutoIt. Can we do that with WinBuilder ? I wish we could. Best regards :hi:



#3 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 03 February 2013 - 06:48 PM

Hi my friend.

 

In regards to SID, perhaps this command can help:



whoami /user /FO csv /NH > user.txt

From there you can interpret the data with winbuilder. This command works since Windows 2000 and above (according to this MSDN page).

 

Let me know if this works ok for what you want to achieve.

:cheers:


  • Max_Real Qnx likes this

#4 Max_Real Qnx

Max_Real Qnx

    Gold Member

  • Patrician
  • 1382 posts
  • Location:Istanbul
  • Interests:To be or not to be that is the question.
  •  
    Turkey

Posted 03 February 2013 - 07:00 PM

Hi Nuno Brito ;)

 

Thank you for your reply. In fact; I think, everything was a mistake to wait from the WinBuilder. Sometimes it can be enough to use a third-party software. Kind regards :hi:

 

 

Information.au3

MsgBox (0, " Test", "test text " & @CRLF & "for message box")

 

 

 

c:\Program Files (x86)\AutoIt3\AutoIt3.exe "Information.au3"


#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 03 February 2013 - 07:06 PM

Hi my friend.

 

In regards to SID, perhaps this command can help:











whoami /user /FO csv /NH > user.txt

From there you can interpret the data with winbuilder. This command works since Windows 2000 and above (according to this MSDN page).

 

Let me know if this works ok for what you want to achieve.

:cheers:

No.

http://ss64.com/nt/whoami.html

 

WHOAMI.exe (Windows 7/2008 or XP Resource kit)

 

The given page, anyhow:

http://technet.micro...c771299(v=ws.10).aspx

cites Windows 2000 server

 

 

WHOAMI.exe (Windows 7/2008 or XP Resource kit)

 

 

For XP the tool is also in the XP support tools:

http://www.microsoft...s.aspx?id=18546

WindowsXP-KB838079-SupportTools-ENU.exe

BUT that version DOES NOT have the /fo or /nh switches:

 

 

 





C:\appoggio>whoami /?
WHOAMI 2.0 @1997. Written by Christophe Robert(chrisrob@microsoft.com).

WHOAMI [/option] [/option] ...

Where /option is one of the following:

/ALL = Display all information in the current access token.
/NOVERBOSE = Display minimal information. *
/USER = Display user.
/GROUPS = Display groups.
/PRIV = Display privileges.
/LOGONID = Display Logon ID.
/SID = Display SIDs. *
/HELP = Display help.

* Must be used with option /USER, /GROUPS, /PRIV or/LOGONID

Samples are as follows:

WHOAMI
WHOAMI /ALL
WHOAMI /USER /SID
WHOAMI /GROUPS
WHOAMI /GROUPS /NOVERBOSE
WHOAMI /USER /GROUPS /SID
WHOAMI /PRIV /NOVERBOSE
WHOAMI /USER /GROUPS /PRIV
WHOAMI /HELP

Use a plainer instead:

 

 



whoami /USER /SID

 

 

 

:cheers:

Wonko


  • Max_Real Qnx likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users