Jump to content
Sign in to follow this  
lowzix

Need help keeping script alive

Recommended Posts

lowzix

So i have a Script with alot of Functions in it, but nothing more than that. i Basically want the script to be running 24/7 so when i press for example CTRL+ALT+X the func assigned to that command goes off.

The best way i have to keep the scrit going is to just:

While 1

Sleep(999999999999999999999999)

Wend

Is there another way to do it as i think this is not a good way of doing it considering i got a low end computer and it might run out of memory or something? or is this way perfectly fine?

Share this post


Link to post
Share on other sites
Melba23

lowzix,

A simple Sleep(10) will suffice in that loop, no need for anything longer to keep the CPU from frying itself. Memory is another thing altogether - what do these "functions" do? :huh:

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
lowzix

Hi and thanks for a fast answer :)

It's just a script to a betting site, i play dice with 4x payout (25% win chance) and i use the arrowkeys to control. So when i lose i press Left arrow and the bet will increase by 50%, another arrow key to reset to starting value and a final key to swap between winning on rolls under 25 or over 75. I am planning to fully automate it when i get tired of betting myself :) (i will input a Random clock to swap between the 25- or 75+ and automate the on loss (left key) and on win (upper key) functions.

Already made ~4.7 bitcoins doing this which is rougly 2.3k USD :)

Edited by lowzix

Share this post


Link to post
Share on other sites
Melba23

lowzix.

You appear not to have read the Forum rules since your arrival. Please do read them - particularly the bit about not discussing game automation - before you post again. :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  

×