Nov 01, 2008, 04:04 AM // 04:04
|
#1
|
Ascalonian Squire
Join Date: Sep 2005
Location: Colorado
Guild: Caffeinated Existence
|
The Little GW Launcher That Could
So, me being the lazy individual I am, I do not like typing in my password every time I want to play the game,
so one day I wrote a little vbscript to launch gw.exe with the -email and -password switches, which was nice,
except my login info was out in plaintext on my computer, which grinded my nerves a bit since I am not only lazy, but a bit paranoid too.
So, I wrote a little minimalistic GUI app in VB.NET (VB '08 Express) that handles all the little things I like to do with GW:
- Launch GW with my login info.
- Store said login info securely
- The ability to update GW qith the -image switch
- The ability to take .BMP screenshots
That being said, time for screenshots:
The main window:
The options (blank fields at first go):
I type in my login info (once you click OK, the Options window goes away):
Upon opening Options with your info stored, it looks like so:
Finally, your settings are stored in an XML file, which looks like this (for the login info above):
Question and Comments encouraged.
The executable itself is attached, as well as the source for the paranoid among us.
Requires .NET Framework 2.0
Just extract it to your Guild Wars folder.
The Fix Link button in the options window updates the desktop shortcut to point to the launcher instead.
It minimizes to the tray upon launching the game and returns once the game closes so you can update the game when there is a new build, or just close it... whatever tickles our fancy.
Oh, yes, almost forgot, the Update button in the Options window is for re-enabling the login/password fields once information has been stored.
Clicking it will clear the fields out.
I think that about covers everything...
Again, Questions and Comments encouraged.
|
|
|
Nov 07, 2008, 05:16 PM // 17:16
|
#2
|
Jungle Guide
Join Date: Apr 2005
Profession: N/A
|
Can you explain the method you used to encrypt? If someone had your source, which you've just posted, it seems like it would be easy to decrypt.
Also, you should just let the user add their own command line options, like -noshaders -fps XX etc.
|
|
|
Nov 07, 2008, 09:45 PM // 21:45
|
#3
|
Krytan Explorer
Join Date: Dec 2006
Guild: Glob Of Ectospasm [GoE]
Profession: Me/Rt
|
You gotta love lazy people
(won't be using it but like your way of thinking )
|
|
|
Nov 12, 2008, 07:27 PM // 19:27
|
#4
|
Jungle Guide
Join Date: Jun 2005
Location: California
Guild: Shiverpeaks Search And Rescue [Lost]
Profession: Me/
|
you took the time to do all this coding and such but you can't be bothered to type in your password?
|
|
|
Nov 12, 2008, 08:06 PM // 20:06
|
#5
|
Ascalonian Squire
Join Date: Sep 2005
Location: Colorado
Guild: Caffeinated Existence
|
Quote:
Originally Posted by traversc
Can you explain the method you used to encrypt? If someone had your source, which you've just posted, it seems like it would be easy to decrypt.
|
If I told you, that would defeat the purpose.
Now, if you figure it out enough to decrypt the information, more power to you, now you would just have to get the hash from someone to get their info, seeing as the example is totally bogus.
Quote:
Originally Posted by royal mercenary
You gotta love lazy people
(won't be using it but like your way of thinking )
|
Lol, thanks.
Quote:
Originally Posted by Miss Puddles
you took the time to do all this coding and such but you can't be bothered to type in your password?
|
Well, the point of being lazy is to make something to automate a process generally repeated on a regular basis.
So, typing one long thing to not have to type one short thing multiple times every other day or so is worth it.
|
|
|
Nov 12, 2008, 08:19 PM // 20:19
|
#6
|
Jungle Guide
Join Date: May 2005
Location: Canada...... Eh!
|
Would there be a way to make a launcher like this, but to have it work with texmod as well? I love using texmod to chenge the ui, but like the op I hate having to type in my pass every time. I also like having the -perf command in the command line as well. I know at quite a few people who use texmod that would love something like that. Can it be done? (nudge, nudge, wink, wink. )
|
|
|
Nov 12, 2008, 09:36 PM // 21:36
|
#7
|
Ascalonian Squire
Join Date: Sep 2007
Profession: Me/
|
Isn't this a bit unsafe? As far as I read out of your source someone who knows a bit about Cryptograhy wouldn't have that much trouble to re-build the source of your password. Wouldn't it be better to use AES or some other secure algorithm?
@Jade: As far as I understood Esca he uses the GW commandline switches, which are incompatible to texmod, so this won't work.
|
|
|
Nov 12, 2008, 09:42 PM // 21:42
|
#8
|
Furnace Stoker
Join Date: Oct 2005
Location: Planet Earth, Sol system, Milky Way galaxy
Guild: [ban]
Profession: W/
|
Quote:
Originally Posted by Jade
Would there be a way to make a launcher like this, but to have it work with texmod as well? I love using texmod to chenge the ui, but like the op I hate having to type in my pass every time. I also like having the -perf command in the command line as well. I know at quite a few people who use texmod that would love something like that. Can it be done? (nudge, nudge, wink, wink. )
|
http://www.guildwarsguru.com/forum/s...php?t=10335481
I can't get that script to work, yet. Quite possible I'm doing something wrong. Trying to learn the AutoIT script, but I have only got as far as opening TexMod, selecting gw.exe, and opening the select package to load window. TexMod launches GW with no packages using my script. It would not be hard at all to make a script to open TexMod, select gw.exe, load all the .tpf packages, launch GW, and then type your password if you knew what you were doing. I do not, sadly. There would be a security issue. The script would contain your password, but someone would have to have access to your computer directly, or you'd have to have malware, remote access exploit, keylogger, etc.
I don't know any method to load GW with command line switches from TexMod. I've tried making batch files, and TexMod DOES load GW, but none of the switches work.
Last edited by MisterB; Nov 15, 2008 at 09:14 AM // 09:14..
Reason: No such thing as a "ketlogger!"
|
|
|
Nov 12, 2008, 10:53 PM // 22:53
|
#9
|
Jungle Guide
Join Date: Apr 2005
Profession: N/A
|
Quote:
Originally Posted by MisterB
http://www.guildwarsguru.com/forum/s...php?t=10335481
I can't get that script to work, yet. Quite possible I'm doing something wrong. Trying to learn the AutoIT script, but I have only got as far as opening TexMod, selecting gw.exe, and opening the select package to load window. TexMod launches GW with no packages using my script. It would not be hard at all to make a script to open TexMod, select gw.exe, load all the .tpf packages, launch GW, and then type your password if you knew what you were doing. I do not, sadly. There would be a security issue. The script would contain your password, but someone would have to have access to your computer directly, or you'd have to have malware, remote access exploit, ketlogger, etc.
I don't know any method to load GW with command line switches from TexMod. I've tried making batch files, and TexMod DOES load GW, but none of the switches work.
|
What exactly are you having trouble with? Maybe I can help (I wrote that autoIt script) Selecting the correct tpf file is the most iffy part of the script. What TexMod does is, when you press the tpf button, opens a new window (which looks like a menu) with options to select the most recent or select from a destination. The new window has no title or text, which is very annyoing to deal with.
You might try stepping through each command to find where exactly the script is having trouble. Or you could try adding delays in between commands, which might help if you have a slower computer.
|
|
|
Nov 16, 2008, 02:51 AM // 02:51
|
#10
|
Forge Runner
Join Date: Dec 2005
Location: America. How about you, commie?
Guild: Fellows of Mythgar [FOM]
Profession: R/Mo
|
Woo! First post here in a loooong time.
If I recall, can't you just use the -password parameter? Or was that removed?
Either way it only puts it into the form and then you must perform a debilitating press of the ENTER key, so I get your drift.
|
|
|
Nov 20, 2008, 08:10 PM // 20:10
|
#11
|
Banned
Join Date: Jan 2006
Location: Madison, Wisconsin, USA
Guild: [eF]
Profession: Mo/
|
-password parameter still works, hes not that lazy to run a parameter gw already has in the code. but rather spend time making his own and then be lazy
|
|
|
Nov 20, 2008, 09:42 PM // 21:42
|
#12
|
Jungle Guide
Join Date: May 2005
Location: Canada...... Eh!
|
Quote:
Originally Posted by traversc
What exactly are you having trouble with? Maybe I can help (I wrote that autoIt script) Selecting the correct tpf file is the most iffy part of the script. What TexMod does is, when you press the tpf button, opens a new window (which looks like a menu) with options to select the most recent or select from a destination. The new window has no title or text, which is very annyoing to deal with.
You might try stepping through each command to find where exactly the script is having trouble. Or you could try adding delays in between commands, which might help if you have a slower computer.
|
Say you only ever use 5 .tpf files. (the amount stored in the drop down menu without having to browse for more.) Wouldn't it be possible to just tell it to click on the folder icon and then have it press 1, folder icon, 2, folder icon, 3, etc?
|
|
|
Jan 03, 2009, 03:40 PM // 15:40
|
#13
|
Ascalonian Squire
Join Date: Jan 2009
Location: SoutherN California
Profession: W/Mo
|
Huh
I'm surprised you aren't up for a lazy GW player of the year, even the [LaZY] alliances pay tributes to you I'll bet =p
|
|
|
Oct 26, 2009, 07:50 AM // 07:50
|
#14
|
Ascalonian Squire
|
I actually tried it on XP with SP3 with all the .NET framework versions and it gives me a bug when I press the launch button, after setting up the login info:
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName, String arguments)
at GWboot.Root.Launch_Btn_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GWboot
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/rcvf/My%20Documents/Downloads/GWboot.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
It also gives me an error when I click update.
I hope it can help.
|
|
|
Oct 26, 2009, 12:06 PM // 12:06
|
#15
|
Wilds Pathfinder
Join Date: Sep 2005
Guild: WTS GW2 items for Zkey
Profession: Mo/
|
Quote:
Originally Posted by Cronkk
Wouldn't it be better to use AES or some other secure algorithm?
|
Slightly off topic, but;
If you're typing the letters A-E-S into your code you're doing it wrong.
(Amusing well-written crypto guide in the form of a play).
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
GW Launcher
|
gelei |
Community Works |
24 |
Nov 23, 2008 08:16 PM // 20:16 |
GW launcher crashes after update?
|
Fril Estelin |
Technician's Corner |
3 |
Nov 29, 2007 11:41 PM // 23:41 |
OrangeHunter |
Technician's Corner |
7 |
Mar 15, 2007 04:25 PM // 16:25 |
All times are GMT. The time now is 02:44 PM // 14:44.
|