Search found 74 matches

by MonuKashyap
29 May 2018, 01:39
Forum: Ask For Help
Topic: how to identify conditions
Replies: 9
Views: 1704

Re: how to identify conditions

imustbeamoron wrote:i would say, if you need to know which argument caused the ''true' condition, you need to restructure your code and use individual "if" statements.
How do i do that?
where both conditions are variable
by MonuKashyap
28 May 2018, 04:58
Forum: Ask For Help
Topic: how to identify conditions
Replies: 9
Views: 1704

how to identify conditions

How to identify that which condition gone true?

suppose,

a=apple
b=2

If (a="apple" || b="boll")
Msgbox True


in this How to identify by script that which condition gone true to reach the msgbox, by user?
1. by apple (first condition)
2. by boll (second condition)
by MonuKashyap
14 May 2018, 07:54
Forum: Ask For Help
Topic: How to get button name of a gui?? Topic is solved
Replies: 8
Views: 2491

Re: How to get button name of a gui?? Topic is solved

jmeneses wrote:

Code: Select all

Loop 10
Gui, add, button, gtest, %a_index%
Gui, add, button, vMyBUT gtest, % "MyBUTTON" 
gui, show
Return

test:
ToolTip, % A_GuiControl
return




its really, really great..
in very short code..
really great..
And
Thanks a lot.
by MonuKashyap
09 May 2018, 08:17
Forum: Ask For Help
Topic: How to get button name of a gui?? Topic is solved
Replies: 8
Views: 2491

How to get button name of a gui?? Topic is solved

How do i get the button name??

assume this script:

Loop 10
Gui, add, button, gtest, %a_index%
gui, show
Return

test:
msgbox %buttonname%
return



in this how do i get the name of the pressed button??
pls help.
by MonuKashyap
11 Feb 2018, 02:46
Forum: Ask For Help
Topic: Help with Search Topic is solved
Replies: 8
Views: 960

Re: Help with Search Topic is solved

Well,, Thank you all for replies.. I really appreciate your help and suggestion. and I found my solution in this code,- gui, font, s20 gui, add, edit gui, add, button, x10 y110 w100 gfind vSrchButton Default, Find gui, add, button, x10 y110 w100 gstop vStopButton Default, Stop Guicontrol, hide, Stop...
by MonuKashyap
11 Feb 2018, 01:00
Forum: Ask For Help
Topic: Help with Search Topic is solved
Replies: 8
Views: 960

Re: Help with Search Topic is solved

A workaround: WM_LBUTTONDOWN() { global count If (A_Gui) { GuiControlGet,text,,SrchButton if ( text = "Stop") count = 2 } } gui, font, s20 gui, add, edit gui, add, button, gfind vSrchButton default, Find gui, show return Find: count++ if count=1 Guicontrol,, SrchButton, Stop OnMessage(0x0201, "WM_L...
by MonuKashyap
09 Feb 2018, 06:37
Forum: Ask For Help
Topic: Help with Search Topic is solved
Replies: 8
Views: 960

Re: Help with Search Topic is solved

... kill current busy thread ... Could be helpful to know, what kind of thread you want to close. Is it an AHK-tread? Is it same script you want to close, while you are reloading? Or a damned game you want to play instead of doing usefull things? :mrgreen: :mrgreen: I Want to kill the loop by stop ...
by MonuKashyap
09 Feb 2018, 01:51
Forum: Ask For Help
Topic: Help with Search Topic is solved
Replies: 8
Views: 960

Help with Search Topic is solved

I am making simple search program, and i m trying to kill current busy thread, and dont no how to do that. any help please? here's my script, in this script i want to make work the stop button. gui, font, s20 gui, add, edit gui, add, button, gfind vSrchButton default, Find gui, show return Find: cou...
by MonuKashyap
14 Oct 2017, 22:23
Forum: Ask For Help
Topic: The Conditional if statement Topic is solved
Replies: 5
Views: 807

Re: The Conditional if statement Topic is solved

Thank you all, for suggestion and replies.
and i found my solution in this code:

if not ((count = 3) || (count = 6)) ;it is true when count is not 3 nor 6
msgbox true
else
msgbox false
by MonuKashyap
14 Oct 2017, 08:56
Forum: Ask For Help
Topic: The Conditional if statement Topic is solved
Replies: 5
Views: 807

The Conditional if statement Topic is solved

count=6
if (count != 3) or (count != 6)
msgbox true
else
msgbox false

why it shows true.??
i changed the count from 1-10, and it always shows true.?
by MonuKashyap
24 Sep 2017, 00:52
Forum: Ask For Help
Topic: Troubleshooting Ahk for command Run, Print "abc.html"
Replies: 3
Views: 541

Troubleshooting Ahk for command Run, Print "abc.html"

Run, Print "abc.html" few days ago, this command works fine on my computer but today, it works incorrectly and i don't know why? this is the problem: printed by Internet Explorer ie.PNG and by ahk pahk.PNG html source is : <Html> <body> <br>                &nb...
by MonuKashyap
07 Jun 2016, 02:29
Forum: Ask For Help
Topic: I want to write a picture using pixel address and color information. Topic is solved
Replies: 2
Views: 588

Re: I want to write a picture using pixel address and color information. Topic is solved

woow!!
its good.
but I want to set color for the active window
not for new GUI
is it possible, any idea ?
by MonuKashyap
07 Jun 2016, 02:20
Forum: Ask For Help
Topic: I want to write a picture using pixel address and color information. Topic is solved
Replies: 2
Views: 588

I want to write a picture using pixel address and color information. Topic is solved

like this.. pixelwrite 100, 101, 0xFFFFFF ; where 100, 100 is the x, y address and 0xFFFFFF is the color information of the pixel pixelwrite 100, 102, 0xDCC0A7 pixelwrite 100, 103, 0x3C96EA pixelwrite 100, 104, 0x3C6DD0 pixelwrite 101, 101, 0xEDECEB pixelwrite 100, 102, 0xF4F4F4 pixelwrite 100, 103...

Go to advanced search