wts4 Posted June 12, 2015 Share Posted June 12, 2015 TLDR: I want to be able to dynamically #include <filename>The file will ONLY be a bunch of $var1= ,$var2 =, it is essentially a setttings file I am making a bot that will do something, then log into a different account, then do something, etc.I want the user to be able to create a new "account settings.ini" file for each account they have, for example one might log in and send 1 message, the other might log in and not send a message, depending on the settings. However I have alot of settings, not just 1 or 2.So what I want to do is have the user create all these different settings files, and drop them all into the settings folder. Then I will have the bot start, open 1 account, then go to the next, next, next.How can I do this?I have tried:Execute ("#include <" & $filename ...etc, and this does notwork.#include < $filename ...etc also does not workHelp would be greatly appreciated, thank you very much. Link to comment Share on other sites More sharing options...
jchd Posted June 12, 2015 Share Posted June 12, 2015 Which game do you bot? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
wts4 Posted June 12, 2015 Author Share Posted June 12, 2015 (edited) Clash of Kings (phone app game) Edited June 12, 2015 by wts4 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 12, 2015 Moderators Share Posted June 12, 2015 wts4,Welcome to the AutoIt forum.Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.See you soon with a legitimate question I hope.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