Search found 76 matches

by trust_me
17 Sep 2019, 06:10
Forum: Ask For Help
Topic: Opening a mp3-file
Replies: 1
Views: 148

Re: Opening a mp3-file

i do not know what you are trying to do but reading a binary file into a var : https://www.autohotkey.com/docs/objects/File.htm#RawRead or use : https://www.autohotkey.com/docs/commands/FileRead.htm with the *c option ( explaining in the link for FileRead ) btw you cannot play a mp3 from memory , on...
by trust_me
10 Aug 2019, 13:16
Forum: Ask For Help
Topic: Cant left click in an application button
Replies: 6
Views: 366

Re: Cant left click in an application button

I guess you are right gregster , unfortunately i uninstalled betternet and now my PC went into a " windows is repairing your system " loop :? On top of that my system backup ( only a few days old ) refuses to recover it because " the backup is made with a newer windows version " ???? So i will spend...
by trust_me
10 Aug 2019, 11:03
Forum: Ask For Help
Topic: Cant left click in an application button
Replies: 6
Views: 366

Re: Cant left click in an application button

Code: Select all

 I've never seen something like this before
It is very strange , if the window is active MouseMove, X, Y just does not move the cursor :wtf:
by trust_me
02 Aug 2019, 06:44
Forum: Ask For Help
Topic: What am I doing WRONG? AUTO STOPWATCH Topic is solved
Replies: 3
Views: 178

Re: What am I doing WRONG? AUTO STOPWATCH Topic is solved

There is no loop , it will execute only once without redoing it until 5000 has elapsed.

Code: Select all

F1::
StartTime := A_TickCount
loop 
ElapsedTime :=A_TickCount - StartTime
until ElapsedTime=5000

MsgBox  %ElapsedTime% milliseconds have elapsed.
	
return
by trust_me
21 Jul 2019, 13:17
Forum: Ask For Help
Topic: Hotkey that uses last used key
Replies: 3
Views: 307

Re: Hotkey that uses last used key

If you use F1 you have to send {f1} so in controlsend {%htky%} .So it gets a bit complicated if you use different keys and function keys !

see https://www.autohotkey.com/docs/commands/Send.htm

{F1} - {F24} Function keys. For example: {F12} is the F12 key.
by trust_me
21 Jul 2019, 09:36
Forum: Ask For Help
Topic: Hotkey that uses last used key
Replies: 3
Views: 307

Re: Hotkey that uses last used key

What happens if you replace htky = %A_PriorKey% with htky = a ( or the key you want to send ) ?

You can also remove the ahk_parent if the previous suggestion does not work and use the control name or nothing so it will send it to the main window.
by trust_me
04 Jul 2019, 09:08
Forum: Ask For Help
Topic: Associtive Array for loop by index syntax help
Replies: 11
Views: 734

Re: Associtive Array for loop by index syntax help

:offtopic: just me ! now the song sticks in my head like chewing gum to a shoe............... :headwall:
by trust_me
14 Jun 2019, 01:48
Forum: Ask For Help
Topic: Is there a script to turn the magnifier on and off? Topic is solved
Replies: 2
Views: 209

Re: Is there a script to turn the magnifier on and off? Topic is solved

Can you not use the build-in hotkeys ? ( for win10 win + and win esc )
by trust_me
03 Jun 2019, 12:30
Forum: Ask For Help
Topic: Close all window type other than most recently active
Replies: 5
Views: 343

Re: Close all window type other than most recently active

Close all active windows of a certain type but keep most recently active window. The code gives you the list of windows from the code : WinGet, OutList, List, ahk_class XLMAIN The first one in the list is the last active window . In de code you have been using you skipped the first entry : if A_Ind...
by trust_me
02 Jun 2019, 05:56
Forum: Ask For Help
Topic: Close all window type other than most recently active
Replies: 5
Views: 343

Re: Close all window type other than most recently active

You can find out if the first in the list is the one you want to keep .Maybe the first listed one is not the correct one.

Code: Select all

WinGet, OutList, List, ahk_class XLMAIN
Loop, %OutList% {
WinGetTitle, title,% "ahk_id " OutList%A_Index%
z .=A_Index "   " title "`n" 
}
msgbox %z%
by trust_me
30 May 2019, 08:51
Forum: Scripts and Functions
Topic: Include images/files in Uncompiled Scripts
Replies: 5
Views: 531

Re: Include images/files in Uncompiled Scripts

Maybe nimdas is faster.
Converting to hex doubles the size while using base64 only increases with 33%.I tried your code and it works fine i guess it is also compatible with older windows versions.
Thanks for sharing :)
by trust_me
29 May 2019, 03:03
Forum: Scripts and Functions
Topic: Include images/files in Uncompiled Scripts
Replies: 5
Views: 531

Re: Include images/files in Uncompiled Scripts

It is for uncompiled scripts , fileinstall only insert the data when compiling it.
by trust_me
19 Feb 2019, 06:51
Forum: Ask For Help
Topic: Image key press help
Replies: 1
Views: 203

Re: Image key press help

Hope that i restored to original code because i changed it a bit for testing with a picture in a window. #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance Force CoordMode, Mouse, Window CoordMode, Pixel, Window Menu, Tray, Icon, Shell32.dll, 95 , 1 ;Gui, add,picture,,haystack.png ;Gu...
by trust_me
14 Feb 2019, 12:13
Forum: Ask For Help
Topic: Image not destroyed / shown misclicked
Replies: 2
Views: 274

Re: Image not destroyed / shown misclicked

Adding a sleep 10 after the hotkey seems to solve it.... ~*CapsLock:: sleep 10 state := GetKeyState("CapsLock", "T") if state = 1 { SplashImageGUI("command-mode.png", "center", "center", false, true) } else { DestroySplashGUI() } return SplashImageGUI(Picture, X, Y, Duration, Transparent = false) { ...
by trust_me
02 Nov 2018, 13:12
Forum: Ask For Help
Topic: Testing if a server is up?
Replies: 5
Views: 604

Re: Testing if a server is up?

You could use powershell commandline to test if a port is open:

tnc 192.168.1.4 -port 52673
by trust_me
29 Oct 2018, 14:20
Forum: Ask For Help
Topic: Overlay Countdown Timer
Replies: 3
Views: 404

Re: Overlay Countdown Timer

by trust_me
28 Oct 2018, 08:17
Forum: Ask For Help
Topic: Overlay Countdown Timer
Replies: 3
Views: 404

Re: Overlay Countdown Timer

Just a quick adaption from an existing code : https://autohotkey.com/board/topic/18151-osd-countdown-inserting-ending-time/ ; https://autohotkey.com/board/topic/18151-osd-countdown-inserting-ending-time/ ;On-screen display (OSD) CustomColor = 99AA55 ; Can be any RGB color (it will be made transparen...
by trust_me
12 Oct 2018, 06:45
Forum: Ask For Help
Topic: RegExMatch
Replies: 3
Views: 437

Re: RegExMatch

setworkingdir , %a_scriptdir% ;[1011/172551:INFO:GameCallbacks.cpp(199)] game/buh (Client thread) info [CHAT] 53iRyder, 70h, _____Psycho_____, _Benom_, _Deadkitty FileReadLine, line, launcher_log.txt, 1 msgbox %line% ;for testing line := RegExreplace(line, ".*\[CHAT] (.*)", "$1") msgbox ,%line% ;fo...

Go to advanced search