#SingleInstance Starthere: IniRead, brf1, Bump-n-Run.ini, filepath, 1 ;Read previous values from ini file IniRead, brf2, Bump-n-Run.ini, filepath, 2 IniRead, brf3, Bump-n-Run.ini, filepath, 3 IniRead, brf4, Bump-n-Run.ini, filepath, 4 IniRead, brf5, Bump-n-Run.ini, filepath, 5 IniRead, brf6, Bump-n-Run.ini, filepath, 6 IniRead, brf7, Bump-n-Run.ini, filepath, 7 IniRead, brf8, Bump-n-Run.ini, filepath, 8 IniRead, brl1, Bump-n-Run.ini, Label, 1, IniRead, brl2, Bump-n-Run.ini, Label, 2, IniRead, brl3, Bump-n-Run.ini, Label, 3, IniRead, brl4, Bump-n-Run.ini, Label, 4, IniRead, brl5, Bump-n-Run.ini, Label, 5, IniRead, brl6, Bump-n-Run.ini, Label, 6, IniRead, brl7, Bump-n-Run.ini, Label, 7, IniRead, brl8, Bump-n-Run.ini, Label, 8, Gui, +AlwaysOnTop ;stay on top of all windows. Gui, -Caption Gui, -SysMenu Gui, Show, x0 y1 w1 h600, Bump-n-Run ; SetTimer, WatchCursor, 100 Return WatchCursor: MouseGetPos, , , id, Control WinGetTitle, title, ahk_id %id% GetKeyState, state, LButton If title = Bump-n-Run { If state = D { MouseClick, left,,,,,U Return } Gosub,Gui2Menu Return } If title <> Bump-n-Run Menu ;if Mouse goes off flyout Menu, Destroy Menu { Gui,2:Destroy } Return GuiDropFiles: ;perform following if file dropped on GUI If brf1 = %A_GuiControlEvent% { Gosub,runfiledrop Return } brf8 = %brf7% ;shuffle all files down list brf7 = %brf6% brf6 = %brf5% brf5 = %brf4% brf4 = %brf3% brf3 = %brf2% brf2 = %brf1% brl8 = %brl7% ;shuffle all Labels down list brl7 = %brl6% brl6 = %brl5% brl5 = %brl4% brl4 = %brl3% brl3 = %brl2% brl2 = %brl1% SplitPath, A_GuiControlEvent, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive ;split the file path into seperate pieces brl1 = %OutNameNoExt% ;Bump Run Label 1 brf1 = %A_GuiControlEvent% ;Bump Run File 1 runfiledrop: Run, %A_GuiControlEvent% ;Run the file name Return Gui2Menu: Gui, 2:add, Button,w200 h40 gbrf1, %brl1% Gui, 2:add, Button,w200 h40 gbrf2, %brl2% Gui, 2:add, Button,w200 h40 gbrf3, %brl3% Gui, 2:add, Button,w200 h40 gbrf4, %brl4% Gui, 2:add, Button,w200 h40 gbrf5, %brl5% Gui, 2:add, Button,w200 h40 gbrf6, %brl6% Gui, 2:add, Button,w200 h40 gbrf7, %brl7% Gui, 2:add, Button,w200 h40 gbrf8, %brl8% Gui, 2:add, Button,w200 h40 gabout, About 'Bump-n-Run' Gui, 2:add, Button,w200 h40 gexitnow, &Exit (Quit Bump-n-Run) Gui, 2:show, x0 y1, Bump-n-Run Menu Return ;launch file if button pressed brf1: Run, %brf1% Return brf2: Run, %brf2% Return brf3: Run, %brf3% Return brf4: Run, %brf4% Return brf5: Run, %brf5% Return brf6: Run, %brf6% Return brf7: Run, %brf7% Return brf8: Run, %brf8% Return ;exit sequence, write all values to ini file exitnow: ;GuiEscape: GuiClose: IniWrite, %brf1%, Bump-n-Run.ini, filepath, 1 IniWrite, %brf2%, Bump-n-Run.ini, filepath, 2 IniWrite, %brf3%, Bump-n-Run.ini, filepath, 3 IniWrite, %brf4%, Bump-n-Run.ini, filepath, 4 IniWrite, %brf5%, Bump-n-Run.ini, filepath, 5 IniWrite, %brf6%, Bump-n-Run.ini, filepath, 6 IniWrite, %brf7%, Bump-n-Run.ini, filepath, 7 IniWrite, %brf8%, Bump-n-Run.ini, filepath, 8 IniWrite, %brl1%, Bump-n-Run.ini, Label, 1 IniWrite, %brl2%, Bump-n-Run.ini, Label, 2 IniWrite, %brl3%, Bump-n-Run.ini, Label, 3 IniWrite, %brl4%, Bump-n-Run.ini, Label, 4 IniWrite, %brl5%, Bump-n-Run.ini, Label, 5 IniWrite, %brl6%, Bump-n-Run.ini, Label, 6 IniWrite, %brl7%, Bump-n-Run.ini, Label, 7 IniWrite, %brl8%, Bump-n-Run.ini, Label, 8 ExitApp ;Close and Exit app Return ; ABOUT: Gui,9:Font,Bold Gui,9:Add,Text,x+10 yp+10,Bump-n-Run v1b Gui,9:Font Gui,9:Add,Text,xm+10,Simply 'bump' a icon into the left edge of the screen and away she goes. Gui,9:Add,Text,xm+10,drag a file in windows explorer, bump left edge and the file will execute. Gui,9:Add,Text,xm+10,bump mouse agaist left edge, and a button menu of last eight 'Bump-n-Run' is shown, allowing quick 1 click access. Gui,9:Add,Text,y+0,`t Gui,9:Font,Bold Gui,9:Add,Text,x+10 yp+10,DonationCoder Gui,9:Font Gui,9:Add,Text,xm,Please support the DonationCoder community Gui,9:Font,CBlue Underline Gui,9:Add,Text,xm GDONATIONCODER,www.DonationCoder.com Gui,9:Font Gui,9:Add,Text,y+0,`t Gui,9:Font,Bold Gui,9:Add,Text,x+10 yp+10,AutoHotkey Gui,9:Font Gui,9:Add,Text,xm,This program was made using AutoHotkey Gui,9:Font,CBlue Underline Gui,9:Add,Text,xm GAUTOHOTKEY,www.AutoHotkey.com Gui,9:Font Gui,9:Add,Text,y+0,`t Gui,9:Add,Button,GABOUTOK Default w75,&OK Gui,9:Show,,Bump-n-Run v1b return ABOUTOK: gui, 9:destroy return DONATIONCODER: Run,http://www.donationcoder.com,,UseErrorLevel Return AUTOHOTKEY: Run,http://www.autohotkey.com,,UseErrorLevel Return