What I am looking to do is ask for input from the user for email and password for twitter. Like this:
They put their username and password in. When they hit login it takes that information and stores it into a variable that can be accessed by the module like this:
Once this variable is stored it can be used in the module without having to reenter it while in the module:
Everytime I set a global variable or set the values to Initialize when the module starts it doesn't set the variable correctly:
The site shouldn't matter because I am needing this to happen before going to the website, but it is unfollwers.com
So it should work like this:
1. Show GUI screen.
2. Ask for username and password.
3. User puts the username and password and hits login.
4. The information from the username is stored in a global variable that the WebModule can grab and use.
5. The information from the password is stored in a global variable that the WebModule can grab and use.
6. Run the WebModule using that information for login. (Module works if I manually specify the variables or I load them from a cvs file, just not when set from the GUI form)
Also a side note - (I have manage to get this to work through saving the variables from the text boxes to a text file. Is there a way to write to a csv file so I do not have to create 2 files - username.txt and password.txt? Is there a way to just save it to a csv similiar to the image below??)