Search found 82 matches

by partof
30 Dec 2017, 09:33
Forum: Ask For Help
Topic: #IfWinActive not working
Replies: 2
Views: 345

Re: #IfWinActive not working

Super! It's working, thanks so much!
I can even use the windows title:

Code: Select all

if (WinActive("Windows Security")){
	Send, {TAB 2}
	Send, {Enter}
}
by partof
29 Dec 2017, 13:23
Forum: Ask For Help
Topic: #IfWinActive not working
Replies: 2
Views: 345

#IfWinActive not working

I want to send a hotkeys to a specific log in popup. Here is my code: #IfWinActive, ahk_class Credential Dialog Xaml Host Send, {TAB 2} Send, {Enter} But the tabs and the enter are still send to any Windows open (chrome, np++,MS Word...). With Window Spy, I got this info for Windows Tilte, Class and...
by partof
29 Dec 2017, 04:16
Forum: Ask For Help
Topic: if #IfWinActive 'xx' AND the pixel_color of this position is 123 Topic is solved
Replies: 4
Views: 375

if #IfWinActive 'xx' AND the pixel_color of this position is 123 Topic is solved

I want to apply several shortcuts to a IfWinActive condition plus a pixel color I'm looking for something that would look like: If (WinActive ahk_exe abc.exe) and (PixelGetColor at 1359, 64 RGB is "0x85C78B") ^a:: msgbox yes I know I could do that (bellow) but is there a shorter way? #IfWinActive ah...
by partof
26 Dec 2017, 13:25
Forum: Scripts and Functions
Topic: Acc library (MSAA) and AccViewer download links
Replies: 19
Views: 11129

Re: Acc library (MSAA) and AccViewer download links

For the (others) dummies who(also) struggle to understand the syntax:
https://autohotkey.com/boards/viewtopic ... 72#p190772
by partof
26 Dec 2017, 11:57
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

