Jump to content
Sign in to follow this  
Clever1mba

Macro Display in NOTEPAD

Recommended Posts

HELLO

i want to know how to display Macro Reference - System Info at notepad for example

#include <inet.au3>

$ip =  @ComputerName & @CRLF & @OSLang & @CRLF & @OSVersion & @CRLF & @UserName

MsgBox(0, "EXAMPLE", $ip)

THIS works fine but msgbox popup and display result if i want all result in TEXT form at notepad then wat gonna do help me

Share this post


Link to post
Share on other sites

HELLO

i want to know how to display Macro Reference - System Info at notepad for example

THIS works fine but msgbox popup and display result if i want all result in TEXT form at notepad then wat gonna do help me

<{POST_SNAPBACK}>

There are several ways to accomplish this.

Easiest is to use the SciTe editor from SciTe Download to write your code and then use the ConsoleWrite command instead of MsgBox and it'll drop plain text into the console window at the bottom of SciTe.

To put the output in a file you can read in with Notepad, see the FileWrite command in the help file for an example.

There are also some nice helpers in the User Defined Function library for File Management (like the _FileWriteLog function).

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

If you want your script to open up notepad, you can try Run("notepad.exe"), then wait for the window to become active, then use Send() to send that information to notepad.

But if you mean, you want to press a key and have that information typed out, then you probably want to change MsgBox to Send. Then put that inside a function. Then bind the function to a hot key. See HotKeySet in help file.

Share this post


Link to post
Share on other sites

Here's one way:

#include <inet.au3>
#include <file.au3>

Opt("winTitleMatchMode", 2)

$ip =  @ComputerName & @CRLF & @OSLang & @CRLF & @OSVersion & @CRLF & @UserName

$temp = _TempFile()
$hFile = FileOpen($temp, 2)

FileWriteLine($temp, $ip)

FileClose($hFile)

run("notepad " & $temp)

another:

#include <inet.au3>

Opt("winTitleMatchMode", 2)
opt("sendKeyDelay" ,1)

$ip =  @ComputerName & @CRLF & @OSLang & @CRLF & @OSVersion & @CRLF & @UserName

run("notepad")

WinWaitActive("Notepad")

send($ip)
Edited by steveR

AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.

Share this post


Link to post
Share on other sites

InetGet() retrieves the source code from a website.

Edit: I am now guessing the website needs the information in $ip to Authenticate your login. Simply use the operator "&".

$ip =  @ComputerName & @CRLF & @OSLang & @CRLF & @OSVersion & @CRLF & @UserName

InetGet("http://domain.com/cgi-bin/guestbook.cgi?action=post_preview&requiredfull_name=" & $ip, "", 1, 1)
Edited by Burrup

qq

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...