Jump to content

Help me plz


HackerZer0
 Share

Recommended Posts

ok

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GUICreate("MyGUI", 392, 85, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Input_1 = GUICtrlCreateInput("", 30, 30, 220, 30)
$Button_2 = GUICtrlCreateButton("Send", 280, 30, 90, 30)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_2
            If GUICtrlRead($Input_1) = "Notepad" Then
                MsgBox(0,"notepad", "typed")
            Else
                MsgBox(0,"Something else", "typed")
            EndIf
        Case Else
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

how would i make the script read the input from the box, and execute it as if it were a line in an autoit script?

example:

i type

Run("notepad.exe")

and click "Send"

i want it to run notepad,

-OR-

if i type

WinSetTrans("Untitled - Notepad", "", 178)

I want it to change the transparency...

THX : )

Link to comment
Share on other sites

ok

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GUICreate("MyGUI", 392, 85, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Input_1 = GUICtrlCreateInput("", 30, 30, 220, 30)
$Button_2 = GUICtrlCreateButton("Send", 280, 30, 90, 30)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_2
            If GUICtrlRead($Input_1) = "Notepad" Then
                MsgBox(0,"notepad", "typed")
            Else
                MsgBox(0,"Something else", "typed")
            EndIf
        Case Else
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

how would i make the script read the input from the box, and execute it as if it were a line in an autoit script?

example:

i type

Run("notepad.exe")

and click "Send"

i want it to run notepad,

-OR-

if i type

WinSetTrans("Untitled - Notepad", "", 178)

I want it to change the transparency...

THX : )

I thought I just read this question -

ok one more question...

how would i make the script read the input from the box, and execute it as if it were a line in an autoit script?

example:

i type

Run("notepad.exe")

and click "Send"

i want it to run notepad,

-OR-

if i type

WinSetTrans("Untitled - Notepad", "", 178)

I want it to change the transparency...

THX : )

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

Edit:

Case $msg = $Button_2
      Run(@AutoItExe & ' /AutoIt3ExecuteLine "' & GUICtrlRead($Input_1) & '"')

Remember the correct usage of single/double quotation. In this case, use in the input:

BTW: Be more specific in your title topics.

Thx alot : )

I thought I just read this question -

yeah but noone answered it, when i posted this, i figured less people would read it because it was at the end of another post, instead of having its own thread...

EDIT: I TRYED IT AND IT WORKS BUT ON THINGS LIKE

Run("notepad.exe")

you have to use double quotes...

example:

Run(""notepad.exe"")

is their a way to allow one set of quotes???

Edited by HackerZer0
Link to comment
Share on other sites

Run('notepad.exe')

Look closer at the quoting used. Josbe did mention to watch the use of quotes.

:P

he mentioned it in an EDIT after my post... and i know i can use single quotes

but is there a way to enable use of one double quote on each side?

example:

Run("notepad.exe")

NOT

Run('notepad.exe')

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...