Cedeq Community Forum
Keyboard Shortcut - Auto Login to a Questrade Account - Printable Version

+- Cedeq Community Forum (https://cedeq.com/forums)
+-- Forum: General (https://cedeq.com/forums/forumdisplay.php?fid=1)
+--- Forum: Keyboard shortcuts with AutoHotkey code (https://cedeq.com/forums/forumdisplay.php?fid=4)
+--- Thread: Keyboard Shortcut - Auto Login to a Questrade Account (/showthread.php?tid=45)

Keyboard Shortcut - Auto Login to a Questrade Account - denilama - 05-11-2018

If you do day trading, you know that five seconds can be the difference between a gain and a loss. If your broker is Questrade and want a keyboard shortcut that will automatically log you in, the following AutoHotkey script is for you. The shortcut will open Questrade (https://login.questrade.com/Signin.aspx) in Internet Explorer, enter your username and password in the appropriate fields.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

Username := "YourUserName"
Password := "YourPassword"
URL := "https://login.questrade.com/Signin.aspx"
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy
  Sleep, 100
wb.document.getElementById("userId").value := Username
wb.document.getElementById("password").value := Password

At lines #1 and #2, “YourUsername” and “YourPassword” must be replaced with the actual user name and password (do not remove quotation marks).

This script will also work if you are already logged into Questrade. It will start Internet Explorer even if this is not your default browser. The script was tested with Windows 7 and 10.

If Questrade changes the way its web page works, this script might stop working. If you experience any problems, please let me know with a post on this thread. You can subscribe to the thread to be notified of any updates.

You can now concentrate on what you do best: trading! And remember... buy the rumor and sell the news Smile