each quest does NOT have a uniqe ID.. You will have to use some sort of Pixel Scanner, like the OCR... but if you still want the GUMP ID click somewhere on the gump making it the most front gump.. then look at #ContID in the Container Info
When i remind right that doesnt work on generic gumps. And even if, you couldnt get a real useful information only by scanning for an ID. When you want to write some events for interact with the gump, the only way is read the other propertys of the Container and\or use OCR.Then build your functions to interact with the gump.
@Topicauthor: If you dont know what we mean with ocr, easyuo provides a feature to scan Pixel on the Screen. It only can scan the toplayer pixel of your graphical Computersystem and when the Gump isnt on top(like you are in web and cover the gump with your IE\Firefox\Opera) you wouldnt get the Pixel of the specific position of the Gump.
What you can do with these Pixel?
People like KalInEx on easyuo wrote algorythm to get the Characters of Bods in Books and other Gumps back(No Quests when i remind right). With making your own algorythm to declare the Content of the Gump you can decide, what is the real quest gump and what not.
A good Example are the Quests in Heartwood. Many people wrote their own algorythm. Some people Scan the Colours of the whole Gump. The Chain of each color giving a result of an unique information. Other Scanning exactly 1 Pixel on a Position and know, when this colour is "Green" then its their liked quest. I bymyself often scanned the Titles of Quests, chained the "numbercode of Color" from each scan per gump together and got an unique numberCode and knowed "when Code is 123840234732478490230470923403849" then its "Lethal Dart Quest".