Search found 140 matches

by obeeb
31 Aug 2017, 06:03
Forum: Ask For Help
Topic: iPhilip and transparent click through windows Topic is solved
Replies: 17
Views: 1753

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 } }
by obeeb
30 Aug 2017, 00:41
Forum: Ask For Help
Topic: I shouldn't need another %.
Replies: 7
Views: 895

Re: I shouldn't need another %.

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?
Yes, exactly. Everything should work the same.
by obeeb
30 Aug 2017, 00:14
Forum: Ask For Help
Topic: I shouldn't need another %.
Replies: 7
Views: 895

Re: I shouldn't need another %.

You can also put % in the start of the parameter and put the whole text in quotes. ".,,,.".
by obeeb
29 Aug 2017, 22:00
Forum: Ask For Help
Topic: Hotkey only working once?
Replies: 2
Views: 450

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.
by obeeb
29 Aug 2017, 14:51
Forum: Ask For Help
Topic: I hope Someone Can Commentoon My Code Errors
Replies: 12
Views: 1418

Re: I hope Someone Can Commentoon My Code Errors

Yes, they are just recommended defaults, leave them and put the actual script below.
by obeeb
29 Aug 2017, 03:44
Forum: Ask For Help
Topic: GroupAdd and COM
Replies: 2
Views: 408

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.
by obeeb
29 Aug 2017, 02:38
Forum: Ask For Help
Topic: Disable LWIN problem
Replies: 2
Views: 434

Re: Disable LWIN problem

You need to specify the left win for the other shortcuts like so:

Code: Select all

LWin::return
<#b::Run http://www.google.com
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.
by obeeb
29 Aug 2017, 02:09
Forum: Ask For Help
Topic: Help please! Can't get WinMove to resize an Internet Explorer? Topic is solved
Replies: 3
Views: 572

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%
by obeeb
29 Aug 2017, 01:44
Forum: Ask For Help
Topic: Using loops and GUI together
Replies: 8
Views: 950

Re: Using loops and GUI together

You forgot 2 in destroy change your code to: Gui, 2:Destroy and everything will work.
by obeeb
29 Aug 2017, 00:38
Forum: Ask For Help
Topic: Slider control's A_GuiEvent = 4 is unreliable
Replies: 34
Views: 3493

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...
by obeeb
29 Aug 2017, 00:30
Forum: Ask For Help
Topic: about changing class of compiled script Topic is solved
Replies: 1
Views: 369

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.
by obeeb
28 Aug 2017, 21:30
Forum: Ask For Help
Topic: I hope Someone Can Commentoon My Code Errors
Replies: 12
Views: 1418

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
by obeeb
28 Aug 2017, 18:58
Forum: Ask For Help
Topic: I hope Someone Can Commentoon My Code Errors
Replies: 12
Views: 1418

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?
by obeeb
28 Aug 2017, 18:19
Forum: Ask For Help
Topic: Need help with sound! Topic is solved
Replies: 10
Views: 1108

Re: Need help with sound! Topic is solved

put it before and after the loop
by obeeb
28 Aug 2017, 18:16
Forum: Ask For Help
Topic: Need help my script acts as a toggle
Replies: 3
Views: 550

Re: Need help my script acts as a toggle

knut55 wrote:

Code: Select all

2:: 
	Send, @
Return
This still prints '2' when I hit the 2 key. Shouldn't it print @ instead?
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.
by obeeb
28 Aug 2017, 17:00
Forum: Ask For Help
Topic: I hope Someone Can Commentoon My Code Errors
Replies: 12
Views: 1418

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
by obeeb
28 Aug 2017, 15:31
Forum: Ask For Help
Topic: Assigning Right Click to the right Control Key
Replies: 1
Views: 385

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
by obeeb
28 Aug 2017, 15:25
Forum: Ask For Help
Topic: Need some help with this script
Replies: 9
Views: 1071

Re: Need some help with this script

Just do:

Code: Select all

ButtonCancel:
exitapp
return

Go to advanced search