Search found 70 matches

by Spark
21 Sep 2018, 23:13
Forum: Ask For Help
Topic: Send a combination at a specified time every day
Replies: 1
Views: 321

Re: Send a combination at a specified time every day

Hello, Try target_time = 0945 ; 09:45 am ; Get target time in a format we can: ; - compare (with "<"), and ; - use to calculate "time delta" (with EnvSub.) target = %A_YYYY%%A_MM%%A_DD%%target_time%00 ; < comparison should be safe as long as both are in the *exact* same format. if (target < A_Now) {...
by Spark
02 Aug 2018, 22:30
Forum: Ask For Help
Topic: WMP COM Help Topic is solved
Replies: 2
Views: 579

Re: WMP COM Help Topic is solved

You have to point to the correct object. Change this Mbut1: wmp := ComObjCreate("WMPlayer.OCX") FileSelectFile, file, 2,, Select WMP Compatable File: wmp.url := file ; points to the OCX object wmp return to this Mbut1: FileSelectFile, file, 2,, Select WMP Compatable File: WMP1.url := file ; points ...
by Spark
01 Aug 2018, 21:09
Forum: Ask For Help
Topic: WMP COM Help Topic is solved
Replies: 2
Views: 579

WMP COM Help Topic is solved

hello all, i hope i can explain better, but i have problem with english how to embed specific song in specific WMP? and how to set a certain volume in a particular WMP? i try to read this but still not enough here's my code so far : Gui, 1:Add, Button, x100 y1 w80 h40 gVolBut1Up vMusic1Up, BG Vol Up...
by Spark
16 Jul 2018, 00:40
Forum: Ask For Help
Topic: AHK Write Memory (Pointer)
Replies: 7
Views: 1326

Re: AHK Write Memory (Pointer)

hello,
try delete "%"

Code: Select all

EOClient1.WriteString(0x006DD100, EO1_ClientIP, "UTF-8", 0x0C, 0x300, 0x0C, 0x1C, 0x0)
by Spark
15 Jul 2018, 22:16
Forum: Ask For Help
Topic: AHK Write Memory (Pointer)
Replies: 7
Views: 1326

Re: AHK Write Memory (Pointer)

have you tried "address value" with readstring()? is your "address value" correct? BaseAddr := 0x006DD100 offsets := [0x0C, 0x300, 0x0C, 0x1C, 0x0] ReadEOClient1:= EOClient1.readString(BaseAddr, 0, utf-8, offsets*) msgbox, % ReadEOClient1 if your value correct, try with simple thing BaseAddr := 0x00...
by Spark
15 Jul 2018, 21:57
Forum: Ask For Help
Topic: 自定icon問題
Replies: 6
Views: 1125

Re: 自定icon問題

Sorry, i use google translate to understand your question.. how about this.. put your AHK shortcut (*.INK File) into startup folder I haven't touch ink file, what is it and how can I change ico file into ink file Right click your Project.ahk file and Choose "Create shortcut" (you can rename it) cop...
by Spark
12 Jul 2018, 01:57
Forum: Ask For Help
Topic: StrSplit() from right? Topic is solved
Replies: 9
Views: 1342

Re: StrSplit() from right? Topic is solved

@Xtra whoaa ... thanks for making it perfect A simpler version, StrSplitRight(string, delim, count){ return substr(string, instr(string, "\",, -1, count) + 1) } Cheers. I have a little question about your simpler version, what is this "delim" for? if i change it to be StrSplitRight(string, count){ r...
by Spark
12 Jul 2018, 00:04
Forum: Ask For Help
Topic: 自定icon問題
Replies: 6
Views: 1125

Re: 自定icon問題

Sorry, i use google translate to understand your question..

how about this..
put your AHK shortcut (*.INK File) into startup folder
by Spark
11 Jul 2018, 23:47
Forum: Ask For Help
Topic: StrSplit() from right? Topic is solved
Replies: 9
Views: 1342

Re: StrSplit() from right? Topic is solved

It can be done with regex but it is generally slower for simple string manipulation. Example function: input := "E:\Folder 1\Sub Folder 2\Sub Folder 3\Sub Folder 4\picture.png" MsgBox % StrSplitRight(input,"\",2) StrSplitRight(string,delim,count) { for i in Arr := StrSplit(string,delim) { output :=...
by Spark
11 Jul 2018, 21:15
Forum: Ask For Help
Topic: StrSplit() from right? Topic is solved
Replies: 9
Views: 1342

StrSplit() from right? Topic is solved

hello all,
is there any function for StrSplit() from right?

something like this

Code: Select all

input = E:\Folder 1\Sub Folder 2\Sub Folder 3\Sub Folder 4\picture.png
output := StrSplitRight(input ,\)
msgbox, % output[2] ; result : Sub Folder4\picture.png
thanks in advance
by Spark
02 Jul 2018, 21:38
Forum: Ask For Help
Topic: Help with script
Replies: 4
Views: 718

Re: Help with script

how about this

Code: Select all

CoordMode, Pixel, Screen
delay := 500

^j::
ClickF(1115,264)
Send, Y
ClickF(694,321)
ClickF(470,841)
return


ClickF(x,y){
	global
MouseMove, %x%, %y%
Send, {LButton Down}
Sleep, 75
Send, {LButton Up}
Sleep, %delay%
}

by Spark
02 Jul 2018, 20:46
Forum: Ask For Help
Topic: Help with script
Replies: 4
Views: 718

Re: Help with script

Hello,
try to add Sleep

Code: Select all

^j::
CoordMode, Pixel, Screen
sleep, 500	; delay 500 milisecond
Click, 1115, 264
sleep, 500	; delay 500 milisecond
Send Y
sleep, 500	; delay 500 milisecond
Click, 694, 321
sleep, 500	; delay 500 milisecond
Click, 470, 841
return
Hope that helps
by Spark
05 Jun 2018, 23:33
Forum: Ask For Help
Topic: Hi, need help with ALT + F1 Topic is solved
Replies: 9
Views: 1218

Re: Hi, need help with ALT + F1 Topic is solved

hello,

try

Code: Select all

LAlt & F1::
While GetKeyState("LAlt","P")
And GetKeyState("F1","P") {
	Send, {LAlt Down}{F1 Down}
	Sleep 50 ; milliseconds
	Send, {LAlt Up}{F1 Up}
}
return
by Spark
05 Jun 2018, 23:00
Forum: Ask For Help
Topic: How to use A_TickCount and Continue inside Loop?
Replies: 5
Views: 806

Re: How to use A_TickCount and Continue inside Loop?

Typos : ElapsedTime := A_TickCount - StartTime If ( ElaspsedTime = 10000 ) Try F5:: StartTime := A_TickCount Loop, { PixelSearch, Px, Py, 0, 0, 1920, 1080, 0xDBFFA7, 3, Fast RGB if ErrorLevel = 1 Loop { ElapsedTime := A_TickCount - StartTime Tooltip, ElapsedTime = %ElapsedTime% If ( ElapsedTime > 10...
by Spark
28 May 2018, 03:54
Forum: Ask For Help
Topic: AHK Write Memory (Pointer)
Replies: 7
Views: 1326

Re: AHK Write Memory (Pointer)

hello, before you start, read this first : Reading memory you can get classMemory lib from here this is some example : #Include <ClassMemory> game := new _ClassMemory("ahk_exe SomeGame.exe", "", hProcessCopy) if !isObject(game) { msgbox failed to open a handle if (hProcessCopy = 0) msgbox The progra...
by Spark
27 May 2018, 22:32
Forum: Ask For Help
Topic: Read & Write XML File
Replies: 0
Views: 358

Read & Write XML File

Hello, how to read Data From XML File, especially from config lastmodified and attribute name="core.interface" , and how to change the value or text into something else like <attribute name="core.interface">Wireless Network Adapter</attribute> i try read This but no luck thanks in advance data= (joi...
by Spark
25 May 2018, 00:53
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 952

Re: Click Action on GUI Topic is solved

@Hellbent

Thanks a million for your help :bravo:
by Spark
24 May 2018, 23:45
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 952

Re: Click Action on GUI Topic is solved

@Hellbent, @gregster, and @AHKd00b

thx so much,

1 more question, is there a simpler way for global variables (besides adding 1 by 1)?
because i have many pictures..
by Spark
24 May 2018, 23:17
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 952

Re: Click Action on GUI Topic is solved

OMG... Thx So much :clap: You're welcome in advance :crazy: Z1 = C:\Program Files\AutoHotkey\AutoHotkey.exe Z2 = C:\Program Files\AutoHotkey\AU3_Spy.exe Gui, 8:Add, Picture, vPic1 gcase x5 y5 w50 h50, %Z1% Gui, 8:Add, Picture, vPic2 gcase xp+75 y5 w50 h50 , %Z2% Gui, 8:Show OnMessage(0x0201, "WM_LBU...
by Spark
24 May 2018, 22:00
Forum: Ask For Help
Topic: Macro 3 keys in a span of 5 seconds
Replies: 1
Views: 252

Re: Macro 3 keys in a span of 5 seconds

hello,
try :

Code: Select all

F1::
Loop, 
{
	Send, {Enter}
	Sleep, 500
	Send, dfghj
	Sleep, 500
	Send, {Enter}
	Sleep, 5000
}
return
esc::ExitApp

Go to advanced search