Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

launcher app

$
0
0
Hi, I made this little launcher, so I don't get a cluttered desktop. The thing is, I don't know how to make the guicreate follow it, when you resize it, and also I added support for drag & drop, but that will of course only allow 1 file to be dragged and dropped, maybe someone know how to make it able to move more dropped files?

[ autoit ]         
#NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=icon.ico #AutoIt3Wrapper_UseUpx=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include #include #include HotKeySet("{F9}", "notontop") HotKeySet("{F10}", "ontop") If UBound(ProcessList(@ScriptName)) > 2 Then Exit if not fileexists(@appdatadir & "\launcher\") then dircreate(@appdatadir & "\launcher\") endif If $CmdLine[0] <> 0 then FileMove($CmdLine[1], @appdatadir & "\launcher") $oIE = ObjCreate("Shell.Explorer.2") _Uskin_LoadDLL() _USkin_Init(@ScriptDir & "\includes\Skin.msstyles") $title = GUICreate("Launcher", 600, 400, 6, 590, BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX,$WS_THICKFRAME)) $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 600, 400) Opt("WinTitleMatchMode", 2) WinSetTrans($title, "", 220) GUISetState() $oIE.navigate(@appdatadir & "\launcher\") While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd func notontop() WinSetOnTop($title, "", 0) TrayTip("", "F9 - Changed to NOT on top", 5) EndFunc func ontop() WinSetOnTop($title, "", 1) TrayTip("", "F10 - Changed to ON on top", 5) sleep(5000) EndFunc

Posted Image

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>