Jump to content
Sign in to follow this  

Input Variable problems

Recommended Posts


I have this code that will open the Run window input some text. Problem is that it's not sending out the right text from the input controls; instead it sends out a 5 and 6. Any ideas on why this is happening?

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
GUICreate("BA-MERGE", 240, 160, -1, -1, -1, $WS_EX_ACCEPTFILES)

GUICtrlCreateLabel("Type in the path of the GIF you want to use.", 10, 10, 220, 40)
GUICtrlCreateLabel("Type in the path of the file you want to use.", 10, 60, 220, 40)

$inputgif = GUICtrlCreateInput("", 10, 30, 220, 20)
$inputfile = GUICtrlCreateInput("", 10, 80, 220, 20)

$merge = GUICtrlCreateButton("Merge", 10, 100)
GUICtrlSetOnEvent($merge, "Merge")

Func CLOSEClicked()

Func Merge()
    ControlSend("Run", "Type the name of a program, folder, document, or Internet resource, and Windows will open it for you.", "", "cscript.exe hide.vbs " & $inputgif & " " & $inputfile)

While 1

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post

Link to post
Share on other sites

You need to use GUICtrlRead on your input variables.

Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post

Link to post
Share on other sites

Right, I can't believe I was that stupid. :)

it happens man, don't be so hard on yourself. everyone has been there.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.