Search found 21 matches

by 4k3or3et
10 Aug 2020, 11:29
Forum: Ask For Help
Topic: 'Continue running the script error'...
Replies: 2
Views: 801

Re: 'Continue running the script error'...

In my case adding

Code: Select all

comobjerror(false)
solved the issue.
by 4k3or3et
09 Aug 2020, 06:41
Forum: Ask For Help
Topic: 'Continue running the script error'...
Replies: 2
Views: 801

'Continue running the script error'...

Hi all

i am getting error like this on screenshot. It seems to be random. Is there a way of putting something in the script so it would auto assume that 'Yes' is the answer?

Thank you.
by 4k3or3et
09 Aug 2020, 04:00
Forum: Ask For Help
Topic: Howt to check if process is running under given username? Topic is solved
Replies: 11
Views: 3260

Re: Howt to check if process is running under given username? Topic is solved

Rohwedder wrote:
09 Aug 2020, 00:26
Then replace MsgBox,% Running("abc.exe","user2") by:

Code: Select all

IF Running("abc.exe","user2")
	Run, c:\yes.exe
Else
	Run, c:\no.exe
Awesome! Many thanks for your help!
by 4k3or3et
08 Aug 2020, 12:25
Forum: Ask For Help
Topic: Howt to check if process is running under given username? Topic is solved
Replies: 11
Views: 3260

Re: Howt to check if process is running under given username? Topic is solved

