Search found 150 matches

by lblb
06 Apr 2016, 17:00
Forum: Scripts and Functions
Topic: Tablet Mode toggle for Windows 10
Replies: 33
Views: 14530

Re: Tablet Mode toggle for Windows 10

@SifJar, I agree with most of what you said. I'm not trying to start a semantics or even a detailed discussion (as this would not be the appropriate thread), I was just trying to say in simple terms that it's not all new Windows magic that just popped up in Windows 10 and that many Win 10 settings a...
by lblb
06 Apr 2016, 15:44
Forum: Scripts and Functions
Topic: Tablet Mode toggle for Windows 10
Replies: 33
Views: 14530

Re: Tablet Mode toggle for Windows 10

I'm hoping that someone will eventually come out with an AHK library to handle some of this new-fangled Windows 10 UI stuff. Then we won't have to rely so much on mouse clicks & keystrokes. :D Unfortunately the WinAPI doesn't expose any functions for handling this stuff programmatically (I guess be...
by lblb
05 Apr 2016, 10:58
Forum: Ask For Help
Topic: Dynamic button creation.
Replies: 19
Views: 3178

Re: Dynamic button creation.

Hi, I'm still not sure I understand what you need. 1) Will the three different Gui's ever change? If not, why not just create 3 different Gui's and show/hide them. Quick example: #SingleInstance, Force Gui, First: Add, Button, w50 vButtonA gThisButton, A Gui, First: Add, Button, w50 vButtonB gThisBu...
by lblb
05 Apr 2016, 10:15
Forum: Ask For Help
Topic: Dynamic button creation.
Replies: 19
Views: 3178

Re: Dynamic button creation.

May I ask why you want to re-create the Gui every time, and not just create it at the top of the script, and then show/hide it with the hotkey? In any case, for your other question: Instead of waiting for the user to push a button to do "something" after creating the gui, you could just put that "so...
by lblb
05 Apr 2016, 00:35
Forum: Ask For Help
Topic: Dynamic button creation.
Replies: 19
Views: 3178

Re: Dynamic button creation.

Hi water_ss, I'm not exactly sure what you are trying to do as your initial post is quite confusing... If you just want to determine "divisionX", can't you just add the key to the button's variable (and then play with the A_GuiControl string)? Or maybe I misunderstood and that's not what you are ask...
by lblb
21 Mar 2016, 00:47
Forum: Ask For Help
Topic: Modifying keyboard for Spanish
Replies: 4
Views: 874

Re: Modifying keyboard for Spanish

Hi hypershock,

Have you looked at this script by maestrith, it's pretty great!

https://autohotkey.com/boards/viewtopic ... lit=accent
by lblb
20 Mar 2016, 16:07
Forum: Ask For Help
Topic: Using Variables in as Label. Possible?
Replies: 3
Views: 879

Re: Using Variables in as Label. Possible?

Hi Pukeface, I know it's not what your question is, but whatever reason you need to do what you asked for, maybe the use of variables could also be a viable option: Var = 2 If ( Var = "1" ) { LabelNr = One } Else If ( Var = "2" ) { LabelNr = Two } Gui, Add, Button, v%LabelNr% gLabel, Press for succe...
by lblb
18 Mar 2016, 20:50
Forum: Ask For Help
Topic: AHK Two Pane Selection GUI
Replies: 1
Views: 494

Re: AHK Two Pane Selection GUI

So, are you asking for help? Why not provide a bit more info into what you are looking for to help us help you? And what have you found so far? In any case, maybe these could be helpful: https://github.com/majkinetor/mm-autohotkey/tree/master/Toolbar http://www.autohotkey.com/forum/viewtopic.php?t=3...
by lblb
11 Mar 2016, 04:30
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

I've never used task scheduler before. Maybe you could instead use a code that detects when your computer comes back from sleep. Try the following: - Create a new .ahk script - Paste in the following: OnMessage(0x218, "WM_POWERBROADCAST") WM_POWERBROADCAST(wparam, lparam) { static changeText := {10:...
by lblb
11 Mar 2016, 04:00
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Good work! Now completely get rid of the loops: #SingleInstance, Force SetBatchLines, -1 Run, control mmsys.cpl WinWait, Sound ahk_class #32770 SendMessage, 0x1330, 1,, SysTabControl321, Sound ahk_class #32770 Sleep 0 SendMessage, 0x130C, 1,, SysTabControl321, Sound ahk_class #32770 Send {Down} Cont...
by lblb
11 Mar 2016, 03:43
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Just eliminate the loop. Replace it by writing the following sequence twice in a row, adjusting for the number of "downs" that you need as I showed above. (Again, once you've figured it out, you can eliminate most/all the "Sleep 0" if you see that no delays are necessary). Send {Down} Sleep, 0 Contr...
by lblb
11 Mar 2016, 03:24
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Great. So the script I posted opens Sound, then selects the Recording tab, then the loop that it does twice is: Select the first item with Send {Down} (may not be necessary) Right-click at position y40 of the list (which falls on the first item) Then presses down to highlight the first item in the m...
by lblb
11 Mar 2016, 03:10
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Speech recognition?

If you just have

Code: Select all

Run, control mmsys.cpl
Does it open Sound or Speech recognition?

What about:

Code: Select all

Run, control mmsys.cpl sounds
What about:

Code: Select all

Run, %ComSpec% /C control mmsys.cpl sounds
by lblb
11 Mar 2016, 03:00
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Does something like this work then: #SingleInstance, Force SetBatchLines, -1 Run, control mmsys.cpl WinWait, Sound ahk_class #32770 SendMessage, 0x1330, 1,, SysTabControl321, Sound ahk_class #32770 Sleep 0 SendMessage, 0x130C, 1,, SysTabControl321, Sound ahk_class #32770 Sleep, 0 Loop, 2 { Send {Dow...
by lblb
11 Mar 2016, 02:43
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Ok cool. I didn't have "Show disabled devices" checked. Is your microphone always at the same position in the list (for example, is it always the first item)? Or does it move around (either during the whole process you are describing, or when you reboot your computer, or when you turn off the headse...
by lblb
11 Mar 2016, 02:21
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Get a new headset... Just kidding. Reading your initial posts, I'm still not sure how you do it manually. Could you describe the procedure in detail? I'm confused how you disable and re-enable it. In particular, when you disable it, doesn't it disappear from the list in the Sound window? If yes, wha...
by lblb
11 Mar 2016, 01:39
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

I'm afraid this means you'll have to go back to the previous strategy...
by lblb
11 Mar 2016, 01:21
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Well, the registry might just not be the way to go in this case... Maybe try the following: Once it's disabled, give it a value of 4. This should remove it from the Sound window. Then re-enable it by giving it a value of 1. Is that any better? Also, when it gets disabled, does it look like it's stil...
by lblb
11 Mar 2016, 01:04
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Well, it was worth a try... But to be sure:

When it's enabled, the value is 00000001 and not 10000001. So if it's disabled, the value is 10000001. Then if you double-click on DeviceState and just write 1 for value data, you don't see it as enabled if you relaunch Sound?
by lblb
11 Mar 2016, 00:31
Forum: Ask For Help
Topic: Disable, then re enable a microphone after coming out of sleep
Replies: 45
Views: 11093

Re: Disable, then re enable a microphone after coming out of sleep

Hi, Since you are encountering issues with clicking the Sound window and stuff, perhaps you could try to re-enable the device more directly by editing the Windows registry? See: https://smulpuru.wordpress.com/tag/disable-microphone/ Try to find your mic among the devices here: HKLM\SOFTWARE\Microsof...

Go to advanced search