I Have a script that uses PopupMenu to present user options and set variables based on the responses.
Sometimes after an option is chosen the Popupmenu fails to close until "Exit" is clicked.
Is there a command I can use to close the popup in the same conditionals that set the variables?
Search found 58 matches
- Fri Feb 10, 2017 1:38 pm
- Forum: Technical / Scripting
- Topic: Closing PopupMenu after selection
- Replies: 1
- Views: 2287
- Thu Feb 09, 2017 4:30 pm
- Forum: Technical / Scripting
- Topic: Is It Possible To Use OnEvent KeyDown to run another macro?
- Replies: 1
- Views: 2209
Re: Is It Possible To Use OnEvent KeyDown to run another mac
Nvm, figured it out.
SRT>Timer
RunProgram>C:\Program Files (x86)\Macro Scheduler 14\msched.exe Timer
Wait>0.5
END>Timer
Works.
SRT>Timer
RunProgram>C:\Program Files (x86)\Macro Scheduler 14\msched.exe Timer
Wait>0.5
END>Timer
Works.
- Thu Feb 09, 2017 4:03 pm
- Forum: Technical / Scripting
- Topic: Is It Possible To Use OnEvent KeyDown to run another macro?
- Replies: 1
- Views: 2209
Is It Possible To Use OnEvent KeyDown to run another macro?
I wondered if its possible to launch a macro using a KeyDown trigger? Eg: ----------------- OnEvent>KEY_DOWN,VK5,0,Timer SRT>Timer RunProgram>C:\Program Files (x86)\Macro Scheduler 14\msched.exe "not really a clue about command line but presumably there is a parameter where i would need to specify w...
- Thu Feb 09, 2017 3:34 pm
- Forum: Technical / Scripting
- Topic: Macro To Detect Which VK_Key Pressed
- Replies: 2
- Views: 3194
Re: OnEvent Macro To Detect Which VK_Key Pressed Not Working
Thanks JRL, Just figured that out myself after realising I normally use VK1 to detect mouse clicks rather than VK_LBUTTON. I have the completed and now working script below, hopefully other users might find it useful too. //Set IGNORESPACES to 1 to force script interpreter to ignore spaces. //If usi...
- Thu Feb 09, 2017 1:56 pm
- Forum: Technical / Scripting
- Topic: Macro To Detect Which VK_Key Pressed
- Replies: 2
- Views: 3194
Macro To Detect Which VK_Key Pressed
If anyone could shed some light on why this macro I wrote to identify the VK_Name of any key press is not working, it would be much appreciated. :? //Set IGNORESPACES to 1 to force script interpreter to ignore spaces. //If using IGNORESPACES quote strings in {" ... "} Let>IGNORESPACES=1 Let>MSG_ALWA...
- Tue Nov 01, 2016 6:08 pm
- Forum: Technical / Scripting
- Topic: IrfanView To Clipboard, GetPixelColor With No Focus Change
- Replies: 5
- Views: 6052
Re: IrfanView To Clipboard, GetPixelColor With No Focus Chan
Yes, sorry, silly question, I somehow assumed that WSI_TIMEOUT applied to FindIMagePos, but if the haystack doesn't contain an image, not much sense in waiting lol. I have added your code to my macro and it's running plenty fast enough :D I actually had to slow it down a touch because IrfanView coul...
- Tue Nov 01, 2016 3:35 pm
- Forum: Technical / Scripting
- Topic: IrfanView To Clipboard, GetPixelColor With No Focus Change
- Replies: 5
- Views: 6052
Re: IrfanView To Clipboard, GetPixelColor With No Focus Chan
Thanks JRL,
That's really helpful.
Whats the fastest WSI_TIMEOUT you would use, given that its only looking for 1 pixel, in co'ords of 1 pixel square?
That's really helpful.
Whats the fastest WSI_TIMEOUT you would use, given that its only looking for 1 pixel, in co'ords of 1 pixel square?
- Tue Nov 01, 2016 12:21 pm
- Forum: Technical / Scripting
- Topic: IrfanView To Clipboard, GetPixelColor With No Focus Change
- Replies: 5
- Views: 6052
IrfanView To Clipboard, GetPixelColor With No Focus Change
Hi, I am currently using: Run>C:\Program Files\IrfanView\i_view64.exe /capture=0 to capture my haystack and analyse cursor color. This code captures to clipboard and opens the image in full screen (via IrfanView, my chosen .BMP default). After using GetPixelColor on the clipboard haystack, I then us...
- Tue Nov 01, 2016 7:51 am
- Forum: Technical / Scripting
- Topic: GetPixelColor from haystack, is it possible?
- Replies: 2
- Views: 3432
Re: GetPixelColor from haystack, is it possible?
I figured this out thanks.
- Sun Oct 30, 2016 9:17 am
- Forum: Technical / Scripting
- Topic: GetPixelColor from haystack, is it possible?
- Replies: 2
- Views: 3432
GetPixelColor from haystack, is it possible?
I want to write a script that reacts to cursor color changes, so I plan to use Irfanview to capture a screenshot with cursor, then I would like to be able to use GetPixelColor to grab the cursors pixel color at %x%,%y%. 1. Is this possible? 2. If it is, how do I make GetPixelColor check the Irfanvie...
- Sat Sep 24, 2016 4:37 pm
- Forum: Technical / Scripting
- Topic: Using tolerance on GetPixelColor>%x%,%y%,result
- Replies: 4
- Views: 3638
Re: Using tolerance on GetPixelColor>%x%,%y%,result
Thanks JRL, that's really helpful.
- Fri Sep 23, 2016 11:35 pm
- Forum: Technical / Scripting
- Topic: Using tolerance on GetPixelColor>%x%,%y%,result
- Replies: 4
- Views: 3638
Re: Using tolerance on GetPixelColor>%x%,%y%,result
Just to clarify, this is a serious question, probably a bad idea for me to use the cup of tea and biscuit message examples lol.
Can I use Regex, eg: Yellow=[1][2]/d/d/d/d/d/d to return a positive match on any eight digit color beginning with 12?
Can I use Regex, eg: Yellow=[1][2]/d/d/d/d/d/d to return a positive match on any eight digit color beginning with 12?
- Fri Sep 23, 2016 2:27 pm
- Forum: Technical / Scripting
- Topic: Using tolerance on GetPixelColor>%x%,%y%,result
- Replies: 4
- Views: 3638
Using tolerance on GetPixelColor>%x%,%y%,result
I would like to know if its possible to specify a match tolerance when using the below: Let>yellow=36754 Let>yellowx=10 Let>yellowy=50 Label>loop GetPixelColor>%yellowx%,%yellowy%,result If>color=yellow Message>Make a cup of tea Else Message>No biscuits for you Endif Goto>Loop So that any colors wit...