; bsn Sender v1.6 by van-ko_g #singleinstance force #hotkeyinterval 2 setkeydelay, -1, -1 SetDefaultMouseSpeed, 0 oldip = 0 opid = 0 loop { sleep 2000 if(a_ipaddress1 = oldip) { continue } if instr(a_ipaddress1, "172.20.142") ;if instr(a_ipaddress1, "192.168.0") { process, exist, bNetSoul.exe if (errorlevel = 0) { msgbox, 262196, bnsSender, ( Vous etes a Epitech sans bNetSoul Voulez-vous lancer bNetSoul? ) ifmsgbox, yes run, "C:\Program Files\bNetSoul\bNetSoul.exe" reload } } oldip := a_ipaddress1 } ;#e::return #ifwinactive ahk_class TForm1 esc::PostMessage, 0x112, 0xF020,,, bNetSoul ; 0x112 = WM_SYSCOMMAND, 0xF020 = SC_MINIMIZE enter:: wingetpos,,, width, height, ahk_class TForm1 pos = 74 height := height - 30 width := width - 25 loop { pixelgetcolor, col, width, pos if (col = "0xBEBEBE") { coordmode, mouse, screen mousegetpos, ox, oy coordmode, mouse, relative click, %width%, %pos%, 2 coordmode, mouse, screen PostMessage, 0x112, 0xF020,,, bNetSoul ; 0x112 = WM_SYSCOMMAND, 0xF020 = SC_MINIMIZE sleep 300 winget, win, list, ahk_class TForm4 wingetpos, wx, wy,,, ahk_id %win1% wx := wx + 30 wy := wy + 5 click, %wx%, %wy% click, %ox%, %oy%, 0 coordmode, mouse, relative controlfocus, TMemo1, ahk_id %win1% break } if (pos > height) break pos := pos + 1 } return #IfWinActive ahk_class TForm4 enter::send !s esc::send !c +enter::send {enter} #ifwinactive ^!b:: DetectHiddenWindows, On PostMessage, 0x112, 0xF120,,, bNetSoul ; 0x112 = WM_SYSCOMMAND, 0xF120 = SC_RESTORE DetectHiddenWindows, Off sleep 100 send, {home} return