Search found 36 matches

by zliyr
05 Oct 2018, 02:01
Forum: Ask For Help
Topic: trimming a variable Topic is solved
Replies: 4
Views: 437

Re: trimming a variable Topic is solved

:D Thankyou Rohwedder, it works perfectly!
by zliyr
04 Oct 2018, 16:45
Forum: Ask For Help
Topic: trimming a variable Topic is solved
Replies: 4
Views: 437

trimming a variable Topic is solved

making an audio player, one of my friends suggested a feature where you can see what audio is currently being played unfortunately when i then display the song that is being played i have to deal with the full filepath for example: "Currently playing: C:/Users/name/desktop/bass/Alexander Lewis - Clo...
by zliyr
12 Jul 2018, 02:26
Forum: Ask For Help
Topic: Very new user trying to make a script
Replies: 2
Views: 324

Re: Very new user trying to make a script

Pressed1 := 1 Pressed2 := 1 *~F8:: ;to regenerate random sleep and wasdc Random, sleep, 750, 3000 Random, wasdc, 1, 5 return *~F7:: if(Pressed1 = 2){ if(wasdc = 1){ Send {W Up} if(wasdc = 2){ ;just carry on like this Pressed2 := 2 } } if(Pressed1 = 1){ if(wasdc = 1){ Sleep, %sleep% Send {W Down} Pr...
by zliyr
10 Jul 2018, 02:14
Forum: Ask For Help
Topic: how to run click command one by one ?
Replies: 1
Views: 260

Re: how to run click command one by one ?

Simple,

Code: Select all

Count := 0
return
*~F3::
	Loop{
		Count++
		Click
		if(Count = 500){
			Sleep, 100 ;1000 = 1 second, i think this is what you mean by offset
			Count := 0
			}
		}
	return
by zliyr
08 Jul 2018, 11:47
Forum: Ask For Help
Topic: Request for a simple code
Replies: 4
Views: 458

Re: Request for a simple code

Try this! :thumbup:

Code: Select all

Pressed1 := 1
Pressed2 := 1
return
*~q::
	if(Pressed1 = 2){
		Send {RButton Up}
		Pressed2 := 2
		}
	if(Pressed1 = 1){
		Send {RButton Down}
		Pressed1 := 2
		}
	if(Pressed2 = 2){
		Pressed1 := 1
		Pressed2 := 1
		}
	return
by zliyr
08 Jul 2018, 03:57
Forum: Ask For Help
Topic: Click button on web page which has no element Id or Name
Replies: 8
Views: 1013

Re: Click button on web page which has no element Id or Name

Check to see if anywhere on the button you can find a unique colour
by zliyr
07 Jul 2018, 16:57
Forum: Ask For Help
Topic: Move up mouse after every click? Topic is solved
Replies: 5
Views: 518

Re: Move up mouse after every click? Topic is solved

#SingleInstance, Force MsgBox, Running return *~LButton:: DllCall("mouse_event", uint, 1, int, 0, int, 100) ;x and y return Delete::ExitApp Thanks! But the cursor is moving from top to bottom. And how to make that the cursor moved every 100 pixels? UPD: Changed "int, 100" to "int, 20". But how to d...
by zliyr
07 Jul 2018, 08:52
Forum: Ask For Help
Topic: Please Help, New To AHK
Replies: 2
Views: 343

Re: Please Help, New To AHK

try this

Code: Select all

#SingleInstance, Force
#NoEnv
SendMode Input
return
*~q::
Loop{
	PixelSearch, Px, Py, 0, 0, 1024, 768, 0xff00000, 3, Fast
	MouseMove, Px, py
		}
return
*~^q::ExitApp
by zliyr
07 Jul 2018, 07:13
Forum: Ask For Help
Topic: Move up mouse after every click? Topic is solved
Replies: 5
Views: 518

Re: Move up mouse after every click? Topic is solved

Code: Select all

#SingleInstance, Force
MsgBox, Running
return
*~LButton::
	DllCall("mouse_event", uint, 1, int, 0, int, 100) ;x and y
	return
Delete::ExitApp
by zliyr
06 Jul 2018, 13:05
Forum: Ask For Help
Topic: pixelgetcolor end move mouse this color
Replies: 9
Views: 960

Re: pixelgetcolor end move mouse this color

Yeah you need to search for the pixel color, click if its found
then calculate how where the mouse needs to move
by zliyr
06 Jul 2018, 11:38
Forum: Ask For Help
Topic: i need script
Replies: 2
Views: 301

Re: i need script

Script 1 #SingleInstance, Force #NoEnv return F2:: Loop{ Send {E} } return Delete::ExitApp Script 2 Spam := 1 #SingleInstance, Force #NoEnv return F2:: Spam := 1 Send {C down} Sleep, 10000 Send {C up} Loop{ Spam ++ Send {Q} if(Spam = 11){ break } return Delete::ExitApp Script 3 Spam := 1 #SingleInst...
by zliyr
06 Jul 2018, 09:21
Forum: Ask For Help
Topic: on/off long script with one key
Replies: 8
Views: 764

Re: on/off long script with one key

You can try closing the first one and running another, which can launch the first one? First script: *~A:: ;replace this with whatever you want run, C:\...\Script2.ahk ExitApp Second script: *~A:: ;replace this with whatever you want run, C:\...\Script1.ahk ExitApp this method be like pause toggle,...
by zliyr
05 Jul 2018, 17:19
Forum: Ask For Help
Topic: pixelgetcolor end move mouse this color
Replies: 9
Views: 960

Re: pixelgetcolor end move mouse this color

Yeah as I said i'll try again tomorrow,
I think the solution you want is with DllCall("mouse_event", uint, 1, int, 100, int, 0)
exactly how it will work? no idea
by zliyr
05 Jul 2018, 16:39
Forum: Ask For Help
Topic: pixelgetcolor end move mouse this color
Replies: 9
Views: 960

Re: pixelgetcolor end move mouse this color

Simplified version of https://autohotkey.com/board/topic/126150-find-pixel-of-specific-color-move-mouse-cursor-to-that-pixel-left-click/ #MaxThreadsPerHotkey, 2 CoordMode, Pixel, Screen *~LButton:: while GetKeyState("LButton", "P"){ PixelSearch, colourx, coloury, 0, 0, 1920, 1080, 0x4242ff, 0, Fast ...
by zliyr
05 Jul 2018, 16:13
Forum: Ask For Help
Topic: on/off long script with one key
Replies: 8
Views: 764

Re: on/off long script with one key

You can try closing the first one and running another, which can launch the first one? First script: *~A:: ;replace this with whatever you want run, C:\...\Script2.ahk ExitApp Second script: *~A:: ;replace this with whatever you want run, C:\...\Script1.ahk ExitApp this method be like pause toggle,...
by zliyr
05 Jul 2018, 09:48
Forum: Ask For Help
Topic: Spring-loaded folders on Windows Desktop Topic is solved
Replies: 4
Views: 547

Re: Spring-loaded folders on Windows Desktop Topic is solved

This makes more sense now :)
You need to screenshot what colour your file goes when the cursor is above it
We can then try and work out how to get the script to recognise the color, open the folder and paste your file.
by zliyr
05 Jul 2018, 09:32
Forum: Ask For Help
Topic: help script
Replies: 4
Views: 452

Re: help script


Go to advanced search