Sorry, but there are almost no MSDN tutorials in my mother tongue. MsgBox,% Running("abc.exe","user2") Running(exeName,User) { ;1:yes 0:no For Proc in ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process") IF (Proc.Name = exeName) IF (User = GetProcessUser(Proc.ProcessId)) Return, True Ret...
by 4k3or3et
08 Aug 2020, 07:30
Forum: Ask For Help
Topic: Howt to check if process is running under given username? Topic is solved
Replies: 11
Views: 3260

Re: Howt to check if process is running under given username? Topic is solved

Hallo, try: Process, Exist, abc.exe IF ErrorLevel { UserName := GetProcessUser(ErrorLevel) MsgBox,% "UserName: " UserName } Else MsgBox, Process doesn't exist Return GetProcessUser(PID) { VarSetCapacity(UN, 24, 0) UserName := ComObject(0x400C, &UN) ; combination of VT_BYREF and VT_VARIANT. For Proc...
by 4k3or3et
08 Aug 2020, 05:03
Forum: Ask For Help
Topic: Howt to check if process is running under given username? Topic is solved
Replies: 11
Views: 3260

Re: Howt to check if process is running under given username? Topic is solved

Process, Exist, notepad.exe msg := (Errorlevel != 0) ? "Process 'notepad' exist!" : "Process 'notepad' doesn't exist ATM" MsgBox % "Dear " A_UserName "`n ..." msg :?: Thank you for you reply. Your code checks process under user where you execute it. I have multiple users logged in (Windows Server)....
by 4k3or3et
08 Aug 2020, 03:26
Forum: Ask For Help
Topic: Howt to check if process is running under given username? Topic is solved
Replies: 11
Views: 3260

Howt to check if process is running under given username? Topic is solved

Hi All

Do you know of any AHK code that would check if process, lets say abc.exe is running under given username?

Thank you.
by 4k3or3et
06 Aug 2020, 12:23
Forum: Ask For Help
Topic: "if process exist" question...
Replies: 3
Views: 1470

Re: "if process exist" question...

From here https://autohotkey.com/board/topic/72817-how-to-obtain-%E2%80%9Cuser-name%E2%80%9D-from-running-processes/ Use GetOwner to find out which user launched the process. Gui, Add, ListView, x2 y0 w400 h500, Process Name|Command Line|User Name for proc in ComObjGet("winmgmts:").ExecQuery("Selec...
by 4k3or3et
01 Aug 2020, 07:37
Forum: Ask For Help
Topic: "if process exist" question...
Replies: 3
Views: 1470

"if process exist" question...

I all i have a simple script like this: #singleinstance force loop { process, exist, abc.exe if errorlevel=0 { run, c:\program\def.exe sleep, 60000 } else sleep, 300000 } all works fine in single user mode. When i have other users logged in (Windows Server 2016) and they have 'abc.exe' also opened, ...
by 4k3or3et
20 May 2020, 05:39
Forum: Ask For Help
Topic: Send keystroke behaves different than when pressed on physical keyboard.
Replies: 0
Views: 145

Send keystroke behaves different than when pressed on physical keyboard.

Hi all i have a simple scirpt: appskey:: sendevent, !{space} return The thing is that it behaves differen that when i press alt+space on pysical keyboard. For example if i have menu start or action center opened in Windows 10 then while presssing AppsKey menu start or action center does not close. H...
by 4k3or3et
20 May 2020, 03:52
Forum: Ask For Help
Topic: Passing variables to another script...
Replies: 2
Views: 185

Passing variables to another script...

Hi All I have two scripts running. One is elevated one is run as regular user. I would like to have something like this: I am pressing key "A" for example. That passes lets say "abc123" sting to elevated script. Then elevated script is reacting to that string and perform certain action. Do you think...
by 4k3or3et
20 May 2020, 03:49
Forum: Ask For Help
Topic: Perform action only when nothing else was pressed...
Replies: 3
Views: 190

Re: Perform action only when nothing else was pressed...

Thank you for you reply. Yes it has to be global hotkey... :-/
by 4k3or3et
19 May 2020, 13:49
Forum: Ask For Help
Topic: Perform action only when nothing else was pressed...
Replies: 3
Views: 190

Perform action only when nothing else was pressed...

Hi Guys I have simple script: appskey:: send {alt down}{space}{alt up} return What I need to achieve is to execute {alt down}{space}{alt up} action only when AppsKey was pressed alone. For example if i press AppsKey+a then {alt down}{space}{alt up} should not be executed. Can anyone help me how to a...
by 4k3or3et
26 Oct 2019, 03:02
Forum: Ask For Help
Topic: Key stucks in down state from time to time...
Replies: 3
Views: 369

Re: Key stucks in down state from time to time...

Thanks for your reply guys. appskey:: send {appskey} return is necessary as sometimes i need that menu invoked by appskey. I implemented Send {appskey up} but now everytime i press appskey + N the menu also appears. It does not happen when that line is not there. Would there be anything else i can t...
by 4k3or3et
25 Oct 2019, 14:06
Forum: Ask For Help
Topic: Key stucks in down state from time to time...
Replies: 3
Views: 369

Key stucks in down state from time to time...

Hi there i am expreiencing issue with my script: #notrayicon #singleinstance force appskey:: send {appskey} return appskey & n:: run, notepad.exe return The problem is that sometimes, after invoking notepad.exe by pressing AppKey + N, the AppKey stucks in some sort of key down state. What i mean is ...
by 4k3or3et
14 Sep 2019, 13:45
Forum: Ask For Help
Topic: AppsKey behavior...
Replies: 1
Views: 241

AppsKey behavior...

Hi guys, i have a little issue with using AppKey in my scripts. My script looks like this: #notrayicon #singleinstance force appskey:: send {appskey} return appskey & n:: run, notepad.exe return It works fine in most cases. However there are some apps/windows where it does not invoke notepad while p...
by 4k3or3et
29 Jan 2019, 14:21
Forum: Ask For Help
Topic: Check if osk.exe is opened then close...
Replies: 3
Views: 871

Re: Check if osk.exe is opened then close...

The solution is to create shortcut

Code: Select all

taskill /f /im osk.exe
then edit the properties and set to run it as Administrator. Then the script is:

Code: Select all

#notrayicon
#singleinstance force
Process, Exist, osk.exe
If ErrorLevel != 0
run, "PATH_TO_SCRIPT"
Else
Run, osk.exe
Thank you.
by 4k3or3et
27 Jan 2019, 12:53
Forum: Ask For Help
Topic: Check if osk.exe is opened then close...
Replies: 3
Views: 871

Re: Check if osk.exe is opened then close...

try running your script as admin Unfortunately while running converted file as Administrator the situation gets other way around. It cannot open OSK but it can close it when previously opened manually. The error is: --------------------------- test.exe --------------------------- Error: Failed atte...
by 4k3or3et
27 Jan 2019, 10:06
Forum: Ask For Help
Topic: Check if osk.exe is opened then close...
Replies: 3
Views: 871

Check if osk.exe is opened then close...

Hi guys I have strange issue with osk.exe process which is Windows 10's On-Screen Keyboard. I would like to check if osk.exe is running. If it is, close it, if it is not then open in. Sort of toggle mode. The scripts i use is: #notrayicon #singleinstance force Process, Exist, osk.exe If ErrorLevel !...
by 4k3or3et
23 Jan 2019, 15:33
Forum: Ask For Help
Topic: Xbox One Controller Bluetooth version (1708) mapping...
Replies: 4
Views: 1478

Re: Xbox One Controller Bluetooth version (1708) mapping...

Hi, Should be definitely possible. Check out the docs. https://www.autohotkey.com/docs/misc/RemapJoystick.htm Chess Tried this method. It does not work... Give this a try to see if it's detecting any buttons: https://www.autohotkey.com/docs/scripts/JoystickTest.htm Script recognizes if controller i...

Go to advanced search