I still did not manage to make it work (using jeeswg code) but I'm sharing the progress I made to understand his code: update : the code below actually work (but I don't know why: cf the acc path...): + when WMP is set on "library" mode, + and only when I press "q" on the WMP (pressing "q" above an...
by partof
26 Dec 2017, 10:38
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

@jeeswg : thanks a lot for your explanations I'm excited to be able to use it elsewhere! But, I still struggle with 2 points: Question 1 I obtained '4.1.16.2.14.3' via a script, the link is at the top of the script then you wrote (also about it?): I obtained the information using the Acc library and...
by partof
26 Dec 2017, 10:11
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

@Qwerty Thanks you so much for your explanation! It's impressive (I wish I could download your brain). I'm deeply touched by all the time you have invested in this code (I find it as impressing as your code!).
by partof
26 Dec 2017, 09:56
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

@jeeswg I also tried your code (I followed your instructions here https://autohotkey.com/boards/viewtopic.php?f=6&t=26201 ) . It doesn't work (it always believe it's playing) I'm trying to understand how it works (I'm discovering the Acc tool which opens many possibilities for other code!) "worked w...
by partof
26 Dec 2017, 08:27
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

Thank you so much for your help!

@Qwerty: my mind exploded while trying to follow your code...
by partof
23 Dec 2017, 12:51
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

(Sorry, for some reason it posted as guest) I tried that: #Include com.ahk com_Init() playState := COM_CreateObject(wmp, "playState") MsgBox %playState% and that #Include com.ahk com_Init() playState := COM_Invoke(wmp, "playState") MsgBox %playState% it sends nothing (the play is not detected) I fin...
by partof
23 Dec 2017, 10:31
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

Re: how to know if windows media player is playing or not? Topic is solved

Thanks for your help! I guess I need to add #Include C:\Users\Me\Desktop\my_folder\COM.ahk at the beginning of the script (which is on the same folder than the github file) When I run it I get the error below (when I run the COM.ahk it sends the same error): Error: Call to nonexistent function. Spec...
by partof
23 Dec 2017, 08:13
Forum: Ask For Help
Topic: how to know if windows media player is playing or not? Topic is solved
Replies: 16
Views: 1941

how to know if windows media player is playing or not? Topic is solved

I tried several codes (such as these https://autohotkey.com/board/topic/30791-can-ahk-get-play-state-of-windows-media-player/://autohotkey.com/board/topic/30791-can-ahk-get-play-state-of-windows-media-player/?&st=0 ) but they don't seem to work anymore (maybe they are not compatible anymore with the...
by partof
21 Dec 2017, 10:14
Forum: Scripts and Functions
Topic: if the sound is mute, unmute it
Replies: 1
Views: 321

if the sound is mute, unmute it

(I found this code here https://autohotkey.com/board/topic/14086-check-to-see-if-audio-mute-onoff/ I post it under this title because it would have saved me some time to find it) to mute you need to send {Volume_Mute} to unmute you also need to send {Volume_Mute} so you need to check if it's mute fi...
by partof
13 Dec 2017, 06:13
Forum: Scripts and Functions
Topic: google docs using a shortcut to change the font color
Replies: 1
Views: 648

Re: google docs using a shortcut to change the font color

edit it's much easier (and safe) to pass simply use the mouse click: ; #IfWinActive ahk_exe chrome.exe ; the shortcut will only work on chrome ; !^+p:: ; Alt(!) CTRL(^) shift(+) !^+p ; click, 652, 74 ; sleep 100 ; click, 784, 180 ; return if you want to rotate from one color to another to another: h...
by partof
13 Dec 2017, 06:12
Forum: Scripts and Functions
Topic: google doc: change (and rotate) color using a shortcut
Replies: 0
Views: 179

google doc: change (and rotate) color using a shortcut

If the color is black change it to blue, if it's blue change it to red, etc. else change it to black. ; ************** check if windows full screen #IfWinActive ahk_exe chrome.exe ; the shortcut will only work on chrome !^+p:: ;PART 1: check if the docs is in full-screen (the script work with the mo...
by partof
13 Dec 2017, 05:05
Forum: Ask For Help
Topic: Detect if active window is full screen or not
Replies: 3
Views: 782

Re: Detect if active window is full screen or not

it's simple. You just need to find a color specific to full-creen (or not full screen). For exemple on full-screen I see the red cross yo close the chrome window, full screen is white. You find all the info needed in the windows spy tool ; put the mouse on the right top corner of the screen, freeze ...
by partof
13 Dec 2017, 04:33
Forum: Ask For Help
Topic: Copy Html text, modify it (ex change color of text), paste it back in google docs
Replies: 8
Views: 353

Re: Copy Html text, modify it (ex change color of text), paste it back

Thanks so much for your help! I am getting closer and closer. Here is my current code but I still have a problem. The Html copied contains UTF-8 characters that are replaced with things like è or é. In GetHtml from WinClip.ahk, I tried to replaced CPO by UTF-16 but it sends back chinese characters...
by partof
13 Dec 2017, 04:00
Forum: Scripts and Functions
Topic: google docs using a shortcut to change the font color
Replies: 1
Views: 648

google docs using a shortcut to change the font color

This code doesn't keep the formatting of your text. It only copies the text of your clipboard, set a blue color to it and past it as HTML WARNING: watch the delay, if you put a delay to short before the backspace it can break your docs (even if you chose a previous version) (It probably delete some ...
by partof
13 Dec 2017, 03:42
Forum: Scripts and Functions
Topic: shortcut to automatically reduce the font size in google docs
Replies: 0
Views: 141

shortcut to automatically reduce the font size in google docs

; *********************** shortcut to automatically reduce the font size (at 6) in google docs #IfWinActive ahk_exe chrome.exe ; the shortcut will only work on chrome ^-:: ;you can use any of these: Alt(!) CTRL(^) shift(+) win(#) click, 512, 177 ; to find the position of the mouse use the "relative...
by partof
12 Dec 2017, 11:59
Forum: Ask For Help
Topic: Copy Html text, modify it (ex change color of text), paste it back in google docs
Replies: 8
Views: 353

Re: Copy Html text, modify it (ex change color of text), paste it back

Thanks jeeswg for your help! I have tried RTF with WinClip.GetRTF and WinClip.SetRTF but I don't know how I can modify the color of the text after that (I can't display the RTF text in a msgbox)

Sorry but I don't understand your second point.

Go to advanced search