LOWLIFE Posted January 30, 2017 Share Posted January 30, 2017 I am pretty much a beginner just messing around with stuff. I have found snippets of code and made scripts to execute some of thenthings I want to do, but I want to improve my setup. I would like to make 1 script that can handle different functions as I choose. So from my little research I want to build a GUI? More specificly, I want to open the exec and have a window open up. This window wouldnhave multiple options auch as Press "any" button repeatedly. Where I can select what button, including the "f-" keys. I also would like the option to repeatedly push left or right mouse button and/or hold either mouse button down. Also, if possible, I would like to be able to adjust the duration and frequency of those inputs. Would I be able to build the GUI and leave some sort of user variable input that would be entered into the code? What might that look like? Any advice is appreciated. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 30, 2017 Moderators Share Posted January 30, 2017 (edited) The short answer to your question is yes, you can accomplish all you are trying to do. I would suggest as a beginning exercise to download and install the full version of AutoIt and SciTE, then choose Koda from the tools menu. You can use this form builder to try out creating a GUI shell with the different controls such as buttons and drop down menus. Once you have a framework you're happy with, look at the GUICtrlCreate* sections in the help file to show you how to interact with those controls. If you run into any issues, post your code here and we will do our best to assist. Edited January 30, 2017 by JLogan3o13 LOWLIFE 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
LOWLIFE Posted January 30, 2017 Author Share Posted January 30, 2017 Thanks. I will put some effort in the next few days. Link to comment Share on other sites More sharing options...
LOWLIFE Posted February 1, 2017 Author Share Posted February 1, 2017 I have some time to mess with this but KODA is not in the tools drop down. Link to comment Share on other sites More sharing options...
LOWLIFE Posted February 1, 2017 Author Share Posted February 1, 2017 I even re-downloaded scite and autoit. I can not find KODA anywhere. Link to comment Share on other sites More sharing options...
Subz Posted February 1, 2017 Share Posted February 1, 2017 Download Autoit Script Editor here https://www.autoitscript.com/site/autoit-script-editor/downloads/ Link to comment Share on other sites More sharing options...
LOWLIFE Posted February 1, 2017 Author Share Posted February 1, 2017 (edited) Thanks, subs. I found it by going to the file location and looking through the sub folders. I found it and this is the code I generated off of the koda file. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=C:\Users\Zac Admin\Desktop\games\editor\big\INTERFACE 1.kxf $Form1 = GUICreate("RYL ASSISTANT", 601, 437, 450, 132) GUISetCursor (0) GUISetBkColor(0xA0A0A4) $Label1 = GUICtrlCreateLabel("PUSH", 24, 80, 36, 17) $Input1 = GUICtrlCreateInput("", 80, 80, 65, 21) $Label2 = GUICtrlCreateLabel("THIS OFTEN", 168, 80, 76, 25) $Input2 = GUICtrlCreateInput("", 296, 80, 97, 21) $Checkbox1 = GUICtrlCreateCheckbox("L M CLK", 24, 112, 121, 25) $Checkbox2 = GUICtrlCreateCheckbox("L M DWN", 24, 144, 121, 25) $Checkbox3 = GUICtrlCreateCheckbox("R M CLK", 24, 176, 121, 25) $Label4 = GUICtrlCreateLabel("THIS OFTEN", 160, 144, 100, 25) $Input3 = GUICtrlCreateInput("", 320, 144, 97, 21) $Checkbox4 = GUICtrlCreateCheckbox("R M DWN", 24, 208, 121, 25) $Label6 = GUICtrlCreateLabel("THIS OFTEN", 160, 208, 100, 25) $Input4 = GUICtrlCreateInput("", 320, 208, 97, 21) $Checkbox5 = GUICtrlCreateCheckbox("ENTER", 24, 240, 121, 25) $Label7 = GUICtrlCreateLabel("THIS OFTEN", 160, 240, 100, 25) $Input5 = GUICtrlCreateInput("", 320, 240, 97, 21) $Label8 = GUICtrlCreateLabel("F-KEY", 24, 48, 36, 17) $Input6 = GUICtrlCreateInput("", 80, 48, 57, 21) $Label9 = GUICtrlCreateLabel("THIS LONG", 160, 48, 92, 25) $Input7 = GUICtrlCreateInput("", 264, 48, 97, 21) $Label10 = GUICtrlCreateLabel("THIS OFTEN", 376, 48, 90, 25) $Input8 = GUICtrlCreateInput("", 480, 48, 97, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd A few things I want to be able to do is start and stop the code. Code that I have found for my basic task before used 'end" and "Home" and "insert" since I rarely use those keys for anything else but I don't see why that can't be a user defined input as well. I know it is often helpful to understand what someone is trying to make happen so I will try to explain this. I play a game that allows multiple clients to be open on 1 computer. I play multiple computers with multiple clients on each computer. I want a character on computer 2 to be able to cast skills for a specified duration of time and release at the right time for maximum effect while I actively play computer 1. Sometimes I need to be able to press a certain button or either mouse click repeatedly also. It is very helpful to be able to mix and match which functions are being executed while I am doing other things. So I hope this kind of helps you understand my motives and maybe you have better ideas than what I have come up with. Thanks for the help again. Edited February 1, 2017 by LOWLIFE I updated the code to what I stopped with for the night. Link to comment Share on other sites More sharing options...
LOWLIFE Posted February 1, 2017 Author Share Posted February 1, 2017 (edited) deleted question Edited February 1, 2017 by LOWLIFE I found a solution. Link to comment Share on other sites More sharing options...
spudw2k Posted February 1, 2017 Share Posted February 1, 2017 (edited) It's always helpful the forum community here if you post how you solved an issue instead of deleting the post and not leaving an answer. ....although, I see your GUI code has the word game in it's path, and the nature of your script does smell like some sort of game automation, so I suspect you might be tip toeing the topic anyways (if you've come to be aware of the rules against game automation). Edited February 1, 2017 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 1, 2017 Moderators Share Posted February 1, 2017 LOWLIFE, Looks very gamey to me - thread locked. Please read the Forum rules before posting again. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts