Skip to content

Instantly share code, notes, and snippets.

;This section makes the flashing dofus window come to front, dont touch this without knowing what you are doing
DetectHiddenWindows, On
Script_Hwnd := WinExist("ahk_class AutoHotkey ahk_pid " DllCall("GetCurrentProcessId"))
DetectHiddenWindows, Off
DllCall("RegisterShellHookWindow", "uint", Script_Hwnd)
OnMessage(DllCall("RegisterWindowMessage", "str", "SHELLHOOK"), "ShellEvent")
ShellEvent(wParam, lParam) {
if (wParam = 0x8006) HSHELL_FLASH
{
WinGet,descobre,ProcessName, ahk_id %lParam%
#!/bin/bash
#Dofus Window Switcher
#Usage: With no parameters, attempts to switch to a flashing dofus window.
#With a parameter, switch to the window with that title
if [ -z $1 ] ; then
for id in `xdotool search --class "Dofus"`; do
xprop -id $id | grep "The urgency hint bit is set" > /dev/null 2>&1
if [ "$?" = "0" ]; then
wmctrl -i -a $id
@mikeshardmind
mikeshardmind / dofus-setup.sh
Last active May 7, 2017 04:23
Quick script for Installing dofus and its dependencies
#!/bin/bash
#Run this from the same folder as dofus-amd64.tar.gz
#Run as a normal user to prevent root ownership of the files
#Will prompt for sudo partially through setup
#Only tested to work on Ubuntu 16.04, 15.10, 15.04, 14.04, 12.04 and Mint 17.x, 17, 13
#adobe air installation adapted from someone else's script found here : http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
if [ $# -ne 2 ]; then
echo "Usage: $0 path/to/dofus.tar.gz path/to/place/game/folder"
exit 0