I need simple functionality in my QT application that will run an external .bat file that will appear in the same folder of the application. Above the button will be a text box, with a label next to it which says Wallet Address. There will also be the option to simply configure some parameters in the application.
I have included images of what the application looks like now and how it should look after.
Here are the steps needed to implement the full solution:
2. Cog button must bring up a window when pressed and load the options from veggiecoin.io/pool.list. There are two lines in this file, you can see them on your browser at veggiecoin.io/pools.list. If you run one of these lines in a .bat file, it will start mining the veggiecoin, provided that the ccminer application is also in that folder.
The first line on that webpage "ccminer-x64 -a hmq1725 -o stratum+tcp://stratum.happypool.co:3700 -u WALLETADDRESS -p c=VEGI,stats --cpu-priority 3 pause"
is the script to mine in a pool called "happy pool", and the second one
ccminer-x64.exe -a hmq1725 -o stratum+tcp://veggie.altcoin-pool.eu:3747 -u WALLETADDRESS -p c=VEGI,stats
is a script to mine in a pool called "altcoin pool". The user should have the option to choose which pool they would like to mine in, in the config window. If the list on that web page grows, the list in the QT should grow also. The application will need to query this web page and pull the plain text from it in order to keep up to date, when the config button is pressed.
3. "Start Mining" button. When pressed, the start minning button should check whether the textbox has text within it. If it does not, it should provide an alert which says "Please add your wallet address to the "Wallet Address" box. You can find your wallet address by pressing "Receive > Request Payment > Copy Address" and then pasting it with "Ctrl + V" "
Then, if a mining pool is not yet selected with the config button, bring up the options. When the user has chosen an option, then the script should be created in the same folder and automatically run. The script will be called "MineVeggiecoin.bat" and the word "WALLETADDRESS" within the script will be replaced by the address provided by the user in the text box
The button should check whether ccminer-x64 or ccminer-x86 is in the same folder. If it is not, the alert "Please make sure you have CCMiner in the same folder as this application!" should appear, otherwise the script will run fine.
March 8, 2018
I am looking for a mix of experience and value