EricTurner Posted July 22, 2012 Posted July 22, 2012 Im Creating a program for my custom minecraft client to allocate more ram. Is this possible in AutoIt? In BATCH, the code would be for 1 GB Allocation javaw -Xmx1024m -Xms512m -jar "C:\Users\%USERNAME%\Desktop\RPGCraft\RPGCraft.jar" Can I just type that straight in and it will accept it? Or is it not possible at all to do this? If not, could someone tell me the code to just open a program? SO when the button is pressed it will open a .bat file to do this. My Code for this is below. (Not entire code) Func Start() If GUICtrlRead($RAM1)=1 Then msgbox(0,"","Starting RPGCraft with 1 GB...") EndIf If GUICtrlRead($RAM2)=1 Then msgbox(0,"","Starting RPGCraft with 2 GB...") EndIf If GUICtrlRead($RAM3)=1 Then msgbox(0,"","Starting RPGCraft with 3 GB...") EndIf If GUICtrlRead($RAM4)=1 Then msgbox(0,"","Starting RPGCraft with 4 GB...") EndIf If GUICtrlRead($RAM5)=1 Then msgbox(0,"","Starting RPGCraft with 5 GB...") EndIf If GUICtrlRead($RAM6)=1 Then msgbox(0,"","Starting RPGCraft with 6 GB...") EndIf If GUICtrlRead($RAM7)=1 Then msgbox(0,"","Starting RPGCraft with 7 GB...") EndIf If GUICtrlRead($RAM8)=1 Then msgbox(0,"","Starting RPGCraft with 8 GB...") EndIf So it will display the message of RAM allocation, while doing (hopefully) a command to allocate.
somdcomputerguy Posted July 22, 2012 Posted July 22, 2012 Forum RulesYour question violates the forum rules, and you probably will not receive help on this topic.. Please take the time to read them; knowing and following these rules will make for a more pleasant stay on this forum Note the Zero Tolerance Policy! - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Moderators Melba23 Posted July 22, 2012 Moderators Posted July 22, 2012 EricTurner, Please follow the advice you have been given above. 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
Recommended Posts