Search found 81 matches

by trust_me
18 Nov 2019, 03:53
Forum: Ask For Help
Topic: Simple hotkey not working when went to Win10, but only for Chrome??
Replies: 5
Views: 505

Re: Simple hotkey not working when went to Win10, but only for Chrome??

Your code works for me (win10 ahk 32)

You could try winclose instead:

Code: Select all

NumpadIns::
Sleep, 250
winclose , A
return
Numpad0::
Sleep, 250
winclose , A
return
by trust_me
08 Nov 2019, 06:08
Forum: Ask For Help
Topic: binary data from clipbooard
Replies: 2
Views: 342

Re: binary data from clipbooard

Works perfect ! Thank you very much, tmplinshi :D
Did not think it would involve so much coding :shock:
by trust_me
07 Nov 2019, 03:47
Forum: Ask For Help
Topic: binary data from clipbooard
Replies: 2
Views: 342

binary data from clipbooard

Part of the code to upload to imgur gets its image data from a file , is there a way to get it directly for an image that is in the clipboard ? http:=ComObjCreate("WinHttp.WinHttpRequest.5.1") img:=ComObjCreate("WIA.ImageFile"),img.LoadFile(image_file) data:=img.filedata.binarydata http.Open("POST",...
by trust_me
30 Oct 2019, 05:00
Forum: Ask For Help
Topic: Need help with a script
Replies: 1
Views: 290

Re: Need help with a script

Code: Select all

#Persistent
setTimer, PressTheKey, 121000
Return

PgUp::      ;you can choose another hotkey than pageup
toggle:=!toggle
if toggle
SetTimer, PressTheKey, off
else
SetTimer, PressTheKey, on
return


PressTheKey:
Send, t
Send, ^v
Send, {Enter}
Send, {Esc}
Return
by trust_me
02 Oct 2019, 08:19
Forum: Ask For Help
Topic: Autocorrect working inconsistently
Replies: 5
Views: 514

Re: Autocorrect working inconsistently

Do you use a bluetooth keyboard ? I have similar problems after a recent windows "update" ( win10pro 1903)
by trust_me
17 Sep 2019, 06:10
Forum: Ask For Help
Topic: Opening a mp3-file
Replies: 1
Views: 336

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: 751

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: 751

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: 428

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: 502

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: 502

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: 1533

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: 421

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: 760

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: 760

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: 1097

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: 1097

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: 389

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...

Go to advanced search