Search found 72 matches

by SonGokuBg
03 Jul 2019, 09:26
Forum: Ask for Help (v1)
Topic: image
Replies: 19
Views: 2684

Re: image

This should do the job: CoordMode, Pixel, Screen CoordMode, Mouse, Screen SetWorkingDir %A_ScriptDir% ImageSearch, coordx, coordy, 0, 0, A_ScreenWidth, A_ScreenHeight, image.bmp if (ErrorLevel = 2) msgbox theres something wrong ; script is messed up if (ErrorLevel = 1) msgbox cant see it ; script i...
by SonGokuBg
03 Jul 2019, 07:44
Forum: Ask for Help (v1)
Topic: image
Replies: 19
Views: 2684

Re: image

not work with ''return''
by SonGokuBg
03 Jul 2019, 07:18
Forum: Ask for Help (v1)
Topic: image
Replies: 19
Views: 2684

Re: image

This should do the job: CoordMode, Pixel, Screen CoordMode, Mouse, Screen SetWorkingDir %A_ScriptDir% ImageSearch, coordx, coordy, 0, 0, A_ScreenWidth, A_ScreenHeight, image.bmp if (ErrorLevel = 2) msgbox theres something wrong ; script is messed up if (ErrorLevel = 1) msgbox cant see it ; script i...
by SonGokuBg
03 Jul 2019, 06:00
Forum: Ask for Help (v1)
Topic: image
Replies: 19
Views: 2684

image

Hello,
I am very beginner and can't find the answer in forum and guide.
How to make script to: if detect the chosen image on the screen to do X if not detect it to do Y?
Thanks!
by SonGokuBg
20 May 2019, 11:52
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

