Sign in to follow this  
Followers 0
EricTurner

Possible to Allocate Ram in AutoIt?

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



Forum Rules

Your 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.

Share this post


Link to post
Share on other sites

EricTurner,

Please follow the advice you have been given above. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0