Hello dear boyz and gilrz (maybe)!!!
My name is Sim or as I recently understood SimBeSim (cause when I searched in Google word SimBeSim I got beautiful result of 0)
Anyway, first of all I want to appologize for being abit rude and pulling ur attention in this topic in a pretty unusal way. But yes I did that on purpose cause I exactly that and wanted, ur attention.
So sorry cause it does look very rude. Font-size alone is also quite rude
but it also does help your attention keep on highest level.
Second is of course needeed to say how great is the persoon who made AHK. And as soon as he or even she comes in this topic I certainly wil, only again just like this topic I will try to do it very originally.
Ok, the reason why I am speaking to you is because I was reading here and there and have a good feeling of persons who do things here. Esspesially is very romantic the fact that someone can easiely request somting and that gets done even.
Very hard to understand accually why would 1 do for other somtin for free?
But still monkeys do nothing for free, humans do though.
So what I have is someting what I am building of ahk and I already have found two blocks of code here on forum and now they only need to be joined.
And of course if not even 1 persoon wil want to help me I as ussual do it again myself just as I already do for many years and have never asked other how to do things.
Yes I do surf forums a lot in search of an answer 4 my own quistion asked earlier.
Still I dare to think that u help me and I help u.
Simply cause u too will be using that what I want to make. Only because it's very very simple so simple as Sim, Sim-simple.
Good so let's see what now happens.
Here is the code to be merged with other code. What I want is context menu everywhere good working and cascading (just like start botton) and also very important that menu shows up after a slight delay and not interfeers with existing menu.
code:
Code:
Menu, menu_context, Add, menu_context_ShowHello
Gui, Add, Edit, x5 y5 w400 h200, hybrid context menu
Gui, Add, Edit, x5 y210 w400 h200, default context menu
Gui, Show,, test window
WinGet, hw_test, ID, test window ahk_class AutoHotkeyGUI
WM_RBUTTONDOWN = 0x204
OnMessage( WM_RBUTTONDOWN, "HandleMessage" )
return
GuiClose:
ExitApp
HandleMessage( p_w, p_l, p_m, p_hw )
{
Gosub, $RButton
}
timer_ShowCustomMenu:
SetTimer, timer_ShowCustomMenu, off
Menu, menu_context, Show
return
$RButton::
MouseGetPos,,, wid, control
if ( wid = hw_test and control = "Edit1" )
SetTimer, timer_ShowCustomMenu, 200
else
Send, {RButton Down}
return
$RButton Up::
SetTimer, timer_ShowCustomMenu, off
MouseGetPos,,, wid, control
if ( wid = hw_test and control = "Edit1" )
Send, {RButton Down}{RButton Up}
else
Send, {RButton Up}
return
menu_context_ShowHello:
MsgBox, Hello`, World!
return
and cascading effect code:
Code:
#Persistent
#SingleInstance, force
Gosub, TrayMenu
Gosub, CreateMenu
Hotkey, RButton, On
Return
RButton::
Menu, Menu1, Show
Return
Exit:
ExitApp
Return
Disable:
Hotkey, RButton, Off
Return
Enable:
Hotkey, RButton, On
Return
TrayMenu:
Menu, Tray, NoStandard
Menu, Tray, Add, Activate, Enable
Menu, Tray, Add, Exit, Exit
Menu, Tray, Default, Activate
Return
;Below are actions you can change
CreateMenu:
Menu, RunMenu, Add, Editor, RunEditor
Menu, RunMenu, Add, Explorer, RunExplorer
Menu, Menu1, Add, Run, :RunMenu
Menu, Menu1, Add, Switch between tasks, KeyAltTab
Menu, Menu1, Add, ,
Menu, Menu1, Add, Deactivate, Disable
Menu, Menu1, Add, ,
Menu, Menu1, Add, Exit, Exit
Return
RunEditor:
Run, Notepad.exe
Return
RunExplorer:
Run, Explorer.exe
Return
KeyAltTab:
Send, !{Tab}
Return