Search found 70 matches

by foxhunter
26 Aug 2016, 17:00
Forum: Ask For Help
Topic: Multiple If statements
Replies: 4
Views: 1321

Re: Multiple If statements

If you have differnt actions to be done on each variable, you can check out this: loop { WinGetTitle, Title, A Search = Food Form IfInString, Title, %Search% { send !{tab} ;e.g. more actions } else IfInString, Title, % Search:="Notepad" { send !{tab} ;e.g. more actions } else IfInString, Title, % Se...
by foxhunter
26 Aug 2016, 16:41
Forum: Ask For Help
Topic: Glabel on gui getting executed without button press
Replies: 9
Views: 1381

Re: Glabel on gui getting executed without button press

For explanation:

Your code:

Code: Select all

command_01
command_02
command_03

some_function_01()
{
}
some_function_02()
{
}
some_label:
command_04
command_05
Without Return after command_03 (as Helgef sayed) it continues to execute command_04 and further.
by foxhunter
26 Aug 2016, 16:34
Forum: Ask For Help
Topic: Noob help please
Replies: 8
Views: 1882

Re: Noob help please

Great code helgef. I just updated it, as when the p key was short pressed (<1sec), it doesn't turn off. With UP it seems to do correct. stop:=1 $p:: stop:=0 Loop { Send,p Sleep,100 ; Modify the pppapupspppppppppuse <- tested :) 1000 ms = 1s. } until stop return #if !stop p UP:: stop:=1 return
by foxhunter
26 Aug 2016, 14:43
Forum: Ask For Help
Topic: First Tuesday of Next Month
Replies: 6
Views: 1194

Re: First Tuesday of Next Month

Use formattime to get the weekday of 1st of month and add the missing days to next tuesday (e.g. with an array)
by foxhunter
26 Aug 2016, 14:38
Forum: Ask For Help
Topic: commend thats know if its red(all the kind of red) Topic is solved
Replies: 13
Views: 3161

Re: commend thats know if its red(all the kind of red) Topic is solved

Have a look at the PixelSearch command with Variation of 0-255
by foxhunter
26 Aug 2016, 14:11
Forum: Ask For Help
Topic: the "hard part" of my script is done, but I need help finishing it.
Replies: 3
Views: 847

Re: the "hard part" of my script is done, but I need help finishing it.

I want the script to constantly be searching my screen for the green pixel and if it finds the pixel I don't want it to do anything, but if it *doesn't* find the pixel I want it to do this: ; This script was created using Pulover's Macro Creator ; www.macrocreator.com #NoEnv SetWorkingDir %A_Script...
by foxhunter
24 Aug 2016, 14:34
Forum: Ask For Help
Topic: Variable value not updating correctly
Replies: 1
Views: 562

Re: Variable value not updating correctly

Add a continue in this if clause:

Code: Select all

if compno = %skipc% ; skip companion skipc (need the % signs o/w it doesn't work!!!)
	{
	compno := compno+1
	MsgBox Companion %skipc% skipped.
	MsgBox Compno equals %compno%
	continue  ; add here this continue statement
	}
by foxhunter
24 Aug 2016, 14:15
Forum: Ask For Help
Topic: (ControlClick - SetControlDelay) Issues
Replies: 2
Views: 798

Re: (ControlClick - SetControlDelay) Issues

Try ControlSend, Button35, {SPACE}
or
ControlClick with NA option
by foxhunter
24 Aug 2016, 13:17
Forum: Ask For Help
Topic: Toggleable loop
Replies: 3
Views: 915

Re: Toggleable loop

As i understand you want to stop a running hotkey : You could try with SetTimer. Further please change the variable names for all hotkeys. They should not be the same (e.g. x,y,Running,delay)
by foxhunter
21 Aug 2016, 11:18
Forum: Ask For Help
Topic: Can't send % to text box
Replies: 17
Views: 3719

Re: Can't send % to text box

These elements don't have IDs, so getElementByID doesn't make sense.
by foxhunter
21 Aug 2016, 10:56
Forum: Ask For Help
Topic: Double click
Replies: 5
Views: 940

Re: Double click

Espacially have a look at the following sections:

Hotkeys & Hotstrings
and
Sending key strokes
by foxhunter
21 Aug 2016, 10:44
Forum: Ask For Help
Topic: Wait until pixel is (color) Topic is solved
Replies: 1
Views: 1998

Re: Wait until pixel is (color) Topic is solved

The Pixelsearch command could do this:

Code: Select all

Loop
{
  Pixelsearch,x,y, 346, 179,346, 179,0x488DF1
  if !ErrorLevel
     break
  sleep,50
}
Note, color must be in Blue-Green-Red (BGR) format!
by foxhunter
20 Aug 2016, 12:33
Forum: Ask For Help
Topic: How to backspace Topic is solved
Replies: 4
Views: 20078

Re: How to backspace Topic is solved

Send {BackSpace}
by foxhunter
20 Aug 2016, 05:50
Forum: Ask For Help
Topic: Strange behaviour for handling 3 different hotkey without releasing key
Replies: 5
Views: 997

Re: Strange behaviour for handling 3 different hotkey without releasing key

You could run in the meanwhile alternate keyboard test

Passmark KeyboardTest

or

Javascript Key Event Test Script

So you could compare the behavior...
by foxhunter
20 Aug 2016, 03:55
Forum: Ask For Help
Topic: BlockInput On - Can I 'immune' a key? Topic is solved
Replies: 3
Views: 836

Re: BlockInput On - Can I 'immune' a key? Topic is solved

wow...didn't know this yet,Thanks!
by foxhunter
20 Aug 2016, 03:54
Forum: Ask For Help
Topic: Increasing Loop's "A_Index" or keeping it same on "continue"
Replies: 4
Views: 848

Re: Increasing Loop's "A_Index" or keeping it same on "continue"

A internal_countercould solve this...

Code: Select all

Loop
  {
    ;your code
	;....
	 while WinActive("Confirm Save As")
    {
		SendInput, {Enter}
		Sleep, 500
		SendInput, {Esc}
		Sleep, 500
		Continue
	}
	;...
	internal_counter++  
	if internal_counter>55
		break
  }
  Return
  
by foxhunter
19 Aug 2016, 23:30
Forum: Ask For Help
Topic: BlockInput On - Can I 'immune' a key? Topic is solved
Replies: 3
Views: 836

Re: BlockInput On - Can I 'immune' a key? Topic is solved

Only CTRL-ALT-DEL is immune, no other key can be made immune
by foxhunter
19 Aug 2016, 23:27
Forum: Ask For Help
Topic: if color changed to anything from its previous, do ...?
Replies: 3
Views: 715

Re: if color changed to anything from its previous, do ...?

#IfWinActive, YouTube - Google Chrome LButton:: click PixelGetColor, newcolor, 274, 20 if !Errorlevel { if (oldcolor!="") and (oldcolor<>newcolor) { Tooltip color changed Settimer, ClearTT, -2000 } else { Tooltip } oldcolor:=newcolor MouseClick, Left, 274, 20 MouseMove, 1045, 141 } return ClearTT: ...
by foxhunter
19 Aug 2016, 23:07
Forum: Ask For Help
Topic: Strange behaviour for handling 3 different hotkey without releasing key
Replies: 5
Views: 997

Re: Strange behaviour for handling 3 different hotkey without releasing key

I can press all three Function keys with all tooltips appearing (using v1.1.24.01 and standard keyboard). Releasing either will disappear the corresponding function key tooltip. Could also be an issue on the keyboard itself.
by foxhunter
19 Aug 2016, 23:00
Forum: Ask For Help
Topic: How to add a delay between "Alt" and "O" in command !o{right}?
Replies: 2
Views: 760

Re: How to add a delay between "Alt" and "O" in command !o{right}?

Code: Select all

#IfWinActive, ahk_exe javaw.exe
!1::
 send, {Alt down}
 sleep,500
 send, o
 send, {Alt up}
 send, {right}
 return
#IfWinActive

Go to advanced search