Search found 140 matches
- 31 Aug 2017, 06:03
- Forum: Ask for Help (v1)
- Topic: iPhilip and transparent click through windows Topic is solved
- Replies: 17
- Views: 4131
Re: iPhilip and transparent click through windows Topic is solved
As documented in https://autohotkey.com/docs/objects/Functor.htm#User-Defined you can do the following: class classDrawableWindow{ static WM_PAINT := 15 __New(name){ this.name := name OnMessage(classDrawableWindow.WM_PAINT, this) } Call(){ TrayTip, , % "this.name = " this.name } }
- 30 Aug 2017, 00:41
- Forum: Ask for Help (v1)
- Topic: I shouldn't need another %.
- Replies: 7
- Views: 1919
Re: I shouldn't need another %.
Yes, exactly. Everything should work the same.jbearnolimits wrote:Please explain? You mean just add a % at the beginning, put everything in quotes, and leave the rest the same will make it to where I don't need to use the ` key? Will {Enter} or {Tab} still work to hit the enter and tab keys?
- 30 Aug 2017, 00:14
- Forum: Ask for Help (v1)
- Topic: I shouldn't need another %.
- Replies: 7
- Views: 1919
Re: I shouldn't need another %.
You can also put % in the start of the parameter and put the whole text in quotes. ".,,,.".
- 29 Aug 2017, 22:00
- Forum: Ask for Help (v1)
- Topic: Hotkey only working once?
- Replies: 2
- Views: 1038
Re: Hotkey only working once?
Probably because it gets stuck in WinWaitActive. You can verify it by double clicking on the script icon in the taskbar and checking which lines executed last.
- 29 Aug 2017, 14:51
- Forum: Ask for Help (v1)
- Topic: I hope Someone Can Commentoon My Code Errors
- Replies: 12
- Views: 3351
Re: I hope Someone Can Commentoon My Code Errors
Yes, they are just recommended defaults, leave them and put the actual script below.
- 29 Aug 2017, 03:44
- Forum: Ask for Help (v1)
- Topic: GroupAdd and COM
- Replies: 2
- Views: 969
Re: GroupAdd and COM
No, that's not what that function does. You can create a different function that will receive a variable number of arguments and return an array or you can simply call it 2 times.
- 29 Aug 2017, 02:38
- Forum: Ask for Help (v1)
- Topic: Disable LWIN problem
- Replies: 2
- Views: 1040
Re: Disable LWIN problem
You need to specify the left win for the other shortcuts like so:
This is not documented, and your code should work as is, if anybody knows more about it and if it's a bug or not please post.
Code: Select all
LWin::return
<#b::Run http://www.google.com
- 29 Aug 2017, 02:09
- Forum: Ask for Help (v1)
- Topic: Help please! Can't get WinMove to resize an Internet Explorer? Topic is solved
- Replies: 3
- Views: 1468
Re: Help please! Can't get WinMove to resize an Internet Explorer? Topic is solved
This is because you are using MonitorWorkArea which returns the dimensions minus the taskbar you should use Monitor you also mixed up height and width and should use %
Code: Select all
SysGet, m1, Monitor, 1
...
WinMove, ahk_class IEFrame,, %WinLeft%, %WinTop%, %WinWidth%, %WinHeight%
- 29 Aug 2017, 01:44
- Forum: Ask for Help (v1)
- Topic: Using loops and GUI together
- Replies: 8
- Views: 3107
Re: Using loops and GUI together
You forgot 2 in destroy change your code to: Gui, 2:Destroy and everything will work.
- 29 Aug 2017, 00:38
- Forum: Ask for Help (v1)
- Topic: Slider control's A_GuiEvent = 4 is unreliable
- Replies: 34
- Views: 6778
Re: Slider control's A_GuiEvent = 4 is unreliable
Critical on the first line worked for me, are you sure you tried with it on the first line? It takes some time until it processes all the other events and handles the release event. If it doesn't then it's definitely a bug even according to justme's narrow definition, though if it only happens on yo...
- 29 Aug 2017, 00:30
- Forum: Ask for Help (v1)
- Topic: about changing class of compiled script Topic is solved
- Replies: 1
- Views: 965
Re: about changing class of compiled script Topic is solved
This is used by A_GuiEvent and with this change instead of "Normal" if will be "7890" you are definitely not safe, don't know if your scripts will work or not.
- 28 Aug 2017, 21:30
- Forum: Ask for Help (v1)
- Topic: I hope Someone Can Commentoon My Code Errors
- Replies: 12
- Views: 3351
Re: I hope Someone Can Commentoon My Code Errors
ok, then you can just wait for let's say 10 seconds and exit the script if there is no message
Code: Select all
closeTeamNag:
WinWaitActive, Sponsored session, , 10
if (!ErrorLevel)
send, {enter}
ExitApp
return
- 28 Aug 2017, 18:58
- Forum: Ask for Help (v1)
- Topic: I hope Someone Can Commentoon My Code Errors
- Replies: 12
- Views: 3351
Re: I hope Someone Can Commentoon My Code Errors
Sure, what I wrote is something you can run and just keep it running and it will close this message box when it will appear. How do you want to use it?
- 28 Aug 2017, 18:19
- Forum: Ask for Help (v1)
- Topic: Need help with sound! Topic is solved
- Replies: 10
- Views: 2522
Re: Need help with sound! Topic is solved
put it before and after the loop
- 28 Aug 2017, 18:16
- Forum: Ask for Help (v1)
- Topic: Need help my script acts as a toggle
- Replies: 3
- Views: 1241
Re: Need help my script acts as a toggle
Try with numpad2:: if that doesn't work find out the scan code of the key https://autohotkey.com/docs/KeyList.htm#SpecialKeys and try with it.knut55 wrote:This still prints '2' when I hit the 2 key. Shouldn't it print @ instead?Code: Select all
2:: Send, @ Return
- 28 Aug 2017, 17:03
- Forum: Ask for Help (v1)
- Topic: Need help with sound! Topic is solved
- Replies: 10
- Views: 2522
- 28 Aug 2017, 17:00
- Forum: Ask for Help (v1)
- Topic: I hope Someone Can Commentoon My Code Errors
- Replies: 12
- Views: 3351
Re: I hope Someone Can Commentoon My Code Errors
The following should close the team viewer message box:
Code: Select all
settimer closeTeamNag
return
closeTeamNag:
WinWaitActive, Sponsored session
send, {enter}
return
- 28 Aug 2017, 15:31
- Forum: Ask for Help (v1)
- Topic: Assigning Right Click to the right Control Key
- Replies: 1
- Views: 857
Re: Assigning Right Click to the right Control Key
Not sure if this will do what you want but try:
Code: Select all
RCtrl::
ControlGetFocus, focused, A
ControlClick, %focused%, A, , Right
return
- 28 Aug 2017, 15:25
- Forum: Ask for Help (v1)
- Topic: Need some help with this script
- Replies: 9
- Views: 2556
Re: Need some help with this script
Just do:
Code: Select all
ButtonCancel:
exitapp
return
- 28 Aug 2017, 13:48
- Forum: Ask for Help (v2)
- Topic: [v2.0a] Multi-line content/formatting with Join Topic is solved
- Replies: 8
- Views: 3282
Re: [v2.0a] Multi-line content/formatting with Join Topic is solved
How did you do it in v1?