AutoHotkey Community

It is currently May 26th, 2012, 9:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: October 14th, 2008, 8:15 pm 
Code:
Gui, Add, Text, x5 y9 w60 h20 , First Name
Gui, Add, Text, x5 y69 w60 h20 , Line 1
Gui, Add, Text, x5 y99 w60 h20 , Line 2
Gui, Add, Text, x205 y9 w60 h20 , Last Name
Gui, Add, Text, x85 y39 w70 h20 , New Address:
Gui, Add, Text, x265 y79 w130 h30 , apartment number goes on same line as street address
Gui, Add, Text, x209 y135  w6 h22 , `,
Gui, Add, Text, x5 y129 w60 h20 , City`, State
Gui, Add, Text, x285 y129 w20 h20 , ZIP
Gui, Add, Edit, x75 y9 w90 h20 vFirstName, FirstName
Gui, Add, Edit, x275 y9 w90 h20 vLastName, LastName
Gui, Add, Edit, x75 y69 w180 h20 vline1, Line1
Gui, Add, Edit, x75 y99 w180 h20 vLine2, Line2
Gui, Add, Edit, x75 y129 w130 h20 vCity, City
Gui, Add, Edit, x215 y129 w40 h20 vState, State
Gui, Add, Edit, x315 y129 w90 h20 vZIP, ZIP
Gui, Add, Button, x196 y170 w80 h20 , Submit
; Generated using SmartGUI Creator 4.0
Gui, Show, h240 w427, Address Correction
Return
buttonSubmit:
gui, submit
msgbox:
sleep, 70
msgbox, %Line1%
msgbox, %line2%
msgbox, %city%
msgbox, %state%
msgbox, %zip%
GuiClose:
gui, destroy



This is a GUI for a data entry macro - the purpose of the macro is to enter data into an existing database without asking the user for obvious information (today's date) or extraneous mouse-clicks.

It took me a while to figure out that with SmartGuiCreator, to add a variable name to an "edit" box, you must put the variable name, (preceded by a 'v') AFTER the size&location info. (Do not put a comma between size&location info and vVariableName.)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: kenn, xXDarknessXx and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group