GUI help

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: GUI help

Re: GUI help

Post by exbuzz » 18 May 2018, 18:12

Hi Hellbent, Thanks for the help so far, I have learnt a lot from the script you sent back and altered it slightly.

I have attached it below for you to run.

I would like it so, when I enter card details etc, when you press the button, it changes %card_number% or %card_pin% to the one entered in the script.

There are a few other things I would like to do with it as well but don't want to ask too much of you. You have been a great help so far, please tell me if you would like to continue work on this so you can help with few other minor issues.

Anyway, here is the script,


Card_Number:="1234 5678 1234 5678"
Gui,1: Show, w415 h275, Supreme Bot - By Ben Danziger
Gui,1:Color, ee0606
Gui,1:Font,cWhite s14 Q4 ,courier
Gui,1:Add,Groupbox,x20 y30 w230 h60 Section,Card Number
Gui,1:Add,Edit,cBlack x35 y55 w200 h80 r1 vCard_Number gSubmit_All ,% Card_Number
Gui,1:Add,Groupbox,xs+260 y30 w100 h60 Section,Pin
Gui,1:Add,Edit,cBlack xs+10 ys+25 w80 r1 vCard_Pin gSubmit_All ,% Card_Pin
Gui,1:Add,Groupbox,x20 ys+80 w230 h60 Section,Expiry Date
Gui,1:Add,DDL,cBlack xs+10 ys+25 w210 AltSubmit vEX_Date gSubmit_All,January||Febuary|March|April|May|June|July|August|September|October|November|December|
Gui,1:Add,Groupbox,xs+260 ys+0 w100 h60 Section,Year
Gui,1:Add,DDL,cBlack xs+10 ys+25 w80 AltSubmit vEX_Date2 gSubmit_All,2018||2019|2020|2021
Gui,1:Add,Button,x20 ys+90 w360 r1 gTest_This, Set Details / Start

Gui,1:Show,,Supreme Bot

MsgBox, I would like it so when this button is pressed, the details set above are implemented into the script, and the script window minimizes

Re: GUI help

Post by Hellbent » 18 May 2018, 14:33

DRocks wrote:Hey Hellbent its nice to see a post of you herr. Just letting you know that you really helped me alot to start my AHK journey!! From.your YouTube channel! For instance your Gui tutorials for example!

All the best

I'm glad to have helped in what little way I could :)

Re: GUI help

Post by DRocks » 18 May 2018, 06:43

Hey Hellbent its nice to see a post of you herr. Just letting you know that you really helped me alot to start my AHK journey!! From.your YouTube channel! For instance your Gui tutorials for example!

All the best

Re: GUI help

Post by Hellbent » 17 May 2018, 19:46

is this what you mean by inputs?

Code: [Select all] [Expand]GeSHi © Codebox Plus

GUI help

Post by exbuzz » 17 May 2018, 11:19

Hi guys,
Just need some help with a GUI, not very experienced with them. I will paste the script below. I have made a bot that gets me stuff from a website in under 4 seconds, assuming the address has been saved, it is very useful as when the website drops hyped items, I can buy them fast. Basically I want an input box where you can enter card number, security code and expiration date. The card number and security code are what I assume to be quite easy as the variables are stated at the start of the script and can be altered. However, the arrangement I have with the expiry date is more relative to the website. obviously on most websites you enter expiry date from a drop down menu. The site I have programmed for uses a drop down menu also, however the current month and year is what it is automatically set too. For example the month now is may (5) and 2018, if my expiry date was October (10) and 2019, the arrangement would be:

Code: [Select all]GeSHi © Codebox Plus

 send {tab}
send {enter}
send {down 5}
send {enter}

this goes from the previous box, to the current month box, presses enter, moves the highlighted box down 5, to October. After this, the code is:

Code: [Select all]GeSHi © Codebox Plus

sleep, 5
send {tab}
send {enter}
send {down 1}
send {enter}

This takes the highlighted 2018 to 2019.
This means I have to update the bot every month, decreasing the amount the highlighted box needs to move.
I thought of using image search instead, so it finds the "10" in the drop down, however when it gets to October 2018, the image search will not be carried out as the image it is looking for will have changed colour. Also I assume it makes it harder for the GUI to change the expiration date as you would need a collection of pictures and a way of getting around the highlighted month that changes monthly.

Overall, I would love help for these things:
1. Creating an input box for the card number, along with some sort of enter box, that submits it into the code.
2. the same box and button, except for a 3 digit security code
3. A drop down menu for the month and year that somehow correlates to the code which selects the drop down menu on the site
4. A way of selecting the information on the drop down menu for the site, that would not have to be changed monthly but does not compromise the GUI

any help is greatly appreciated :D

If anyone is wondering, the website is


Code: [Select all] [Expand]GeSHi © Codebox Plus

always use code tags for ahk scripts!