Search found 202 matches

by icuurd12b42
02 Jun 2018, 01:07
Forum: Ask For Help
Topic: GUI: getting controls to respond to Enter (including controls within tab controls)
Replies: 4
Views: 1032

Re: GUI: getting controls to respond to Enter (including controls within tab controls)

are you trying the change the default button to a button on each tab? apparently you can use the send message winapi to change the button style at run time. all you would need is to create the default button on the first/visible tab and non default buttons on the other tabs and switch the button sty...
by icuurd12b42
31 May 2018, 04:55
Forum: Ask For Help
Topic: Simulate right mouse click with Win button
Replies: 4
Views: 452

Re: Simulate right mouse click with Win button

Code: Select all

DoingIt := false

LWin::
if(DoingIt)
   return
DoingIt := true
Send {RButton down}
KeyWait, LWin
Send {RButton up}
DoingIt := false
return
that should do it
by icuurd12b42
31 May 2018, 03:39
Forum: Ask For Help
Topic: Simulate right mouse click with Win button
Replies: 4
Views: 452

Re: Simulate right mouse click with Win button

Send {RButton down}
KeyWait, LWin
Send {RButton up}
by icuurd12b42
31 May 2018, 03:25
Forum: Tips and Tricks
Topic: Finding Errors easily using Try&Catch
Replies: 3
Views: 1562

Re: Finding Errors easily using Try&Catch

Well, as you say, knowing when the error happen... this implies debugging, it is quite possible to get the same exception from numerous locations in your code, the extra bit helped me when compiled code has an error.

Anyway, just putting it out there that you can supplement the exception (e)
by icuurd12b42
31 May 2018, 03:17
Forum: Ask For Help
Topic: Anyone tried AHK with Gimp?
Replies: 2
Views: 763

Re: Anyone tried AHK with Gimp?

Your assumptions are valid. try to make sure the window is active and add a few sleep calls. you can also try sending the {alt down}C{alt up} and even split the send into 3 calls with sleeps in between... things that dont work all the time is usually because the application is not seeing your comman...
by icuurd12b42
31 May 2018, 02:30
Forum: Tips and Tricks
Topic: Finding Errors easily using Try&Catch
Replies: 3
Views: 1562

Re: Finding Errors easily using Try&Catch

You can also create your own exception
throw Exception ("This Happened In MyOpenFile() Trying to open file: " . filename . "--" . e.message,-1)

https://autohotkey.com/docs/commands/Th ... #Exception
by icuurd12b42
29 May 2018, 21:28
Forum: Tutorials
Topic: Still confused about when to use % with variables? This helped me figure it out
Replies: 5
Views: 4459

Re: Still confused about when to use % with variables? This helped me figure it out

I reduced this to 2 rules 1) always use variable := 2) always use %variable% to extract the content of the variable for commands that require it Name := "John" MsgBox, Hello %Name%, How are you today. That's it! nothing complicated, nothing convoluting, nothing confusing. just obey these 2 rules and...
by icuurd12b42
29 May 2018, 21:17
Forum: Ask For Help
Topic: Help Sending a WM_command Message
Replies: 2
Views: 848

Re: Help Sending a WM_command Message

https://msdn.microsoft.com/en-us/library/windows/desktop/ms647591(v=vs.85).aspx code and control id are packed in wParam... where as you are passing code as lparam... lparam needs to be the window handle of the control... control id and control window handle basically refer to the same control in 2 ...
by icuurd12b42
29 May 2018, 00:05
Forum: Gaming
Topic: I need some help! I do not know how?
Replies: 2
Views: 694

Re: I need some help! I do not know how?

you can remap, in logitech gaming software, the extra buttons to send a keyboard message, like f1 to f12. f13 to f24 are also allowed btw... point is make it send a keyboard message

you can then catch the f key in ahk and run the code you want there.
by icuurd12b42
28 May 2018, 20:18
Forum: Ask For Help
Topic: line feed Topic is solved
Replies: 3
Views: 426

