| Author |
Message |
Forum: Scripts Topic: GroupBox-Add/wrap around existing controls. |
| dmatch |
|
Posted: February 8th, 2012, 3:48 pm
|
|
Replies: 7 Views: 756
|
| Fixed y Margin in original posted code. I had been using extra Title Height instead of applying proper Margin at the top. Changed GBTHeight to 10 instead of 22 in demo. Changed: yPos:=GBY+TitleHeight To yPos:=GBY+TitleHeight+Margin And GBH:=maxY-MinY+TitleHeight+Margin To GBH:=maxY-MinY+TitleHeight+... |
|
 |
Forum: Scripts Topic: GroupBox-Add/wrap around existing controls. |
| dmatch |
|
Posted: February 6th, 2012, 12:58 am
|
|
Replies: 7 Views: 756
|
You're welcome. Hope it is/has been useful.
dmatch |
|
 |
Forum: Scripts Topic: GroupBox-Add/wrap around existing controls. |
| dmatch |
|
Posted: September 5th, 2011, 6:26 pm
|
|
Replies: 7 Views: 756
|
| This Demo includes a simple function that will add a GroupBox and wrap it around existing controls in a GUI. Written for AHK Basic 1.0.48.05. GBTHeight:=10 Gui, +LastFound Gui, Add, Text, vLabel1, A Label Gui, Add, Text, x162 yMargin vLabel2, Nother Label Gui, Add, Edit, Section vMyEdit1 xMargin, Th... |
|
 |
Forum: Support Topic: new buttons |
| dmatch |
|
Posted: August 30th, 2011, 3:45 pm
|
|
Replies: 8 Views: 233
|
|
 |
Forum: Support Topic: new buttons |
| dmatch |
|
Posted: August 29th, 2011, 3:43 pm
|
|
Replies: 8 Views: 233
|
| You could try using AHK's Key History feature. Just create a simple script like: ;Run this and open autohotkey (double-click icon). ;To see key history (view - key history) #installkeybdhook #persistent A Virtual Key code will be displayed in the key history if Autohotkey sees it. Yo... |
|
 |
Forum: Support Topic: Control VLC Player using ControlSend????? |
| dmatch |
|
Posted: August 21st, 2011, 11:22 pm
|
|
Replies: 12 Views: 398
|
| For what it's worth I can't make * (wildcard) work with WinExist . Perhaps it doesn't. SetTitleMatchMode, RegEx seems to just act like SetTitleMatchMode, 2 for me. Try getting rid of the *. Might also simplify it with WinExist("VLC") . Also, not that it keeps the script from working, but o... |
|
 |
Forum: Support Topic: How use One button for two |
| dmatch |
|
Posted: August 21st, 2011, 10:39 pm
|
|
Replies: 13 Views: 261
|
Okay, no problem.
I read the info as you suggested and there is a difference (not that I knew it before) in that use of the $ invokes the keyboard hook on NT or later.
So this other solution would be:
Code: $f6::send {f6}^v
dmatch |
|
 |
Forum: Support Topic: How use One button for two |
| dmatch |
|
Posted: August 21st, 2011, 10:24 pm
|
|
Replies: 13 Views: 261
|
Thanks Guest for your kind words. Also, thanks for the info on $.
dmatch |
|
 |
Forum: Support Topic: Control VLC Player using ControlSend????? |
| dmatch |
|
Posted: August 21st, 2011, 10:12 pm
|
|
Replies: 12 Views: 398
|
| WinExist is a function that requires use of (): if(WinExist("SomeWindowNameHere")) would be a legal use. However, you probably meant to use the IfWinExist or IfWinActive commands. They can be used to do what you are attempting but to do it on a partial title match you need... |
|
 |
Forum: Support Topic: How use One button for two |
| dmatch |
|
Posted: August 21st, 2011, 9:50 pm
|
|
Replies: 13 Views: 261
|
| Pick the key you want to use to generate the f6 and Ctrl-V. Here I chose f5: f5::send {f6}^v If you want to send the same key that you press and then another one you will have to suspend hotkeys while you send the first key so that you don't start an infinite loop. To do that: f6:: suspend... |
|
 |
Forum: Support Topic: How use One button for two |
| dmatch |
|
Posted: August 21st, 2011, 4:47 pm
|
|
Replies: 13 Views: 261
|
Oh, I see, you suspect button=Key (on a keyboard). If that's the case then yes, a::send bc.
I had GUI button in mind since word "click" was used.
dmatch |
|
 |
Forum: Support Topic: How use One button for two |
| dmatch |
|
Posted: August 21st, 2011, 4:23 pm
|
|
Replies: 13 Views: 261
|
More information is needed. Push a button where, what program?
If the buttons have ClassNN names and are visible in AU3Spy.exe it could be a simple thing.
dmatch |
|
 |
Forum: Support Topic: Read value from ini to edit box and keybind |
| dmatch |
|
Posted: August 20th, 2011, 4:49 pm
|
|
Replies: 3 Views: 196
|
| You need to use GuiControl to initialize all your variables after reading them from the INI file. What I usually do is read all the variables before creating the GUI and initialize them as they are added to the GUI. For example you could "GoSub Czytaj" before your GUI statements. Then add ... |
|
 |
Forum: Support Topic: Force underline menu items |
| dmatch |
|
Posted: August 18th, 2011, 7:43 pm
|
|
Replies: 3 Views: 204
|
| I attempted to turn off the & key accelerators (since they are on in my XP) using the script below but was unsuccessful. Perhaps I am missing something and you will be successful, or the message is not getting thru or I just plain don't know what I'm doing (more likely). Gui, Add, Button, gTest,... |
|
 |
Forum: Support Topic: Force underline menu items |
| dmatch |
|
Posted: August 18th, 2011, 6:11 pm
|
|
Replies: 3 Views: 204
|
| I don't know if this applies in XP/Vista/Win7 but here are 3 Window's messages that MIGHT be of use in your endeavor: WM_QUERYUISTATE http://msdn.microsoft.com/en-us/library/ms646355 WM_CHANGEUISTATE http://msdn.microsoft.com/en-us/library/ms646342 WM_UPDATEUISTATE http://msdn.microsoft.com/en-us/li... |
|
 |
| Sort by: |