Skip to content

Instantly share code, notes, and snippets.

@SergeyAvd
Created October 27, 2017 20:00
Show Gist options
  • Save SergeyAvd/07e1793b4fa79adadc73e793b4efb36a to your computer and use it in GitHub Desktop.
Save SergeyAvd/07e1793b4fa79adadc73e793b4efb36a to your computer and use it in GitHub Desktop.
Hit F12 to open DevTools debugger for Xulrunner (Firefox/Gecko) based application. Pre-req: installed Firefox, opened application
SetTitleMatchMode, 2
ConnectFirefox()
{
WinActivate Mozilla Firefox
Send, {Alt}
Send, T
Send, W
Send, C
While !WinExist("Connect - Mozilla Firefox")
Sleep, 100
Loop, 12
{
;Sleep, 0
Send, {Tab}
}
Send, {Enter}
}
PressF6InRater()
{
WinActivate Applied Rater
Send, {F6}
Sleep, 100
;WinActivate JavaScript Application
Send, {Space}
}
HitOkForIncomingConnection()
{
While !WinExist("Incoming Connection")
Sleep, 100
WinActivate, Incoming Connection
Send, {Left 2}
Send, {Space}
}
OpenDebugger()
{
Sleep, 400
WinActivate Mozilla Firefox
Send, {Tab}
Send, {Enter}
}
OpenOrSwitchToFirefox()
{
if !WinExist("Mozilla Firefox")
{
Run, firefox
While !WinExist("Mozilla Firefox")
Sleep, 100
WinActivate, Mozilla Firefox
}
WinActivate, Mozilla Firefox
}
F12::
PressF6InRater()
OpenOrSwitchToFirefox()
ConnectFirefox()
HitOkForIncomingConnection()
OpenDebugger()
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment