Code: Select all
#Persistent
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
DetectHiddenWindows, on
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
FormatTime, timestamp,, dd.MM
CenterX := (A_Screenwidth // 2)
CenterY := (A_ScreenHeight // 2)
RegionX = 45 ;Define Top Left Corner Region for Drop Zone
RegionY = 100
RegionW = 150 ;Define Bottom Right Corner Region for Drop Zone
RegionH = 150
Gui, +HWNDhMain -border -caption
Gui, -caption +AlwaysOnTop
gui, color, white
gui, font, s12
Gui, add, edit, vSearching y5 w153 h20 -vscroll -E0x200,
gui, add, Picture, x205 y1 w105 h27 gSearch, %A_ScriptDir%\Images\search.png
gui, add, Picture, x0 y0 w200 h30, %A_ScriptDir%\Images\seachbar.png
Gui, show, w468 h46 , Google overlay
WinSet, Region, 0-0 200-0 200-100 0-100 0-0 w468 h46 R40-40, Google overlay
OnMessage(0x0201, "WM_LBUTTONDOWN")
Gui, Dropper: Show,,WM_LBUTTONDOWN Drag
Return
Search:
Run https://www.google.com/search?q=%Searching%
Return
Return
WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) {
global hMain
If (hwnd = hMain)
DllCall("PostMessage", "uint", hWnd, "uint", 0x00A1, "uint", 2, "uint", 0)
}
return
return
Leave:
WinMinimizeAllUndo
Exitapp
return
return
Esc::
Exitapp