Xtian Posted July 29, 2010 Share Posted July 29, 2010 Hi and Good day to all! I decided to create my own macro maker using AutoIT. This should be simple but I don't know the right code to make it run kindly check my code below and help me if you know what to do. what i need is to run the code displayed on the screen window. Here's my code: (Help) #include <GuiConstantsEx.au3> GUICreate("Macro Editor",200,200) $winName = GUICtrlCreateInput("Untitled - Notepad",10,10,180) $screen = GUICtrlCreateEdit("",10,40,180,100) $start = GUICtrlCreateButton("Start",10,150,100,20) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_Event_Close() Exit Case $msg = $start $readWinName = GUICtrlRead($winName) GUICtrlSetData($screen,"WinActivate(" & chr(34) & $readWinName & chr(34) & ")"); i want to run this code... r_r EndSelect WEnd ........... Thanks in advance.. Sorry for being noob but... thanks to you im learned something new. Link to comment Share on other sites More sharing options...
Xtian Posted July 29, 2010 Author Share Posted July 29, 2010 *Bump I already found the code.. all I need is the "execute function" you can ignore this now sorry for the trouble. Thanks. Kampai!! Sorry for being noob but... thanks to you im learned something new. Link to comment Share on other sites More sharing options...
AlmarM Posted July 29, 2010 Share Posted July 29, 2010 *BumpI already found the code.. all I need is the "execute function" you can ignore this now sorry for the trouble.Thanks.Kampai!! If you use Execute you can only run 1 autoit line. Right? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Xtian Posted July 30, 2010 Author Share Posted July 30, 2010 If you use Execute you can only run 1 autoit line. Right? Yah r_r and so again im looking for a way to make it run.. i can only execute 1 line. sob Y_Y Sorry for being noob but... thanks to you im learned something new. Link to comment Share on other sites More sharing options...
AlmarM Posted July 30, 2010 Share Posted July 30, 2010 Yah r_r and so again im looking for a way to make it run.. i can only execute 1 line. sob Y_YYou could run multiple lines with AutoIt3.exe, (C:\Program Files (x86)\AutoIt3\AutoIt3.exe) using some parameters.Search around the forum, there are plenty of topics about it. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now