Help get better this code

Get help with using AutoHotkey and its commands and hotkeys
Wazowski
Posts: 59
Joined: 16 Jun 2015, 21:04

Help get better this code

31 Aug 2015, 16:33

Hello friends

I would improve this code with more attractive buttons and more organized

Code: Select all

#NoEnv
#singleinstance, force			; force, ignore, off

wdth := A_ScreenWidth - 92 - 20

Menu, MyMenu, Add, Example 1, MenuHandler
Menu, MyMenu, Add, Example 2, MenuHandler
Menu, MyMenu, Add, Example 3, MenuHandler
Menu, MyMenu, Add, Example 4, MenuHandler
Menu, MyMenu, Add, Example 5, MenuHandler
Menu, MyMenu, Add, Exit, exit

Gui, -DPIScale
Gui, +LastFound -Caption +AlwaysOnTop
Gui, Color, 808080
WinSet, TransColor, 808080
gui, add, picture,x0 y0 w92 h-1 vimg gMove, %a_scriptdir%\smalltarget.png
Gui, Show, x%wdth% y20 h192 w92 ,Floating Target
Return

Move:	
PostMessage, 0xA1, 2,,, A 
Return

GuiContextMenu:
Menu, MyMenu, Show, %A_GuiX%, %A_GuiY%
return

MenuHandler:
gui, cancel
clipboard = %A_ThisMenuItem%
Send ^v
gui, show
return

exit:
guiescape:
gui, destroy
exitapp
this result gives this

Image

And I want to upgrade to something numbered buttons

Image

And that pressing the 1 button write me Example 1

In short I want to change my example and buttons to mark a small sign which was the last dialed

I hope you help me

Thank you
blza
Posts: 18
Joined: 01 Sep 2015, 09:23
GitHub: blza

Re: Help get better this code

04 Sep 2015, 14:11

You should roll out your own GUI. Take a look at Gui command in an the Autohotkey help file.

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, Bing [Bot], boiler, mikeyww, roysubs and 60 guests