Re: line feed Topic is solved

learn something new everyday...
by icuurd12b42
28 May 2018, 20:04
Forum: Ask For Help
Topic: line feed Topic is solved
Replies: 3
Views: 426

Re: line feed Topic is solved

try lines := "Line 1" lines += "`n" ;newline/linefeed aka soft return as opposed to `r`n... carriage return + linefeed lines += "Line 2" or lines := "Line 1" lines += "^{enter}" ;soft return, aka newline/linefeed, ctrl+enter lines += "Line 2" send %lines% get rid of the (...) that forces the interpr...
by icuurd12b42
28 May 2018, 19:28
Forum: Ask For Help
Topic: Gui text field does not span multiple lines when text is changed
Replies: 7
Views: 1047

Re: Gui text field does not span multiple lines when text is changed

You cannot change the word wrap ability of a edit box control once it is created. in any language in windows... that is true for most the abilities/variants of the edit box control as specified, ultimately, by the styles parameters in the underlying windows API function call that creates the edit bo...
by icuurd12b42
28 May 2018, 19:12
Forum: Ask For Help
Topic: How to group radio buttons with other control types between
Replies: 3
Views: 538

Re: How to group radio buttons with other control types between

easiest way is to code the click event and change the other controls.
by icuurd12b42
12 May 2018, 08:25
Forum: Ask For Help
Topic: WinMove for window resize is "flickery"
Replies: 10
Views: 1943

Re: WinMove for window resize is "flickery"

re-visiting my syscommand message suggestions >I am not quite sure if this has the interactive effect I am shooting for. It needs a subsequent arrow key input and mouse drag. Imagine the right hand being on the mouse, lifting up back to keyboard to strike an arrow-combo, then back to the mouse why n...
by icuurd12b42
10 May 2018, 18:51
Forum: Ask For Help
Topic: WinMove for window resize is "flickery"
Replies: 10
Views: 1943

Re: WinMove for window resize is "flickery"

You can try to send a redraw now message to the window with the
RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW);
win api...

you can also disable the drawing Sending a WM_SETREDRAW message with 0 for disabled and 1 for enable to the window.
by icuurd12b42
07 May 2018, 00:08
Forum: Ask For Help
Topic: Running AHK scripts causes Win10 to refresh randomly
Replies: 2
Views: 373

Re: Running AHK scripts causes Win10 to refresh randomly

open notepad, type something, then do file-save as, move the save dialog so you can see notepad behind. click the notepad window. the file save as dialog will flash. is that how the flashing you see? Some windows flash to indicate something need to be done, and it's not always the window flashing th...
by icuurd12b42
06 May 2018, 23:53
Forum: Ask For Help
Topic: WinMove for window resize is "flickery"
Replies: 10
Views: 1943

Re: WinMove for window resize is "flickery"

you can post message WM_SYSCOMMAND with SC_SIZE to the window. That will have the effect, like try in notepad, of clicking the Size menu in the window system menu. basically you wont have to do anything but send/post that message once https://msdn.microsoft.com/en-us/library/windows/desktop/ms646360...
by icuurd12b42
05 May 2018, 06:21
Forum: Ask For Help
Topic: Help with sendmessage / postmessage (mouse)
Replies: 4
Views: 927

Re: Help with sendmessage / postmessage (mouse)

OK, let me know if that solves it in any case... if you are trying to make a selection from 250, 630 to 250, 580, you should probably send left button down at 250,630, followed by a mouse move to 250, 580 and a left button up at 250, 580... it is also possible the control wont do anything is if does...
by icuurd12b42
03 May 2018, 23:37
Forum: Ask For Help
Topic: How to set the font size of the words written in Times New Roman, from 20 to 16 in M S Word? Topic is solved
Replies: 8
Views: 1425

Re: How to set the font size of the words written in Times New Roman, from 20 to 16 in M S Word? Topic is solved

Does MS Word no longer allow scripting in the document itself? really that's where I would write my code...

Go to advanced search