Search found 140 matches

by obeeb
28 Aug 2017, 12:49
Forum: Ask For Help
Topic: Need some help with this script
Replies: 9
Views: 1930

Re: Need some help with this script

Similar yes, let's say you added a button named Something you will need to add a new label:

Code: Select all

ButtonSomething:
; do something
return
by obeeb
28 Aug 2017, 04:41
Forum: Ask For Help
Topic: [v2.0a] Multi-line content/formatting with Join Topic is solved
Replies: 8
Views: 1900

Re: [v2.0a] Multi-line content/formatting with Join Topic is solved

You need to add the Q option(short for Quotes):

Code: Select all

TestVar :=
(Join Q
{
	"key":
	{
		"one": "1",
		"two": "2"
	}
}
)
MsgBox(TestVar.key.two)
by obeeb
28 Aug 2017, 04:22
Forum: Ask For Help
Topic: if not %A_Space% error
Replies: 7
Views: 1328

Re: if not %A_Space% error

The problem is that your first if is traditional if and the third one is an expression if. From IfExpression : Although this is usually accomplished by enclosing the entire expression in parentheses, it can also be done with something like if (x > 0) and (y > 0). In addition, the open-parenthesis ma...
by obeeb
27 Aug 2017, 22:57
Forum: Ask For Help
Topic: Hidden Window
Replies: 9
Views: 1667

Re: Hidden Window

But it only pauses before the next command, not in the middle of sending text. Yep, that's how it works. Did you try @jeeswg suggestion with WM_CHAR? Don't know if it will work with ie but definitely worth a try. I have a crazy idea of blocking shift with a hotkey and using CtrlSend to send it to t...
by obeeb
27 Aug 2017, 20:18
Forum: Ask For Help
Topic: Need some help with this script
Replies: 9
Views: 1930

Re: Need some help with this script

You need to add a label that starts with Button and ends with the name of your button:

Code: Select all

ButtonTransfer:
GuiEscape:
GuiClose:
by obeeb
27 Aug 2017, 20:11
Forum: Ask For Help
Topic: Hidden Window
Replies: 9
Views: 1667

Re: Hidden Window

Try to add KeyWait and BlockInput before you send.

Code: Select all

KeyWait Shift
BlockInput On
ControlSend, ; send stuff
BlockInput off
by obeeb
27 Aug 2017, 15:48
Forum: Ask For Help
Topic: Sort while Retaining Linefeeds? Topic is solved
Replies: 5
Views: 1005

Re: Sort while Retaining Linefeeds? Topic is solved

I believe you but without you posting some code and example input I can't help you.
by obeeb
27 Aug 2017, 15:07
Forum: Ask For Help
Topic: AHK not detecting clipboard is 0 from Excel Topic is solved
Replies: 10
Views: 1858

Re: AHK not detecting clipboard is 0 from Excel Topic is solved

Are you sure that you checked on the correct excel cell? I get "is 0".
What do you get when you do MsgBox, % "[" trim(Clipboard,"`r`n") "]"
by obeeb
27 Aug 2017, 14:49
Forum: Ask For Help
Topic: Hidden Window
Replies: 9
Views: 1667

Re: Hidden Window

This is caused by this line:WinMaximize, % "ahk_id " WB.HWND
by obeeb
27 Aug 2017, 14:37
Forum: Ask For Help
Topic: AHK not detecting clipboard is 0 from Excel Topic is solved
Replies: 10
Views: 1858

Re: AHK not detecting clipboard is 0 from Excel Topic is solved

The problem is Excel as @jeeswg said adds a new line. Try with:

Code: Select all

if trim(Clipboard,"`r`n") = 0
	MsgBox, is 0
else
	MsgBox, not 0
return
by obeeb
27 Aug 2017, 14:26
Forum: Ask For Help
Topic: Using mousemove as a hotkey
Replies: 5
Views: 1716

Re: Using mousemove as a hotkey

It seems like this will eat up a lot of cycles. Is there no way to keep from looping continuously? You can add Sleep to the loop or use SetTimer instead of looping. This will make the mouse move in a more jittery way, depending on what you want you can play with it and see what results you will get.
by obeeb
27 Aug 2017, 03:16
Forum: Ask For Help
Topic: Removing key up
Replies: 3
Views: 579

Re: Removing key up

You're right it does send them, sorry. you can do:

Code: Select all

2 up::return
by obeeb
27 Aug 2017, 03:06
Forum: Ask For Help
Topic: Searching error in my script
Replies: 6
Views: 1200

Re: Searching error in my script

AccuracySword wrote:The point is that my program must recognize physical pressures.
Autohotkey can't physically press buttons on your keyboard.
AccuracySword wrote:They are not fixed, so nothing happens.
I don't understand this sentence.
by obeeb
26 Aug 2017, 21:51
Forum: Ask For Help
Topic: Removing key up
Replies: 3
Views: 579

Re: Removing key up

Heyheyman wrote:...release of the 2 key will still be tracked as releasing key 2
What behavior do you see? Where is it tracked? It shouldn't send anything.
by obeeb
26 Aug 2017, 21:00
Forum: Ask For Help
Topic: Using mousemove as a hotkey
Replies: 5
Views: 1716

Re: Using mousemove as a hotkey

There is no "mousemove" hotkey but you can do something like the following:

Code: Select all

CoordMode, Mouse, Screen
SetBatchLines -1

#MaxThreadsPerHotkey 2
!1::
	fix := !fix
	MouseGetPos, , my
	while(fix) {
		MouseGetPos, mx
		MouseMove, mx, my
	}
return
#MaxThreadsPerHotkey
by obeeb
26 Aug 2017, 20:15
Forum: Ask For Help
Topic: Searching error in my script
Replies: 6
Views: 1200

Re: Searching error in my script

I'm not glad with result of my development. The fact is that when you press the key, too many operations are triggered, more than required. This happens because you trigger the hotkey from itself when you send the same hotkey. To prevent it you should prefix it with $ if you want your hotkey to wor...
by obeeb
26 Aug 2017, 18:37
Forum: Ask For Help
Topic: Need some help with this script
Replies: 9
Views: 1930

Re: Need some help with this script

This is caused by this line SetKeyDelay 30,50 either change it to a small delay or use SendInput instead of send or change the SendMode.
by obeeb
26 Aug 2017, 16:43
Forum: Ask For Help
Topic: FileExist and UNC root path
Replies: 10
Views: 2812

Re: FileExist and UNC root path

It is normal but, in my view, just not logic :-) Cant argue with that ;). I guess the people who made it this way thought it won't be logical to treat a network share as a file. After checking Autohotkey source code it actually uses GetFileAttributes . And FindFirstFile when you use a wildcard. The...
by obeeb
26 Aug 2017, 16:00
Forum: Ask For Help
Topic: How to group Some active windows? Topic is solved
Replies: 6
Views: 1312

Re: How to group Some active windows? Topic is solved

Sure, when you have an array of ahk_id with the windows you want you can do anything with them. Minimizing all of them would be:

Code: Select all

for key, value in group
	WinMinimize ahk_id %value%

Go to advanced search