Why?? :headwall: :headwall: Perhaps something like this will get you started (assuming you have firefox installed). WinWait, ahk_exe firefox.exe,, 60 ; Wait for 60 seconds until firefox becomes active IfWinExist, ahk_exe firefox.exe { MsgBox, Firefox is active ! } else { run, firefox.exe,, Max WinA...
by SonGokuBg
20 May 2019, 11:00
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

Perhaps something like this will get you started (assuming you have firefox installed). WinWait, ahk_exe firefox.exe,, 60 ; Wait for 60 seconds until firefox becomes active IfWinExist, ahk_exe firefox.exe { MsgBox, Firefox is active ! } else { run, firefox.exe,, Max WinActivate } I use google chrom...
by SonGokuBg
20 May 2019, 09:56
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

Perhaps something like this will get you started (assuming you have firefox installed). WinWait, ahk_exe firefox.exe,, 60 ; Wait for 60 seconds until firefox becomes active IfWinExist, ahk_exe firefox.exe { MsgBox, Firefox is active ! } else { run, firefox.exe,, Max WinActivate } I use google chrom...
by SonGokuBg
20 May 2019, 09:02
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

[Codebox=text file=Untitled.txt#NoEnv Send, Enter Sleep, 3000 Send, (my password) Sleep, 100 Send, Enter Sleep 3000 MouseClick, left, 415, 1057 Sleep, 3000 MouseClick, left, 1902, 56 Sleep, 1000 MouseClick, left, 1885, 170 Sleep, 1000 MouseClick, left, 1600, 215 Sleep, 1500 Run, https://www.facebook...
by SonGokuBg
20 May 2019, 08:23
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

WalkerOfTheDay wrote:
20 May 2019, 08:15
Look, if you can't explain we cannot help...
I know
by SonGokuBg
20 May 2019, 08:00
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

StefOnSteroids wrote:
20 May 2019, 07:07
SonGokuBg wrote:
20 May 2019, 06:59
can't decribe it. open chrone and click on some pixels
Well, like I said, I'd make sure that Chrome is open and has the mouse focus, then start clicking,
Try to use https://autohotkey.com/docs/commands/WinWaitActive.htm before you start clicking.
no , you cant understood
by SonGokuBg
20 May 2019, 06:59
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

I can only speak for my machine: All kind of things fire up after booting, it would be hit or miss to start clicking right away, not making sure the clicks happen on the object I want to focus on BEFORE I start clicking. Your case may be different, ofc. But since your code doesn't work, it may help...
by SonGokuBg
20 May 2019, 06:38
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

StefOnSteroids wrote:
20 May 2019, 06:20
I don't think it's a good idea to just start clicking when your machine comes up.
First you want to make sure that the focus is on the right window.
What are you trying to accomplish with these mouse-clicks?
why not ?
by SonGokuBg
20 May 2019, 05:19
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

Re: launch

Put a shortcut to your script in: C:\Users\YourUsername\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Not worked fine. It did only the last 2 steps. here is my script #NoEnv MouseClick, left, 415, 1057 Sleep, 3000 MouseClick, left, 1902, 56 Sleep, 1000 MouseClick, left, 1885, 170 Sl...
by SonGokuBg
20 May 2019, 01:58
Forum: Ask for Help (v1)
Topic: launch
Replies: 18
Views: 2785

launch

Hello, how to make a script to launch when the computer start?
by SonGokuBg
20 Apr 2019, 03:02
Forum: Ask for Help (v1)
Topic: Hold
Replies: 12
Views: 1545

Re: Hold

Hallo, your imprecise question: Anyone can help me to make it when I hold LButton to hold RButton? has at least two answers: If you want to mask LButton: LButton::RButton If you don't: ~LButton::RButton After the masking variant already appeared in your script, I assumed you needed the other one. I...
by SonGokuBg
18 Apr 2019, 01:24
Forum: Ask for Help (v1)
Topic: Hold
Replies: 12
Views: 1545

Re: Hold

Hallo, your imprecise question: Anyone can help me to make it when I hold LButton to hold RButton? has at least two answers: If you want to mask LButton: LButton::RButton If you don't: ~LButton::RButton After the masking variant already appeared in your script, I assumed you needed the other one. I...
by SonGokuBg
17 Apr 2019, 13:07
Forum: Ask for Help (v1)
Topic: Hold
Replies: 12
Views: 1545

Re: Hold

The line ~LButton::RButton is already included. I wanted to show you, LButton and RButton are pressed with different modes. LButton physical from you, RButton logical from Autohotkey. Probably your target application does not accept logical mode. If I use ~LButton::RButton the "ignore in cordinates...
by SonGokuBg
17 Apr 2019, 13:04
Forum: Ask for Help (v1)
Topic: Hold
Replies: 12
Views: 1545

Re: Hold

The line ~LButton::RButton is already included. I wanted to show you, LButton and RButton are pressed with different modes. LButton physical from you, RButton logical from Autohotkey. Probably your target application does not accept logical mode. If I use ~LButton::RButton the "ignore in cordinates...
by SonGokuBg
17 Apr 2019, 13:03
Forum: Ask for Help (v1)
Topic: Hold
Replies: 12
Views: 1545

Re: Hold

Hallo, try this. All currently pressed keys and buttons are displayed. P: physical, L: logical only. #Persistent #InstallKeybdHook #InstallMouseHook SetTimer, KeyCombination, 200 Return ~LButton::RButton KeyCombination: ToolTip, % KeyCombination() Return KeyCombination(ExcludeKeys:="") { ExcludeKey...
by SonGokuBg
17 Apr 2019, 11:02
Forum: Ask for Help (v1)
Topic: Hold
Replies: 12
Views: 1545

Re: Hold

Hallo, try this. All currently pressed keys and buttons are displayed. P: physical, L: logical only. #Persistent #InstallKeybdHook #InstallMouseHook SetTimer, KeyCombination, 200 Return ~LButton::RButton KeyCombination: ToolTip, % KeyCombination() Return KeyCombination(ExcludeKeys:="") { ExcludeKey...

Go to advanced search